> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview Unstake

> Previews an unstaking request with the given amount and returns the estimated amount that would be unstaked. This feature currently only supports ETH.



## OpenAPI

````yaml post /v1/portfolios/{portfolio_id}/wallets/{wallet_id}/staking/unstake/preview
openapi: 3.0.1
info:
  title: REST API
  description: >-
    The Coinbase Prime REST API provides programmatic access to trading,
    custody, staking, market data, and account management functionality.
  version: '0.1'
servers:
  - url: https://api.prime.coinbase.com/
security: []
tags:
  - name: PrimeRESTAPI
paths:
  /v1/portfolios/{portfolio_id}/wallets/{wallet_id}/staking/unstake/preview:
    post:
      tags:
        - Staking
      summary: Preview Unstake
      description: >-
        Previews an unstaking request with the given amount and returns the
        estimated amount that would be unstaked. This feature currently only
        supports ETH.
      operationId: PrimeRESTAPI_PreviewUnstake
      parameters:
        - name: portfolio_id
          in: path
          description: The portfolio ID
          required: true
          schema:
            type: string
        - name: wallet_id
          in: path
          description: The wallet ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              required:
                - amount
              type: object
              properties:
                amount:
                  type: string
                  description: Amount to preview unstaking
              description: >-
                PreviewUnstakeRequest represents a request to preview an
                unstaking operation.
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/coinbase.public_rest_api.PreviewUnstakeResponse
components:
  schemas:
    coinbase.public_rest_api.PreviewUnstakeResponse:
      required:
        - estimated_amount
      type: object
      properties:
        estimated_amount:
          type: string
          description: Estimated amount that would be unstaked
        wallet_id:
          type: string
          description: The wallet ID
        wallet_address:
          type: string
          description: The blockchain address of the wallet
        current_timestamp:
          type: string
          description: Timestamp at which this preview was generated (ISO 8601)
        validators:
          type: array
          description: Per-validator breakdown of the unstake simulation
          items:
            $ref: >-
              #/components/schemas/coinbase.public_rest_api.ValidatorUnstakePreview
      description: >-
        PreviewUnstakeResponse contains the response data from previewing an
        unstaking operation.
    coinbase.public_rest_api.ValidatorUnstakePreview:
      type: object
      properties:
        validator_address:
          type: string
          description: Public address of the validator being unstaked from
        estimated_unstaking_amount:
          type: string
          description: Estimated amount that would be unstaked from this validator (in ETH)
        unstake_time_estimate_in_hours:
          type: number
          description: Estimated time until this validator's unstake completes, in hours
          format: double
        estimated_unstake_date:
          type: string
          description: >-
            Estimated date when this validator's unstake will complete (ISO
            8601)
      description: >-
        ValidatorUnstakePreview contains the per-validator breakdown for an
        unstake preview.

````