Skip to main content

Stake maturity

Intermediate
Tutorial

Overview

Since version1.4.0
Idempotent?no
Minimal access levelcontroller

Once you have a neuron starts accumulating maturity, you can either decide to leave the maturity as it is until you decide to convert it to ICP, or you can make use of it and stake it in addition to your ICP. To do the latter, you will have to stake your maturity.

Staking maturity

You can set how much of the existing maturity you want to stake. The maturity needs to be larger than zero for the operation to work. In the following example command, 100% of the maturity is staked.

curl --location '0.0.0.0:8081/construction/payloads'  --header 'Content-Type: application/json' --data '
{
"network_identifier": {
"blockchain": "Internet Computer",
"network": "00000000000000020101"
},
"public_keys": [
{
"hex_bytes": "047a83e378053f87b49aeae53b3ed274c8b2ffbe59d9a51e3c4d850ca8ac1684f7131b778317c0db04de661c7d08321d60c0507868af41fe3150d21b3c6c757367",
"curve_type": "secp256k1"
}
],
"operations": [
{
"operation_identifier": {
"index": 0
},
"type": "STAKE_MATURITY",
"account": {
"address": "8b84c3a3529d02a9decb5b1a27e7c8d886e17e07ea0a538269697ef09c2a27b4"
},
"metadata": {
"neuron_index": 0,
"percentage_to_stake": 100
}
}
],
"metadata": null
}'