For the complete documentation index, see llms.txt. This page is also available as Markdown.

指定鏈資產清單

查詢指定區塊鏈目前支援的資產,包括資產代碼、合約地址、精度與計價設定。適合在後續價格或鏈上資料查詢前確認正確參數。

get
Authorizations
X-API-KeystringRequired
Query parameters
chainstringRequired

鏈別,例如 ethereum / bsc / tron

Example: ethereum
Responses
200

查詢成功,回傳該鏈支援的代幣

application/json
get/v1/assets
GET /v1/assets?chain=text HTTP/1.1
Host: api.blockchainsecurity.asia
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": {
    "assets": [
      {
        "contract": "TD3et9gS2pYz46ZC2mkCfYcKQGNwrnBLef",
        "decimals": 18,
        "rate_symbol": null,
        "symbol": "3sun",
        "usd_mode": "none"
      },
      {
        "contract": "TA1TVZdERDRDGi9QXNdLVfPxbymmi8xFyc",
        "decimals": 18,
        "rate_symbol": null,
        "symbol": "3usd",
        "usd_mode": "none"
      }
    ],
    "chain": "tron"
  },
  "meta": {
    "request_id": "117822f1-c9c1-4b55-9dab-1273c1d2a6b0"
  }
}

Last updated

Was this helpful?