Signs a token-declaration datum in the mempool (by hash) using provided POA certificates

CLI Example

Command syntax:

token_decl_sign
-net <net_name> 
-chain <chain_name> 
-datum <datum_hash> 
-certs <certs_list>

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 where token was declared
-datum - hash of the datum with token declaration
-certs - list of certificates used for sign token declaration

Example:

Command:

cellframe-node-cli token_decl_sign 
-net foobar 
-chain main 
-datum 0xFE3C0D5CEBAB54957121C01C12017164E516D60709B6BE10BC7EE98758BF4429  
-certs foobar.root.pvt.1

Response:

datum 0xA3ECE90A9560D6A0B69A37AAB4EF32A438D6DE4BB1EC1895B78180D32227FD87 is replacing the 0xFE3C0D5CEBAB54957121C01C12017164E516D60709B6BE10BC7EE98758BF4429 in datum pool

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"token_decl_sign", "params":["token_decl_sign;-net;foobar;-chain;main;-datum;0x9456CEED16F07E832C2FE7F5E5F2D66F16010E43B15F27314D95FC467DF5A676;-certs;foobar.root.pvt.1"], "id":"1"}'

Response:

{
"type": 0,
"result": "datum 0xBFC77C7ABF1FA3CE0F6F001C18250BF1730E22A3AEBD05257C14B9CAA7134949 is replacing the 0x9456CEED16F07E832C2FE7F5E5F2D66F16010E43B15F27314D95FC467DF5A676 in datum pool",
"errors": null,
"id": 1
}