Create Stake

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

Create a stake transaction.

Submitting a staking request will transfer the specified quantity of the specified asset from your trading wallet to your staking wallet. At that point the request will begin processing. Once processed you can view and manage this request via the staking transactions endpoint.

Body Parameters

Parameter
Type
Description

currency required

string

The asset to stake e.g. avax.

quantity required

number

The amount of the currency to stake.

Response Body

Key
Description

id

The sFOX-generated ID of this stake transaction.

Responses

200
{
    "data": {
        "id":435
    }
}

Example Request

curl -X POST \
  -H 'Content-type: application/json' \
  -H 'Authorization: Bearer <API_TOKEN>' \
  --data '{ "currency": "avax",
            "quantity": 500 }'  \
  'https://api.sfox.com/v1/staking/stake'

Last updated