Unstake

POST https://api.sfox.com/v1/staking/unstake

Submit a request to unstake an an active stake.

Only active stakes (status = STAKING) may be unstaked. Only certain currencies may be unstaked on demand.

Body Parameters

Parameter
Type
Description

id required

int

The sFOX-generated ID of the active stake you wish to unstake.

currency required

string

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'

Last updated