---
title: "Post Withdrawal Intent"
method: POST
path: "/v1/near/{network}/withdrawal-intents"
tags: ["NEAR"]
---

# Post Withdrawal Intent

`POST /v1/near/{network}/withdrawal-intents`

Returns an unsigned transaction that can be used to withdraw your stake after it was deactivated through the [Post Deactivation Intent](https://docs.blockdaemon.com/reference/postneardeactivationintent) endpoint.

## Request body

- NewWithdrawIntentNear — Request object to create a new withdrawal intent for NEAR.
  - `wallet_address` string, required — Base58 encoded public key or registered named account. [Accounts](https://docs.near.org/concepts/basics/accounts/account-id/).
  - `public_key` string, required — Base58 encoded public key prefixed by ed25519, associated with the private key that will be used to sign the transaction.
  - `to` string — Base58 encoded public key or registered named account. [Accounts](https://docs.near.org/concepts/basics/accounts/account-id/).
  - `plan_id` string — This feature enables you to stake to validators from the specified plan(s). When no plan id is specified, validators across all plans that match the API route will be available for staking. If it is a shared plan, you can to stake to validators on a shared node from the specified plan.

## Response `200`

Created

- object — Result of a new withdrawal intent request.
  - `withdraw_intent_id` string, uuid, required — Unique idenifier for a withdrawal intent.
  - `customer_id` string, required — Unique identifier for a customer
  - `protocol` 'near', required — Near protocol
  - `network` 'mainnet' | 'testnet' | 'localnet', required — NEAR network
  - `near` WithdrawalIntentNear — NEAR Protocol Withdrawal Intent
    - `withdrawal_intent_id` string, uuid, required — Unique idenifier for deactivate intent.
    - `to` string, required — Base58 encoded public key or registered named account. [Accounts](https://docs.near.org/concepts/basics/accounts/account-id/).
    - `unsigned_transaction` string, base64, required — Generated unsigned transaction smart contract call data.
    - `unsigned_transaction_hash` string, base64, required — A generated transaction that is ready to sign.
    - `amount` string — Denomination of NEAR Protocol.
    - `wallet_address` string, required — Base58 encoded public key or registered named account. [Accounts](https://docs.near.org/concepts/basics/accounts/account-id/).
    - `public_key` string, required — Base58 encoded public key prefixed by ed25519, associated with the private key that will be used to sign the transaction.
    - `expiration_time` integer, required — Transaction expiration time

## Other responses

- `400` — Invalid request.
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
