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

# Post Deactivation Intent

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

Create a transaction for deactivating staked NEAR tokens.

The Post Deactivation Intent endpoint returns an unsigned transaction, which once signed and broadcasted starts the deactivation process. The process will complete in 4 NEAR epochs (48 hours).

Once the deactivation countdown is underway, you can still change the deactivated account by generating and broadcasting a new deactivation transaction. Please note that this will reset the countdown.

## Request body

- NewDeactivateIntentNear — Request object to create a new deactivation intent for NEAR Protocol.
  - `amount` string, required — 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.
  - `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

- NearDeactivationIntentResponse — Response to a new deactivation intent request.
  - `deactivate_intent_id` string, uuid, required — Unique idenifier for deactivate intent.
  - `customer_id` string, required — Unique identifier for a customer
  - `protocol` 'near', required — Near protocol
  - `network` 'mainnet' | 'testnet' | 'localnet', required — NEAR network
  - `near` DeactivateIntentNear, required — NEAR Protocol 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, required — 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)
