Solana Staking
Last updated
Was this helpful?
Last updated
Was this helpful?
Instructions:
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get list of all your stake accounts.
Authorization*
string
Bearer TOKEN
currencySymbol*
string
Must be "SOL"
action*
string
Must be "get-stake-accounts"
address*
string
Your wallet address
POST
http://www.allnodes.com/api/v1/staking
This endpoint allows you to get serialized unsigned transaction for creating stake account.
Authorization*
string
Bearer TOKEN
currencySymbol*
string
Must be "SOL"
action*
string
Must be "create-stake-account"
address*
string
Your wallet address
amount*
string
Amount to stake
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get serialized unsigned transaction for delegating staked coins to Allnodes validator.
Authorization*
string
Bearer TOKEN
currencySymbol*
string
Must be "SOL"
action*
string
Must be "stake"
address*
string
Your wallet address
stakeAccountPublicKey*
string
Public key of your stake account. Public key can be extracted from "Create stake account" call
POST
http://www.allnodes.com/api/v1/staking
This endpoint allows you to get serialized unsigned transaction for unbonding coins (deactivating your stake account).
Authorization*
string
Bearer TOKEN
currencySymbol*
string
Must be "SOL"
action*
string
Must be "unbond-stake"
address*
string
Your wallet address
stakeAccountPublicKey*
string
Public key of your stake account. Public key can be extracted from "Create stake account" call
POST
https://www.allnodes.com/api/v1/staking
This endpoint allows you to get serialized unsigned transaction for withdraw stake.
Authorization*
string
Bearer TOKEN
currencySymbol*
string
Must be "SOL"
action*
string
Must be "withdraw-stake"
address*
string
Your wallet address
stakeAccountPublicKey*
string
Public key of your stake account. Public key can be extracted from "Create stake account" call
amount*
string
Amount to withdraw