Adds datum with the public certificate into the mempool.
Datum type - DAP_CHAIN_DATUM_CA
CLI Example
Command syntax:
mempool add_ca
-net <net_name>
[-chain <chain_name>]
-ca_name <pub_cert_name>
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-chain - name of the chain (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
}