Signs a token-emission datum in the mempool using provided POA certificates.

Request Structure

JSON object:

{
  "method": "token_emit",
  "subcommand": ["sign"],
  "arguments": {
    "net": "network_name",
    "chain_emission": "chain_name",
    "datum": "datum_hash",
    "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_emission - the name of chain (main or zerochain) optional datum - hash of the datum certs - list of certificates to sign the datum

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
  "method": "token_emit",
  "subcommand": ["sign"],
  "arguments": {
    "net": "riemann",
    "chain_emission": "zerochain",
    "emission": "0xF7D26F9667EFC236EECD1001394445E9A300858CFB3CCA853ED846B6E56A9E27",
    "certs": "riemann.bridge.pvt.1"
  },
  "id": "1"
}'

Response:

{
  "type": 2,
  "result": [
    {
      "errors": [
        {
          "code": 0,
          "message": "Datum 0xAE43A6BC351B89DCA92E86ED42720443BA913FB81838DBB224931D4B7B0379D1 with 256bit emission is placed in datum pool"
        }
      ]
    }
  ],
  "id": 1
}