Skip to main content
POST
/
v1
/
portfolios
/
{portfolio_id}
/
wallets
/
{wallet_id}
/
staking
/
unstake
/
preview
Preview Unstake
curl --request POST \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/staking/unstake/preview \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "<string>"
}
'
{
  "estimated_amount": "<string>",
  "wallet_id": "<string>",
  "wallet_address": "<string>",
  "current_timestamp": "<string>",
  "validators": [
    {
      "validator_address": "<string>",
      "estimated_unstaking_amount": "<string>",
      "unstake_time_estimate_in_hours": 123,
      "estimated_unstake_date": "<string>"
    }
  ]
}

Path Parameters

portfolio_id
string
required

The portfolio ID

wallet_id
string
required

The wallet ID

Body

application/json

PreviewUnstakeRequest represents a request to preview an unstaking operation.

amount
string
required

Amount to preview unstaking

Response

200 - application/json

A successful response.

PreviewUnstakeResponse contains the response data from previewing an unstaking operation.

estimated_amount
string
required

Estimated amount that would be unstaked

wallet_id
string

The wallet ID

wallet_address
string

The blockchain address of the wallet

current_timestamp
string

Timestamp at which this preview was generated (ISO 8601)

validators
object[]

Per-validator breakdown of the unstake simulation