Signs a token-emission datum from the mempool (by hash) using provided POA certificates.

CLI Example

Command syntax:

token_emit sign 
-emission <hash> 
[-chain_emission <chain_name>] 
-net <net_name> 
-certs <cert_list>

Options:

-emission <hash> - hash of the emission
-chain_emission - name of the chain where token was emitted (optional)
-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
-certs - list of certificates for sign token emission
 

Example:

Command:

cellframe-node-cli token_emit sign 
-emission  0x94C2B9D0A9BF293E30404730526DC014FED975B1503E119BAD2FFC8238F7934F 
-chain main 
-net foobar 
-certs foobar.root.pvt.

Response:

Datum 0xAE43A6BC351B89DCA92E86ED42720443BA913FB81838DBB224931D4B7B0379D1 with 256bit emission is placed in datum pool

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"token_emit", "params":["token_emit;-token;ZZZ;-emission_value;99999.9e+18;-addr;ptV4n68gTebdUTcbmZA8HHVuueXki5N9zBrnAue92Dv1qaU5rcG2fSBaLGQSq2549vKjW9e944T8P9trNrpjEFyuYCWNgDsWftoTfGQp;-chain;main;-net;foobar;-certs;foobar.root.pvt.0"], "id":"1"}'

Response:

{
"type": 0,
"result": "Datum 0xAE43A6BC351B89DCA92E86ED42720443BA913FB81838DBB224931D4B7B0379D1 with 256bit emission is placed in datum pool",
"errors": null,
"id": 1
}