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
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'const axios = require('axios');
axios({
method: 'post',
url: 'https://api.sfox.com/v1/staking/stake',
headers: {
'Authorization': 'Bearer <API_KEY>'
},
data: {
currency: 'avax',
quantity: 500
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});import requests
data = requests.post(
"https://api.sfox.com/v1/staking/stake",
headers={
"Authorization": "Bearer <API_KEY>",
},
data={
"currency": "avax",
"quantity": 500
}
)
print(data)Last updated