Creates order for fee that validator requires for his work

CLI Example

Command syntax:

srv_stake order create [type] 
-net <net_name> 
-value <value> 
-cert <priv_cert_name> 
[-H {hex(default) | base58}]

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
-value - cost of transaction in datoshi
-cert - name of the private certificate which is used to sign blocks
type - "fee" by default
-H - the format of the hash value for the command parameter. It can be either in HEX format: 0x4E9B6B890D5D78BB46AA5442BDEFF2FPDA8929BA9689F86235353BF784B5 or in Base58: Betcryb4arefsamtjars9dxydzasszdfkkh6
 

Example:

Command:

cellframe-node-cli srv_stake order create 
-net foobar 
-value 0.05e+18 
-cert foobar.master.pvt.0

Response:

 Successfully created order 0x75578C57AAE25B7FB0F05213865B03FAAF7814A2162DAD350064B7DED4CD48C1

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_stake", "params":["srv_stake;order;create;-net;foobar;-value;0.05e+18;-cert;foobar.master.pvt.0"], "id":"1"}'

Response:


"type": 0,
"result": "Successfully created order 0x451E0BBB9510A228A267EA85DDBAD63686750E753FF6A26571586D57238501FD",
"errors": null,
"id": 1
}