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

資產識別解析

將資產代碼或合約地址解析成標準資產識別,協助確認實際資產並降低同名代幣或跨鏈資產造成的誤判。

post
Authorizations
X-API-KeystringRequired
Body

POST /v1/resolve 的請求 body。

宣告型別讓 /docs UI 帶出可填的 body 欄位(否則送空 POST 會撞 415)。

blockchainstringRequired

鏈別(ethereum / bsc / tron …)。

symbolsstring[] · nullableOptional

要解析的 symbol 清單;省略 / 空 / 含 all 代表該鏈全部。

Responses
200

解析成功,回傳標準化的資產識別

application/json
post/v1/resolve
POST /v1/resolve HTTP/1.1
Host: api.blockchainsecurity.asia
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "blockchain": "ethereum",
  "symbols": [
    "usdt",
    "weth"
  ]
}
{
  "data": {
    "assets": [
      {
        "contract": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "decimals": 6,
        "rate_symbol": null,
        "symbol": "usdt",
        "usd_mode": "stable"
      },
      {
        "contract": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "decimals": 18,
        "rate_symbol": "WETH",
        "symbol": "weth",
        "usd_mode": "rate"
      }
    ],
    "blockchain": "ethereum"
  },
  "meta": {
    "request_id": "a2f27b22-82dd-4fc0-9bb2-c4ee5eaae434"
  }
}

Last updated

Was this helpful?