Staking
Last updated
Last updated
Returns an unsigned transaction to delegate SOL from your wallet to a validator.
Returns the current balance and status of a wallet or stake account.
POST
/api/v1/stake
Submits a stake request to generate an unsigned transaction. This transaction needs to be signed by the private key of the wallet address and broadcasted to the network to trigger consolidation. This request also creates a stake account and user will have to pay one time rent fee for stake account creation.
api-key*
String
API Key provided by Luganodes
validatorPubKey*
String
Public address of validator
walletPubKey*
String
Wallet address
amount*
Number
Stake amount in lamports. 1 SOL = 10^9 Lamports
validatorPubKey
Public address of validator
String
walletPubKey
Public address of user wallet
String
stakeAccountPubKey
Public address of stake account
String
unsignedTransactionBase64
Unsigned transaction which needs to be signed with the private key of the user wallet
String
stakeAmount
Amount of SOL to be staked
Number
rentAmount
Rent used for creation for stake account. Rent is required to be paid for creation of stake account and is a one time fee.
Number
totalAmount
Total SOL to be deducted from balance. It is the sum of stake amount and rent.
Number
POST
api/v1/balance
Returns the list of stake accounts associated with a wallet address along with their balance and active stake.
api-key*
String
API Key provided by Luganodes
walletPubKey*
String
Public address of user wallet
pubKey
Public address of stake account
String
balance
Balance of user stake account
Number
activeStake
Active stake of user stake account
Number
voter
Public address of voter account
String
status
Status of stake - Active/Inactive
String