Approves [[STAKE_LOCK. JSON-RPC Requests|stake lock]] transaction using root node certificate.
> [!HINT] Note
> You must be a **root node**.
## Request Structure
`JSON object:`
```JSON
{
"method": "srv_stake",
"subcommand": ["approve"],
"arguments": {
"net": "network_name",
"tx": "transaction_hash",
"poa_cert": "priv_cert_name"
},
"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`** - hash of the transaction
**`poa_cert`** - root node certificate
### Curl Example
`Request:`
```actionscript
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "srv_stake",
"subcommand": ["approve"],
"arguments": {
"net": "foobar",
"tx": "0xC7C41EE4DD07879E1625CE66E2010B9CAD928A41764A54A1EC1A72E658332D8E",
"poa_cert": "foobar.root.pvt.0"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
"Approve decree 0x54AA403D43C10C35781899681168A1E6FAA8D8DDCEF31F61208546080ACF1B4E successfully created"
],
"errors": null,
"id": 1
}
```