Staking from a Wallet
To stake from a Vault wallet, use Create Stake. Instead of requiring a public address, this endpoint operates using Wallet IDs. For a refresher on Vault wallets and Wallet IDs, refer to the Wallets page. Once the request is successfully submitted, the response will include anactivity_id. As with other sensitive operations in Prime, this request must be approved in the Prime UI or Mobile App before it is processed. Once approved, the asset selected for staking will begin the bonding process, assuming the underlying protocol has a bonding period.
- Go
- Python
- TS/JS
Unstaking from a wallet
The process for unstaking is nearly identical to staking. As with staking, partial unstaking for ETH is supported. For example, if a wallet has 320 ETH staked, an unstake request can be submitted for just 96 ETH. Unstaking is not immediate. For Ethereum, after initiating the request and approving it in the Prime UI, ETH enters the Ethereum exit queue and becomes withdrawable only once the network finalizes the exit. For Solana, withdrawals typically take 2-4 days.- Go
- Python
- TS/JS
Balance Tracking for Staked Assets
The Get Wallet Balance endpoint provides several staking-specific balance subtypes that help you monitor the complete lifecycle of your staked assets:bondable_amount- Withdrawable balance that can be staked. Returns 0 for the ETH Staking Transaction Rewards walletbonded_amount- How much balance is currently stakedunbonding_amount- Amount in the process of unstaking (not yet withdrawable)unbondable_amount- Amount that can be unstakedpending_rewards_amount- Accrued rewards awaiting distribution