Creates a token declaration datum and places it in the mempool. ## Request Structure `JSON object:` ```JSON { "method": "token_decl", "subcommand": ["token_decl"], "arguments": { "net": "network_name", "chain": "chain_name", "token": "token_ticker", "total_supply": "total_supply", "signs_total": "signs_total", "signs_emission": "signs_for_emission", "decimals": "18", "certs": "certs_list" }, "id": "1" } ``` `Parameters:` **`net (network_name)`** - name of the Cellframe Network. The list of networks can be found in the `<Config_dir> \ etc \ network` folder or received using - [[Node Command - NET LIST]] **`chain`** - the name of chain (`main` or `zerochain`) **`token`** - ticker (name) of the token **`total_supply`** - maximum sum of all token emissions (in datoshi) **`signs_total`** - quantity of authorized token signatures **`signs_emission`** - quantity of authorized token signatures required fot it's emission **`decimals`** - number accuration after comma (`18` by default) **`certs`** - certificates which is used to sign token (you can use any certificate) ### Curl Example `Request:` ```actionscript curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d ' { "method": "token_decl", "subcommand": ["token_decl"], "arguments": { "net": "riemann", "chain": "zerochain", "token": "TESTER", "total_supply": "1000.0e+18 ", "signs_total": "1", "signs_emission": "1", "decimals": "18", "certs": "riemann.master.pvt.0" }, "id": "1" }' ``` `Response:` ```json { "type": 2, "result": [ { "errors": [ { "code": 0, "message": "Datum 0xE4BEB235D0F5487E5E0AE61BCA5D5FD21BAAC2422ACE91A792CD9134394AAC38 with token TESTER is placed in datum pool" } ] } ], "id": 1 } ```