Delegates public key from the specified certificate or the [[Locked Token Delegated Key Order (LTDKO)]] in the network. Payment is made with a specified amount of delegated tokens ([[Token Delegated (m-token)|m-tokens]]). ## Request Structure `JSON object:` ```JSON { "method": "srv_stake", "subcommand": ["delegate"], "arguments": { "net": "network_name", "w": "wallet_name", "fee": "value", "cert": "pub_cert_name", "value": "datoshi", "pkey": "pkey_hash", "sign_type": "sign_type", "order": "order_hash", "tax_addr": "wallet_addr_for_tax_collecting", "cert": "priv_cert_name" }, "id": "1" } ``` `Common 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`** - name of the wallet **`fee`** - validator's commission **Without order (simple stake):** **`cert`** - name of the staker's private certificate for delegation **`value`** - m-tokens sum (in datoshi) which is used for key delegation **Case 1**: if you want to delegate m-tokens using your public certificate or public key **`cert`** - name of the public certificate `optional` **`value`** - m-tokens sum (in datoshi) which is used for key delegation or **`pkey`** - hash of the certificate `optional` **`sign_type`** - type of signature (for example `sig_dil`) `optional` **`value`** - m-tokens sum (in datoshi) which is used for key delegation **Case 2**: you have a hash of the validator or staker order to delegate m-tokens **`order`** - hash of the order (validator or staker) validator order: **`tax_addr`** - wallet address for tax collecting `optional` **`value`** - m-tokens sum (in datoshi) which is used for key delegation staker order: **`cert`** - name of the staker's private certificate for delegation **`value`** - m-tokens sum (in datoshi) which is used for key delegation ### Curl Example `Request:` ```actionscript curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{ "method": "srv_stake", "subcommand": ["delegate"], "arguments": { "net": "foobar", "w": "foobar_root_0", "cert": "mastercert", "value": "10.0e+18", "fee": "5.0e+18" }, "id": "1" }' ``` `Response:` ```json { "type": 2, "result": "SAVE TO TAKE ===>>> Stake transaction 0x6253453196BB5CEEA7CAF1E7C4D5B45608442881555850A741FB831E413DC84A has done", "id": 1 } ```