Creates order which allows `staker` to give a definite amount of [[Token Delegated (m-token)|m-tokens]] to a **master node** holder. From his side, **master node** holder delegates his private key to `staker` and also must send to him percent from profit in the future. For more details see article - [[Certificate Delegation#Option 2|staker order.]] ## Request Structure `JSON object:` ```JSON { "method": "srv_stake", "subcommand": ["order","create","staker"], "arguments": { "net": "network_name", "w": "wallet_with_m_tokens", "fee": "value", "value": "stake_value", "tax": "percent", "addr": "for_tax_collecting", "cert": "cert_name", "H": "base58" }, "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]] **`w`** - wallet with delegated token (which is used to pay master node delegation) **`fee`** - transaction fee **`value`** - m-tokens stake value in datoshi **`tax`** - percentage of the master node rewards that `staker` will collect for providing the m-tokens for the master node **`addr`** - wallet address for tax collecting `optional` **`cert`** - name of the private certificate which is used to sign blocks `optional` **`H`** - the format of the hash value for the command parameter. It can be either in HEX format `0x4E9B6B890D5D78BB46AA5442BDEFF2FPDA8929BA9689F86235353BF784B5` or in Base58 `Betcryb4arefsamtjars9dxydzasszdfkkh6`, `optional` ### Curl Example `Request:` ```actionscript curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{ "method": "srv_stake", "subcommand": ["order","create","staker"], "arguments": { "net": "riemann", "w": "wallet1", "fee": "0.05e+18", "value": "10.0e+18", "tax": "25.0" }, "id": "1" }' ``` `Response:` ```json { "type": 2, "result": [ { "status": "success", "order_hash": "0x0B44DE4B888B164CA3DC1F4ABD66F44F0DE2FE7EDE8B738FAE383EE0F5EFE78D", "tx_hash": "0xCD19D8C894ED3E11DE2EDB3F4F0FB0B280BC1E647015D494616635955768FF65" } ], "id": 1 } ```