Staking API
Endpoints for staking, unstaking, and managing staking positions.
Staking Operations
Stake Tokens
POST /stake/stake
Stake tokens with a staking provider.
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
chainId | number | Yes | Chain ID |
protocol | string | Yes | Staking provider (ankr, blockdaemon) |
amount | string | Yes | Amount to stake |
walletAddress | string | Yes | User wallet address |
Unstake Tokens
POST /stake/unstake
Unstake previously staked tokens.
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
chainId | number | Yes | Chain ID |
protocol | string | Yes | Staking provider |
amount | string | Yes | Amount to unstake |
walletAddress | string | Yes | User wallet address |
Position Information
Get Staked Positions
GET /stake/getstakedpositions
Retrieve all staking positions for a user.
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
walletAddress | string | Yes | User wallet address |
chainId | number | Yes | Chain ID |
Get Staking Pools
GET /stake/get-pools
Retrieve available staking pools with APY and TVL information.
Get APY
POST /stake/get-apy
Get current APY rates for staking by chain.
Stake by Token
GET /stake/stakeByToken
Get staking options filtered by a specific token.
Blockdaemon-Specific Endpoints
Blockdaemon Staking
POST /stake/blockdaemon/staking
Stake through Blockdaemon validators.
Blockdaemon Withdraw
POST /stake/blockdaemon/withdraw
Withdraw staked tokens from Blockdaemon.
Blockdaemon APY
GET /stake/blockdaemon/apy
Get Blockdaemon-specific APY rates.
Blockdaemon Rewards
POST /stake/blockdaemon/rewards
Get reward details for Blockdaemon staking positions.
Polygon-Specific Endpoints
Create Polygon Intent
POST /stake/blockdaemon/polygon/create-intent
Create a staking bootstrap intent for Polygon.
Polygon Deactivation
POST /stake/blockdaemon/polygon/deactivation
Create a deactivation intent for unstaking on Polygon (begins the unbonding process).