POST
https://api.sfox.com/v1/user/withdraw
Initiate a withdrawal from your sFOX account to a crypto address or wire transfer to your linked bank account.
Body Parameters
Name | Type | Description |
---|
| | |
| | The amount of the currency to withdraw |
| | The crypto address to withdraw to. Required if currency is NOT usd |
| | Specify the bank withdrawal method. Possible values:
true : Wire Transfer (default)
false : ACH Transfer |
| | Optional description/memo field |
Responses
200
{
"success": true,
"id": "5pauoj52osolwphwnioqxx2zcekikm23x2hyq2rkotockiysng3y5k245q",
"atx_id": 1524562,
"tx_status": 1100,
"currency": "eth",
"amount": 0.1,
"address": "0x12345"
}
Example Requests
curl -H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-X POST \
--data '{"amount": 1, "currency": "eth", "address": "0x123456"}' \
'https://api.sfox.com/v1/user/withdraw'
const axios = require('axios');
axios({
method: 'post',
url: 'https://api.sfox.com/v1/user/withdraw',
headers: {
'Authorization': 'Bearer <API_KEY>'
},
data: {
currency: 'eth',
address: '0x123456',
amount: 1
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});
import requests
data = requests.post(
"https://api.sfox.com/v1/user/withdraw",
headers={
"Authorization": "Bearer <API_KEY>",
},
data={
"currency": "eth",
"address": "0x123456"
"amount": 1
}
)
print(data)
Last updated