Skip to main content
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>'
{
  "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

X-Api-Key
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

data.assets
array
required
Withdrawal rails grouped by asset.
data.assets[].chains
array
required
Enabled chains for the asset.
{
  "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

CodeMeaning
401Missing or invalid API key
403Missing Read scope
503Wallet service temporarily unavailable

Notes

Only enabled rails are returned. If an asset or chain is missing, do not attempt to withdraw on that rail.