List Onchain Withdrawal Options
curl --request GET \
--url https://api.pro.daya.co/public/v1/withdrawals/onchain/options \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.pro.daya.co/public/v1/withdrawals/onchain/options"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.pro.daya.co/public/v1/withdrawals/onchain/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pro.daya.co/public/v1/withdrawals/onchain/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pro.daya.co/public/v1/withdrawals/onchain/options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pro.daya.co/public/v1/withdrawals/onchain/options")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/withdrawals/onchain/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Onchain withdrawal options retrieved successfully",
"data": {
"assets": [
{
"asset": "USDT",
"display_name": "Tether USD",
"icon": "/assets/v1/logos/stablecoins/usdt.svg",
"decimals": 6,
"chains": [
{
"blockchain": "polygon",
"blockchain_name": "Polygon",
"icon": "/assets/v1/logos/chains/polygon.svg",
"contract_address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"decimals": 6,
"fee_amount": "0.75",
"fee_asset": "USDT"
}
]
}
]
}
}
Withdrawals
List Onchain Withdrawal Options
Fetch enabled on-chain withdrawal rails grouped by asset
GET
/
public
/
v1
/
withdrawals
/
onchain
/
options
List Onchain Withdrawal Options
curl --request GET \
--url https://api.pro.daya.co/public/v1/withdrawals/onchain/options \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.pro.daya.co/public/v1/withdrawals/onchain/options"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.pro.daya.co/public/v1/withdrawals/onchain/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pro.daya.co/public/v1/withdrawals/onchain/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pro.daya.co/public/v1/withdrawals/onchain/options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pro.daya.co/public/v1/withdrawals/onchain/options")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pro.daya.co/public/v1/withdrawals/onchain/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Onchain withdrawal options retrieved successfully",
"data": {
"assets": [
{
"asset": "USDT",
"display_name": "Tether USD",
"icon": "/assets/v1/logos/stablecoins/usdt.svg",
"decimals": 6,
"chains": [
{
"blockchain": "polygon",
"blockchain_name": "Polygon",
"icon": "/assets/v1/logos/chains/polygon.svg",
"contract_address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"decimals": 6,
"fee_amount": "0.75",
"fee_asset": "USDT"
}
]
}
]
}
}
Overview
Returns enabled account-level on-chain withdrawal rails grouped by asset. Use this endpoint before initiating a withdrawal to choose the asset, blockchain, and understand current withdrawal fees. Requires Read scope.Authentication
string
required
Your API key with Read scope
Request Example
curl --request GET \
--url https://api.pro.daya.co/public/v1/withdrawals/onchain/options \
--header 'X-Api-Key: daya_sk_YOUR_API_KEY'
Response
array
required
array
required
Enabled chains for the asset.
Show chain fields
Show chain fields
{
"success": true,
"message": "Onchain withdrawal options retrieved successfully",
"data": {
"assets": [
{
"asset": "USDT",
"display_name": "Tether USD",
"icon": "/assets/v1/logos/stablecoins/usdt.svg",
"decimals": 6,
"chains": [
{
"blockchain": "polygon",
"blockchain_name": "Polygon",
"icon": "/assets/v1/logos/chains/polygon.svg",
"contract_address": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
"decimals": 6,
"fee_amount": "0.75",
"fee_asset": "USDT"
}
]
}
]
}
}
Error Responses
| Code | Meaning |
|---|---|
401 | Missing or invalid API key |
403 | Missing Read scope |
503 | Wallet service temporarily unavailable |
Notes
Only enabled rails are returned. If an asset or chain is missing, do not attempt to withdraw on that rail.⌘I