NEAR Staking API - Post Deactivation Intent
Request object to create a new deactivation intent for NEAR Protocol.
Fields
network
- Type:
string - Enum:
- Allowed:
mainnet,testnet,localnet
- Allowed:
- Type:
amount
- Type:
string - Required: Yes
- Pattern:
^[1-9]\d+$ - Description: Amount of yoctoNEAR to deactivate. 1 NEAR = 1e24 yoctoNEAR
- Type:
wallet_address
- Type:
string - Required: Yes
- Pattern:
^([a-km-zA-HJ-NP-Z1-9]{22,44})|((([a-z\d]+[-_])*[a-z\d]+\.)*([a-z\d]+[-_])*[a-z\d]+)$ - Description: Base58 encoded public key or registered named account. Accounts.
- Type:
public_key
- Type:
string - Required: Yes
- Pattern:
^ed25519:[a-km-zA-HJ-NP-Z1-9]{22,44}$ - Description: Base58 encoded public key prefixed by ed25519, associated with the private key that will be used to sign the transaction.
- Type:
to
- Type:
string - Pattern:
^([a-km-zA-HJ-NP-Z1-9]{22,44})|((([a-z\d]+[-_])*[a-z\d]+\.)*([a-z\d]+[-_])*[a-z\d]+)$ - Description: Specifies the validator the stake was delegated to.
- Type:
plan_id
- Type:
string - Description: 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 stake to validators on a shared node from the specified plan.
- Type:
Responses
200
Created400
Invalid request.401
Header 'X-API-Key' missing.500
Internal server error.
Example cURL command
curl --request POST \
--url https://svc.blockdaemon.com/boss/v1/near/mainnet/deactivation-intents \
--header 'accept: application/json' \
--header 'content-type: application/json'
Status Codes
- 200
- 400
- 401
- 500