The Graph 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 "GRT" |
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 indexer.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "GRT" |
action* | string | Must be "stake" |
address* | string | Your wallet address |
amount* | string | Amount to delegate |
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 indexer.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "GRT" |
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 indexer. Unbonding period: 28 epochs (28 days)
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer TOKEN |
Request Body
Name | Type | Description |
---|---|---|
currencySymbol* | string | Must be "GRT" |
action* | string | Must be "withdraw-stake" |
address* | string | Your wallet address |
Last updated