View Rewards and Balances
Overview
Once you stake assets, you can retrieve the following information for a staking wallet:
- Expected rate of rewards - If rewards are re-staked automatically, you can view the annual-percentage yield (APY). If rewards aren't re-staked automatically, you can view the annual-percentage rate (APR).
- Rewards accrued
- Staking-delegated balance
Prerequisites
Steps
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
query BitgoStakingWalletQuery($coin: String!, $walletId: String!) { bitgoStakingWallet(coin: $coin, walletId: $walletId) @rest( type: "BitgoStakingWalletResponse" path: "api/staking/v1/{args.coin}/wallets/{args.walletId}" ) { enterpriseId walletId walletType coin delegated pendingUnstake rewards apy creationDate modifiedDate } } `;
Step Result
1 2 3 4 5 6 7 8 9 10 11 12 13
{ "enterpriseId": "1032e75c451052000436831deb797af1", "walletId": "2032e75g451052000636831abd797bd3", "walletType": "custodial", "coin": "eth", "delegated": 6400000000000000000, "pendingStake":0, "pendingUnstake": 0, "rewards": 1000000000000000, "apy": 8.2, "createdDate": "2022-01-10T14:32:28Z", "modifiedDate": "2022-01-10T14:32:28Z" }
Next Steps
If you want to unstake your assets, you will need a delegation ID. For more details, see View Delegation Details
See Also
API Reference: Retrieve Staking Wallet Information For A Wallet