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>"
}

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

I