Shows rewards and fees automatic collecting status in the specified network for your master node.

Command syntax:

block autocollect status 
-net <net_name> 
-chain <chain_name> 
 

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

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

CLI Example

Command:

cellframe-node-cli block autocollect status 
-net KelVPN 
-chain main

Response:

Autocollect tables content for:

=== Fees ===
0xEE776EA9B7E1781F99C30C8A6AAC1677B95DAA246A119E4861BC668E16DDCEBA      0.05
Total prepared value: 0.05 KEL

=== Rewards ===
0x3BCD5539CDF3E3CEC5528C21A7BC7765B20BD853965400BF084BEC263C4437B3      45.584250342048243441
0xFF8DD1ADA646D6F174877EC879834B39BC27889CC40202BC1BB9FB3BA363F484      22.435626862822493122
Total prepared value: 68.019877204870736563 KEL

JSON-RPC Example

JSON-RPC Request - BLOCK AUTOCOLLECT

Shows rewards and fees automatic collecting status in the specified network for your master node.

Request Structure

JSON object:

{
  "method": "block",
  "subcommand": "autocollect status",
  "arguments": {
    "net": "network_name",
    "chain": "chain_name"
  },
  "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)

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

In case of mistakes in configuration files or network problems you will get the following message:

Note

Autocollect status: for network <network_name> is inactive cause of the network config or consensus starting problems

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
  "method": "block",
  "subcommand": "autocollect status",
  "arguments": {
    "net": "riemann",
    "chain": "main"
  },
  "id": "1"
}'

Response:

{
  "type"2,
  "result": [
    {
      "Autocollect status""for network riemann is active\n",
      "Autocollect tables content for === Fees ===": [
        {
          "obj_key""0xFC9E00315355F93EBE9596C4DBF5C4B644C437CCE0BDB73D981569B327A36E32",
          "obj_val""1.0"
        },
        {
          "obj_key""0x9665EFAA7AB6B89165A58365B7E05B612847E7678FE2B079586F5A6976234F3A",
          "obj_val""0.05"
        },
        {
          "obj_key""0xD0E1EEC67BFBF8B5D4AE24AB31FD54EDBEF556B98F6E10ACC9194A0F3C465961",
          "obj_val""0.5"
        },
        {
          "obj_key""0x3D027DE1DD4668950D272863305E733117B74791A8BE395E476D45E7439E77E1",
          "obj_val""5.0"
        },
        {
          "obj_key""0xDFA952FE5CE579BCC4E328F1EAE71DBDACD236DEADE2056A8CA1783B8251A143",
          "obj_val""1.05"
        },
        {
          "obj_key""0x9655DB784040EB52013946AC363F7D1FC5637B4686D26F9A35887869E5719A7C",
          "obj_val""0.05"
        },
        {
          "obj_key""0xF5A2FA7E3A4982E3CDBC29B29EA4A82120CC3B90F5B9220B980FFC484EFC5DBC",
          "obj_val""1.0"
        }
      ],
      "Fees status""Total prepared value: 8.65 tKEL, where profit is 8.525, tax is 0.0, fee is 0.125\n",
      "Autocollect tables content for === Rewards ===": [
        {
          "obj_key""0x3D027DE1DD4668950D272863305E733117B74791A8BE395E476D45E7439E77E1",
          "obj_val""2.146666666666666666"
        },
        {
          "obj_key""0xA51BC44B34EAAD9CDD4AED7E50E2DD874F9BB2BF2F9A0E0D17BEA2F3183A4805",
          "obj_val""3.663333333333333333"
        },
        {
          "obj_key""0xDFA952FE5CE579BCC4E328F1EAE71DBDACD236DEADE2056A8CA1783B8251A143",
          "obj_val""2.73"
        },
        {
          "obj_key""0x9655DB784040EB52013946AC363F7D1FC5637B4686D26F9A35887869E5719A7C",
          "obj_val""1.633333333333333333"
        },
        {
          "obj_key""0xF5A2FA7E3A4982E3CDBC29B29EA4A82120CC3B90F5B9220B980FFC484EFC5DBC",
          "obj_val""1480.64"
        },
        {
          "obj_key""0x6E7AD308C55003D9C5A8BEDDCEA17D356AF53FDA86596334A2EA3F90FFC1E6A9",
          "obj_val""0.482222222222222222"
        }
      ],
      "Rewards status""Total prepared value: 1491.295555555555555554 tKEL, where profit is 1491.170555555555555554, tax is 0.0, fee is 0.125\n"
    }
  ],
  "id"1
}
Link to original