private/staking/unstake
POSTCreate a request to unlock staked token./private/staking/unstake
Request
Body
required
Request id (echoed in response)
Must be "private/staking/unstake"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
Staking instrument name, e.g. SOL.staked.
Unstake quantity. For yield-bearing instruments, quantity in terms of original staked token. E.g. for TSTON.staked, specify the TSTON.staked quantity to unstake; you will receive the equivalent in TON when the request completes.
Schema
- Possible values:
- ➖ NEW: Request created
- ➖ PENDING: In progress
- ➖ PENDING_WITHDRAWAL: Withdrawal pending
- ➖ PENDING_UNSTAKING: Unstaking pending
- ➖ STAKED: Staked
- ➖ COMPLETED: Completed
- ➖ REJECTED: Rejected
- Possible values by operations:
- ➖ private/staking/stake: NEW, PENDING, STAKED, COMPLETED, REJECTED
- ➖ private/staking/unstake: NEW, PENDING, PENDING_WITHDRAWAL, PENDING_UNSTAKING, STAKED, COMPLETED, REJECTED
- ➖ private/staking/get-open-stake: NEW, PENDING, PENDING_WITHDRAWAL, PENDING_UNSTAKING, STAKED
- ➖ private/staking/get-stake-history: COMPLETED, REJECTED
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
Request id
Staking instrument name, e.g. SOL.staked
Possible values: [NEW, PENDING, PENDING_WITHDRAWAL, PENDING_UNSTAKING, STAKED, COMPLETED, REJECTED]
Unstake quantity. For yield-bearing instruments, in terms of original staked token. E.g. for TSTON.staked, this shows the quantity of TON you will receive when the request completes.
Underlying instrument name, e.g. SOL
Reason for the status, e.g. NO_ERROR
Present when code !== 0.
Present when code !== 0.