Solana (SOL): Fetch staking rewards
Fetch Solana Staking Rewards easily to make your reportings programmatically.
Field | Value Type | Description |
---|---|---|
stake_account | string | Address of the Stake Account |
withdraw_pubkey | string | Address of the current withdraw authority of the Stake Account |
balance | string | Current Stake Account balance in Lamports |
rewards | string | Total net rewards earned since activation in Lamports |
delegation_epoch | Epoch | Epoch at which the stake becomes delegated |
activation_epoch | Epoch or null | Last epoch when the Stake Account became active |
deactivation_epoch | Epoch or null | Last epoch when the Stake Account became deactivated |
state | string (see Solana Stake State below) | Current Stake Account State. See Solana Stake State below |
net_apy | float32 | Net Annual Pourcentage Yield |
vote_account | string | Address of the Vote Account (validator) the Stake Account delegates to |
updated_at | string | Last stake update date (RFC3339 UTC time) |
Field | Value Type | Description |
---|---|---|
nb | unit | Epoch Number |
begin_at | string | Epoch Date (RFC3339 UTC time) |
Value | Description |
---|---|
active | Stake active |
inactive | Stake deactivated |
activating | Stake requested, activation in next epoch |
deactivating | Stake deactivation requested, deactivation in next epoch |
/* async getStakesByAccounts(accountIds: string[]): Promise<SolStake[]> */
const stakes = await k.sol.getStakesByAccounts(['abcd...']);
/* async getStakesByStakeAccounts(stakeAccounts: string[]): Promise<SolStake[]> */
const stakes = await k.sol.getStakesByStakeAccounts(['abcd...']);
/* async getStakesByWallets(wallets: string[]): Promise<SolStake[]> */
const stakes = await k.sol.getStakesByWallets(['abcd...']);
get
https://api.kiln.fi/v1
/sol/stakes
Retrieve Solana Stakes for stake accounts
Field | Value Type | Description |
---|---|---|
date | string | Reward day following format "2006-01-02" |
rewards | string | Net rewards for this epoch in Lamports |
active_balance | string | Active balance for this epoch n Lamports |
net_apy | float32 | Net Annual Pourcentage Yield |
/* async getRewardsByAccounts(accountIds: string[]): Promise<SolReward[]> */
const rewards = await k.sol.getRewardsByAccounts(['abcd...']);
/* async getRewardsByStakeAccounts(stakeAccounts: string[]): Promise<SolReward[]> */
const rewards = await k.sol.getRewardsByStakeAccounts(['abcd...']);
/* async getRewardsByWallets(wallets: string[]): Promise<SolReward[]> */
const rewards = await k.sol.getRewardsByWallets(['abcd...']);
get
https://api.kiln.fi/v1
/sol/rewards
Retrieve Solana Rewards for stake accounts
Last modified 1mo ago