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

# Create Withdrawal Request

> Construct a serialized transaction to withdraw unlocked tokens from the delegation pool.



## OpenAPI

````yaml POST /api/v1/aptos/{network}/staking/delegated/withdraw
openapi: 3.0.0
info:
  title: Staking API
  description: API used for staking
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.p2p.org/api
security:
  - bearer: []
tags:
  - name: Aptos
    description: Aptos staking operations (stake, unstake, withdraw, claim).
  - name: Celestia
    description: Celestia staking operations (stake, unstake, redelegate, claim).
  - name: Cosmos
    description: Cosmos Hub staking operations (stake, unstake, redelegate, claim).
  - name: EigenLayer
    description: EigenLayer restaking operations.
  - name: Ethereum
    description: Ethereum staking operations (direct, SSV, pooled).
  - name: Hyperliquid
    description: Hyperliquid staking operations.
  - name: Monad
    description: Monad staking operations (delegate, undelegate, withdraw).
  - name: P2P SSV
    description: P2P-managed SSV validator operations (deposit, claim, withdraw).
  - name: Polkadot
    description: Polkadot staking and nomination pool operations.
  - name: Polygon
    description: Polygon staking operations.
  - name: Pooled Staking
    description: Pooled staking vault operations (deposit, unstake, withdraw).
  - name: Sei
    description: Sei staking operations (stake, unstake, redelegate, claim).
  - name: Solana
    description: Solana staking operations (stake, split, merge, deactivate, withdraw).
  - name: SSV
    description: SSV network validator operations.
  - name: Story
    description: Story network staking operations.
  - name: Sui
    description: Sui staking operations.
  - name: TON
    description: TON staking operations (single nominator, whales pool).
  - name: TRON
    description: TRON staking operations (freeze, delegate, vote, withdraw).
  - name: Unified
    description: Unified multi-chain staking interface.
paths:
  /api/v1/aptos/{network}/staking/delegated/withdraw:
    post:
      tags:
        - Aptos
      summary: Create Withdrawal Request
      description: >-
        Construct a serialized transaction to withdraw unlocked tokens from the
        delegation pool.
      operationId: aptos-staking-delegated-withdraw
      parameters:
        - name: network
          required: true
          in: path
          description: >-
            <p>Aptos network:</p><ul><li>`mainnet` — Aptos
            mainnet.</li><li>`testnet` — Aptos devnet.</li></ul>
          schema:
            enum:
              - mainnet
              - testnet
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AptosCreateWithdrawTransactionRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessResponse'
                  - type: object
                    properties:
                      result:
                        $ref: >-
                          #/components/schemas/AptosCreateWithdrawTransactionResponse
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ExceptionResponse'
                  - type: object
                    properties:
                      error:
                        oneOf:
                          - $ref: >-
                              #/components/schemas/AptosGasUnitPriceTooLowException
                          - $ref: >-
                              #/components/schemas/AptosInsufficientBalanceException
                          - $ref: >-
                              #/components/schemas/AptosInsufficientInactiveBalanceException
                          - $ref: >-
                              #/components/schemas/AptosInvalidDelegatorAddressException
                          - $ref: >-
                              #/components/schemas/AptosMaxGasAmountTooLowException
                          - $ref: >-
                              #/components/schemas/AptosSimulateTransactionException
              examples:
                GasUnitPriceTooLowException:
                  value:
                    error:
                      code: 124106
                      message: >-
                        The request could not be performed because the gas unit
                        price provided is too low.
                      name: GasUnitPriceTooLowException
                      type: client
                    result: null
                InsufficientBalanceException:
                  value:
                    error:
                      code: 124109
                      message: >-
                        The request could not be performed because the account
                        does not have enough balance to perform the transaction.
                      name: InsufficientBalanceException
                      type: client
                    result: null
                InsufficientInactiveBalanceException:
                  value:
                    error:
                      code: 124115
                      message: >-
                        The request could not be performed due to insufficient
                        inactive balance in the pool. 
                      name: InsufficientInactiveBalanceException
                      type: client
                    result: null
                InvalidDelegatorAddressException:
                  value:
                    error:
                      code: 124108
                      message: >-
                        The request could not be performed because the delegator
                        address provided is not valid.
                      name: InvalidDelegatorAddressException
                      type: client
                    result: null
                MaxGasAmountTooLowException:
                  value:
                    error:
                      code: 124107
                      message: >-
                        The request could not be performed because the max gas
                        amount provided is too low.
                      name: MaxGasAmountTooLowException
                      type: client
                    result: null
                SimulateTransactionException:
                  value:
                    error:
                      code: 124110
                      message: >-
                        The request could not be performed because the
                        simulation of the transaction failed. Reason: undefined.
                      name: SimulateTransactionException
                      type: client
                    result: null
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ExceptionResponse'
                  - type: object
                    properties:
                      error:
                        oneOf:
                          - $ref: '#/components/schemas/AuthNoTokenException'
                          - $ref: '#/components/schemas/AuthWrongTokenException'
              examples:
                NoTokenException:
                  value:
                    error:
                      code: 101111
                      message: >-
                        No Bearer token has been provided. To obtain an
                        authentication token, follow the instructions at
                        https://docs.p2p.org/docs/authentication.
                      name: NoTokenException
                      type: authentication
                    result: null
                WrongTokenException:
                  value:
                    error:
                      code: 101109
                      message: >-
                        An invalid Bearer token has been provided. Please
                        specify the correct authentication token.
                      name: WrongTokenException
                      type: authentication
                    result: null
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
        - bearer: []
components:
  schemas:
    AptosCreateWithdrawTransactionRequest:
      type: object
      properties:
        amount:
          type: integer
          format: int64
          description: Amount of tokens to withdraw in Octas (1 APT = 10⁸ Octas).
          example: 1100000000
          nullable: false
        delegatorAddress:
          type: string
          description: Delegator account address.
          nullable: false
          example: '0xd890b1115b39c8d182aeac6cae313cc713cd93922135f8a5893c34fce4e0f32a'
        gas:
          description: >-
            Computational effort required to execute the transaction, measured
            in gas units.
          nullable: false
          allOf:
            - $ref: '#/components/schemas/AptosGasRequest'
      required:
        - amount
        - delegatorAddress
        - gas
    SuccessResponse:
      type: object
      properties:
        error:
          type: object
          nullable: true
          default: null
          description: Error object. Always null on successful responses.
        result:
          type: object
          description: Response payload containing the requested data.
      description: Standard API success response envelope wrapping the result payload.
      required:
        - error
        - result
    AptosCreateWithdrawTransactionResponse:
      type: object
      properties:
        amount:
          type: integer
          format: int64
          description: Amount of tokens to withdraw in Octas (1 APT = 10⁸ Octas).
          example: 1100000000
          nullable: false
        delegatorAddress:
          type: string
          description: Delegator account address.
          nullable: false
          example: '0xd890b1115b39c8d182aeac6cae313cc713cd93922135f8a5893c34fce4e0f32a'
        unsignedTransaction:
          type: string
          description: >-
            Unsigned transaction in the hexadecimal format. Sign the transaction
            and submit it to the blockchain to perform the called action.
          example: >-
            0xa571a5bc9b1bfd5fe58e6e09a5be251a3299985494d022959ce206f1f23f752e21000000000000000200000000000000000000000000000000000000000000000000000000000000010f64656c65676174696f6e5f706f6f6c096164645f7374616b650002207a2ddb6af66beb0d9987c6c9010cb9053454f067e16775a8ecf19961195c3d28080100000000000000400d0300000000006400000000000000e5742068000000000200
          nullable: false
        createdAt:
          format: date-time
          type: string
          description: Timestamp of the transaction in the ISO 8601 format.
          example: '2023-08-24T08:14:50.455Z'
          nullable: false
      required:
        - amount
        - delegatorAddress
        - unsignedTransaction
        - createdAt
    ExceptionResponse:
      type: object
      properties:
        error:
          type: object
          description: Error object containing exception details. Null on success.
        result:
          type: object
          nullable: true
          default: null
          description: Result payload. Always null on error responses.
        requestId:
          type: string
          description: >-
            Identifier of the request (the `x-request-id` header). Quote this
            value to correlate the response with server logs.
          example: 90c16e9e-6e99-4651-a033-60290356df2f
        timestamp:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the error response was generated.
          example: '2026-05-20T22:29:03.126Z'
      description: Standard API error response envelope wrapping the exception details.
      required:
        - error
        - result
        - timestamp
    AptosGasUnitPriceTooLowException:
      type: object
      properties:
        type:
          type: string
          default: client
          example: client
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 124106
          example: 124106
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            The request could not be performed because the gas unit price
            provided is too low.
          example: >-
            The request could not be performed because the gas unit price
            provided is too low.
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: GasUnitPriceTooLowException
          example: GasUnitPriceTooLowException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AptosInsufficientBalanceException:
      type: object
      properties:
        type:
          type: string
          default: client
          example: client
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 124109
          example: 124109
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            The request could not be performed because the account does not have
            enough balance to perform the transaction.
          example: >-
            The request could not be performed because the account does not have
            enough balance to perform the transaction.
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: InsufficientBalanceException
          example: InsufficientBalanceException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AptosInsufficientInactiveBalanceException:
      type: object
      properties:
        type:
          type: string
          default: client
          example: client
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 124115
          example: 124115
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            The request could not be performed due to insufficient inactive
            balance in the pool. %s
          example: >-
            The request could not be performed due to insufficient inactive
            balance in the pool. %s
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: InsufficientInactiveBalanceException
          example: InsufficientInactiveBalanceException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AptosInvalidDelegatorAddressException:
      type: object
      properties:
        type:
          type: string
          default: client
          example: client
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 124108
          example: 124108
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            The request could not be performed because the delegator address
            provided is not valid.
          example: >-
            The request could not be performed because the delegator address
            provided is not valid.
          description: Human-readable error message describing what went wrong.
        errors:
          description: Validation error details when applicable.
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorResponse'
        name:
          type: string
          default: InvalidDelegatorAddressException
          example: InvalidDelegatorAddressException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - errors
        - name
    AptosMaxGasAmountTooLowException:
      type: object
      properties:
        type:
          type: string
          default: client
          example: client
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 124107
          example: 124107
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            The request could not be performed because the max gas amount
            provided is too low.
          example: >-
            The request could not be performed because the max gas amount
            provided is too low.
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: MaxGasAmountTooLowException
          example: MaxGasAmountTooLowException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AptosSimulateTransactionException:
      type: object
      properties:
        type:
          type: string
          default: client
          example: client
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 124110
          example: 124110
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            The request could not be performed because the simulation of the
            transaction failed. Reason: %s.
          example: >-
            The request could not be performed because the simulation of the
            transaction failed. Reason: %s.
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: SimulateTransactionException
          example: SimulateTransactionException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AuthNoTokenException:
      type: object
      properties:
        type:
          type: string
          default: authentication
          example: authentication
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 101111
          example: 101111
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            No Bearer token has been provided. To obtain an authentication
            token, follow the instructions at
            https://docs.p2p.org/docs/authentication.
          example: >-
            No Bearer token has been provided. To obtain an authentication
            token, follow the instructions at
            https://docs.p2p.org/docs/authentication.
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: NoTokenException
          example: NoTokenException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AuthWrongTokenException:
      type: object
      properties:
        type:
          type: string
          default: authentication
          example: authentication
          description: Exception category.
        code:
          type: integer
          format: int32
          default: 101109
          example: 101109
          description: Numeric error code identifying the exception type.
        message:
          type: string
          default: >-
            An invalid Bearer token has been provided. Please specify the
            correct authentication token.
          example: >-
            An invalid Bearer token has been provided. Please specify the
            correct authentication token.
          description: Human-readable error message describing what went wrong.
        name:
          type: string
          default: WrongTokenException
          example: WrongTokenException
          description: Exception class name for runtime error identification.
      required:
        - type
        - code
        - message
        - name
    AptosGasRequest:
      type: object
      properties:
        unitPrice:
          type: integer
          format: int64
          description: Price per unit of gas in Octas for processing the Aptos transaction.
          example: 100
          minimum: 0
        maxGasLimit:
          type: integer
          format: int64
          description: Maximum gas limit for the transaction.
          example: 100
          minimum: 0
    ValidationErrorResponse:
      type: object
      properties:
        property:
          type: string
          description: Name of the property that failed validation.
        constraints:
          type: object
          additionalProperties:
            type: string
          description: Validation constraint details describing what was expected.
      required:
        - property
        - constraints
  responses:
    TooManyRequests:
      description: >-
        Too Many Requests — the client exceeded its rate limit. The response
        advertises when to retry and the active quota via headers.
      headers:
        Retry-After:
          description: Number of seconds to wait before retrying the request.
          schema:
            type: integer
            example: 60
        RateLimit-Limit:
          description: >-
            The request quota (maximum number of requests) for the most
            restrictive applicable window.
          schema:
            type: integer
            example: 120
        RateLimit-Reset:
          description: >-
            Number of seconds until the rate-limit window resets and requests
            are accepted again.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: >-
            The active rate-limit policy as `<limit>;w=<window-seconds>`,
            comma-separated when multiple windows apply.
          schema:
            type: string
            example: 120;w=60
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: integer
                  name:
                    type: string
                    example: ThrottlerException
                  message:
                    type: string
                    example: ThrottlerException
                  errors:
                    type: array
                    nullable: true
                    items:
                      type: object
              result:
                type: object
                nullable: true
                example: null
              requestId:
                type: string
                description: >-
                  Identifier of the request (the `x-request-id` header). Quote
                  this value to correlate the response with server logs.
                example: 90c16e9e-6e99-4651-a033-60290356df2f
              timestamp:
                type: string
                format: date-time
                description: ISO 8601 timestamp of when the error response was generated.
                example: '2026-05-20T22:29:03.126Z'
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Create Withdrawal Request](/reference/solana-staking-withdraw.md)
