Sets base reward for signing one block at one minute. Your node must have a root role to make a decree.

Request Structure

JSON object:

{
  "method": "block",
  "subcommand": ["reward","set"],
  "arguments": {
    "net": "network_name",
    "chain": "chain_name",
    "poa_cert" "poa_cert_name",
    "value": "value"
  },
  "id": "1"
}

Parameters:

net - 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) poa_cert - name of the private root node certificate value - number of tokens in datoshi

If you make a request in the Cellframe network, use parameter chain:main.

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
  "method": "block",
  "subcommand": ["reward","set"],
  "arguments": {
    "net": "foobar",
    "chain": "main",
    "poa_cert" "foobar.root.pvt.0",
    "value": "5.0e+18"
  },
  "id": "1"
}'

Response:

{
  "type"2,
  "result": [
    {
      "Decree was created to set basic block sign reward, hash""0x054F8618E5E320B586C38A71AA972A1A791ADFB6C53A159ECC82BFBD6B595400"
    }
  ],
  "id"1
}