Signs a token-update datum from the mempool (by hash) using provided POA certificates
CLI Example
Command syntax:
token_update_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 previous certificates used to sign token updating
Example:
Command:
cellframe-node-cli token_update_sign
-net foobar
-chain main
-datum 0x8F581F2B53062ADF150D34EF3DA0224DA11FA6AFB7D9964A520F60449483DC69
-certs foobar.root.pvt.0
Response:
datum 0x81D0480E5D1EBAC11189AC1E7407DDEF5F2F4ED4596D3D2EB40A53C4DCA85EA5 is replacing the 0x8F581F2B53062ADF150D34EF3DA0224DA11FA6AFB7D9964A520F60449483DC69 in datum pool
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"token_update_sign", "params":["token_update_sign;-net;foobar;-chain;main;-datum;0x81D0480E5D1EBAC11189AC1E7407DDEF5F2F4ED4596D3D2EB40A53C4DCA85EA5;-certs;foobar.root.pvt.0"], "id":"1"}'
Response:
{
"type": 0,
"result": "datum 0x691E6D42AE74AC0844182EAF127A6DEDBD8F12776244C551058DF806ACBD27CF is replacing the 0x81D0480E5D1EBAC11189AC1E7407DDEF5F2F4ED4596D3D2EB40A53C4DCA85EA5 in datum pool",
"errors": null,
"id": 1
}