POST
/
v1
/
stake
/
context
Get staking context
curl --request POST \
  --url https://api.cdp.coinbase.com/platform/v1/stake/context \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "network_id": "ethereum-mainnet",
  "asset_id": "ETH",
  "address_id": "0xfc807D1bE4997e5C7B33E4d8D57e60c5b0f02B1a",
  "options": {}
}'
{
  "context": {
    "stakeable_balance": {
      "amount": "12345678",
      "asset": {
        "network_id": "base-sepolia",
        "asset_id": "USDC",
        "decimals": 18,
        "contract_address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
      }
    },
    "unstakeable_balance": {
      "amount": "12345678",
      "asset": {
        "network_id": "base-sepolia",
        "asset_id": "USDC",
        "decimals": 18,
        "contract_address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
      }
    },
    "claimable_balance": {
      "amount": "12345678",
      "asset": {
        "network_id": "base-sepolia",
        "asset_id": "USDC",
        "decimals": 18,
        "contract_address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Enter your JSON Web Token (JWT) here. Refer to the Generate JWT section of our Authentication docs for information on how to generate your Bearer Token.

Body

application/json
network_id
string
required

The ID of the blockchain network.

Example:

"ethereum-mainnet"

asset_id
string
required

The symbol of the asset being staked.

Example:

"ETH"

address_id
string
required

The onchain address for which the staking context is being fetched

Example:

"0xfc807D1bE4997e5C7B33E4d8D57e60c5b0f02B1a"

options
object
required

Additional options for getting the staking context. See here for detailed options.

Response

staking context for an address fetched successfully

Context needed to perform a staking operation

context
object
required