Staking
Approve a token
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get transaction params for approve tokens.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "MATIC" |
action* | string | Must be "approve" |
address* | string | Your wallet address |
Stake coins/tokens
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get transaction params for staking coins/tokens to Allnodes validator.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "MATIC" |
action* | string | Must be "stake" |
address* | string | Your wallet address |
amount* | string | Amount to delegate |
Withdraw rewards
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get transaction params for withdraw rewards earned.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "MATIC" |
action* | string | Must be "withdraw-rewards" |
address* | string | Your wallet address |
Restake rewards
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get transaction params for restake rewards earned.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "MATIC" |
action* | string | Must be "restake-rewards" |
address* | string | Your wallet address |
Unbond coins/tokens
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get transaction params for unbonding coins/tokens from Allnodes validator.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "MATIC" |
action* | string | Must be "unbond-stake" |
address* | string | Your wallet address |
amount* | string | Amount to undelegate |
Withdraw stake (after unbonding period finished)
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get transaction params for withdraw stake from Allnodes validator. Unbonding period: 80 checkpoints (1.5 - 2 days)
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "MATIC" |
action* | string | Must be "withdraw-stake" |
address* | string | Your wallet address |
amount* | string | Amount to withdraw |
Last updated