Сreates an emission datum and places it in the mempool

CLI Example

Command syntax:

token_emit 
-token <mempool_token_ticker> 
-emission_value <value> 
-addr <addr> 
[-chain_emission <chain_name>] 
-net <net_name> 
-certs <cert_list>

Options:

-token - name of the token in the mempool
-emission_value - total value of emission
-addr - address of the wallet for 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 
-token ZZZ 
-emission_value 99999.9e+18 
-addr ptV4n68gTebdUTcbmZA8HHVuueXki5N9zBrnAue92Dv1qaU5rcG2fSBaLGQSq2549vKjW9e944T8P9trNrpjEFyuYCWNgDsWftoTfGQp 
-chain main 
-net foobar 
-certs foobar.root.pvt.0

Response:

Datum 0x94C2B9D0A9BF293E30404730526DC014FED975B1503E119BAD2FFC8238F7934F 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 0x7217FA1B7254B2EBA0107BE5BBA1FA41223AB4DCD79F8CD457510126EFD9713C with 256bit emission is placed in datum pool",
"errors": null,
"id": 1
}