Updates public key delegation value for specified certificate or transaction hash with specified net name. Pay or cacheback the difference of m-tokens of native net token.
## Request Structure
`JSON object:`
```JSON
{
"method": "srv_stake",
"subcommand": ["update"],
"arguments": {
"net": "network_name",
"tx | cert": "transaction_hash | delegated_cert",
"w": "wallet_name",
"value": "new_delegation_value",
"fee": "value"
},
"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]]
**`tx | cert`** - hash of the transaction | name of the delegated certificate
**`w`** - name of the wallet from where m-tokens will be taken
**`value`** - a new delegated stake value in datoshi
**`fee`** - transaction fee
### Curl Example
`Request:`
```actionscript
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "srv_stake",
"subcommand": ["update"],
"arguments": {
"net": "riemann",
"tx": "0x1848E9604065199E47A494361D7E40AF8EB8245C3D3DC56C089D4D074A2DBF73",
"w": "blade",
"value": "10.0e+18",
"fee": "0.05e+18"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
{
"sign": "",
"hash": "0x6E1E5B5409CC953F5A725EE26D6441D18742E6EAAC98A65FCE2E13D85AE361FB",
"message": "Delegated m-tokens value will change"
}
],
"id": 1
}
```