> ## Documentation Index
> Fetch the complete documentation index at: https://core.vanish.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pending Actions

> Fetches the user's pending actions, including deposits, withdrawals, and trades.



## OpenAPI

````yaml POST /account/pending
openapi: 3.0.1
info:
  title: Vanish Core API
  description: API endpoints for the Vanish Core service.
  license:
    name: MIT
  version: 2.0.0
servers:
  - url: https://core-api-dev.vanish.trade
security:
  - ApiKeyAuth: []
paths:
  /account/pending:
    post:
      description: >-
        Fetches the user's pending actions, including deposits, withdrawals, and
        trades.
      requestBody:
        description: Request payload for querying pending actions.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PendingActionsRequest'
        required: true
      responses:
        '200':
          description: >-
            A successful response containing a list of the user's pending
            actions.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PendingAction'
        '401':
          description: >-
            Unauthorized. The request is missing a valid API key or the
            signature is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/responses/UnauthorizedError'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PendingActionsRequest:
      required:
        - timestamp
        - user_address
        - signature
      type: object
      properties:
        timestamp:
          description: >-
            The current timestamp in milliseconds used for signature
            verification. Can be provided as a string or a number
          oneOf:
            - type: string
              pattern: ^[0-9]+$
            - type: integer
              format: int64
        user_address:
          description: The Solana wallet address of the user.
          type: string
        signature:
          description: >-
            Signature of the string 'By signing, I hereby agree to Vanish's
            Terms of Service and agree to be bound by them
            (docs.vanish.trade/legal/TOS)


            Details: read:{timestamp}' signed using the user's wallet.
          type: string
    PendingAction:
      required:
        - tx_id
        - action_type
        - status
        - created_at
        - frozen_balance_changes
      type: object
      properties:
        tx_id:
          description: Transaction id of the pending action on chain
          type: string
        action_type:
          description: Type of pending action.
          enum:
            - trade
            - deposit
            - withdraw
          type: string
        status:
          description: Current status of the action.
          enum:
            - pending
            - completed
            - failed
            - expired
          type: string
        created_at:
          description: Timestamp (ISO 8601 format) indicating when the action was created.
          type: string
        frozen_balance_changes:
          type: array
          items:
            $ref: '#/components/schemas/BalanceChange'
          description: List of frozen balance changes associated with this pending action.
    Error:
      type: string
    BalanceChange:
      required:
        - token_address
        - change
      type: object
      properties:
        token_address:
          description: The token address
          type: string
        change:
          description: >-
            Amount of balance change in the smallest unit (e.g., lamports for
            SOL).
          type: string
          format: int64
  responses:
    UnauthorizedError:
      description: API key is missing or invalid
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````