Adds datum with the public certificate into the mempool. Datum type - DAP_CHAIN_DATUM_CA [[Data element (Datum)#]]

Request Structure

JSON object:

{
  "method": "mempool",
  "subcommand": ["add","ca"],
  "arguments": {
    "net": "network_name",
    "chain": "chain_name",
    "ca_name": "pub_cert_name"
  },
  "id": "1"
}

Parameters: net (network_name) - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received using - Node Command - NET LIST chain - the name of chain (main or zerochain) optional ca_name - name of the public certificate

Example:

Command:

cellframe-node-cli mempool add_ca 
-net foobar 
-chain main 
-ca_name foo0-cert.pub

Response:

Datum 0x68960FE80F5A31328EC15AAF117F4A4C24573BC3B965877FA840FE7A13EC2BDC was successfully placed to mempool

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"mempool", "params":["mempool;add_ca;-net;foobar;-chain;main;-ca_name;foo0-cert.pub"], "id":"1"}'

Response:

{
  "type": 2,
  "result": [
    "Datum 0x68960FE80F5A31328EC15AAF117F4A4C24573BC3B965877FA840FE7A13EC2BDC was successfully placed to mempool"
  ],
  "errors": null,
  "id": 1
}