Sets base reward for signing one block at one minute.

Command syntax:

block reward set 
-net <net_name> 
-chain <chain_name> 
-poa_cert <poa_cert_name> 
-value <value>

Options:

-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
-chain - the name of Chain. The list of chains can be found in the directory <Config_dir> \ etc \ network \ <network_name> or by the Cellframe-Node-CLI using command - net list chains
-poa_cert - name of the private master node certificate 
-value - number of tokens in datoshi 

If you request command in the Cellframe network, use parameter -chain main.

CLI Example

Command:

cellframe-node-cli block reward set 
-net foobar 
-chain main 
-value 5.0e+18 
-poa_cert foobar.root.pvt.0

Response:

Decree with hash 0xD90F068E41A612D93E8777DDA814DD3EFD736B8ED95BDA4B3F8DEA06E04120D7 created to set basic block sign reward

JSON-RPC Example

JSON-RPC Request - BLOCK SET REWARD

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
}
Link to original