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

# Post Stake Intent

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

Returns an unsigned transaction that can be used to delegate your tokens to a Blockdaemon validator.

## Request body

- NewStakeIntentNear — Request object to create a new Stake 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

- NearStakeIntentResponse
  - `stake_intent_id` string, base58, required — Unique idenifier for a group of stakes.
  - `customer_id` string, required — Unique identifier for a customer
  - `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.
  - `protocol` 'near', required — Near protocol
  - `network` 'mainnet' | 'testnet' | 'localnet', required — NEAR network
  - `near` StakeIntentNear — NEAR Protocol Stake 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
- `503` — Insufficient validators available to process Stake Intent request

---

[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)
