Unstake tokens
POSThttps://api.fuse.io/api/v0/staking/unstake
Unstakes a specified amount of tokens back to a wallet.
Request
Query Parameters
apiKey stringrequired
Your API key to authenticate requests.
- application/json
Body
required
accountAddress string
tokenAmount string
tokenAddress string
Responses
- 201
- 403
Token unstaking initiated successfully.
- application/json
- Schema
- Example (from schema)
Schema
contractAddress string
encodedABI string
{
"contractAddress": "string",
"encodedABI": "string"
}
Access to the resource is forbidden.
- application/json
- Schema
- Example (from schema)
Schema
statusCode integer
errorMessage string
error string
{
"statusCode": 0,
"errorMessage": "string",
"error": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.fuse.io/api/v0/staking/unstake' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"accountAddress": "string",
"tokenAmount": "string",
"tokenAddress": "string"
}'
ResponseClear