POST
https://api.sfox.com/v1
/staking/unstake
Submit a request to unstake an an active stake.
Body Parameters
The sFOX-generated ID of the active stake you wish to unstake.
The currency of the active stake you wish to unstake.
Responses
204: Unstake Request Accepted
//Success response does not include a response body
Example Request
curl -X POST \
-H 'Content-type: application/json' \
-H 'Authorization: Bearer <API_TOKEN>' \
--data '{ "currency": "avax",
"id": 500 }' \
'https://api.sfox.com/v1/staking/unstake'
const axios = require('axios');
axios({
method: 'post',
url: 'https://api.sfox.com/v1/staking/unstake',
headers: {
'Authorization': 'Bearer <API_KEY>'
},
data: {
currency: 'avax',
id: 500
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});
import requests
data = requests.post(
"https://api.sfox.com/v1/staking/unstake",
headers={
"Authorization": "Bearer <API_KEY>",
},
data={
"currency": "avax",
"id": 500
}
)
print(data)