3 .Verify wallet address
驗證錢包地址
此功能用於驗證錢包地址的有效性。通過調用此接口,您可以檢查錢包地址是否符合特定區塊鏈的格式要求,並確認其是否存在(如果支持)。此功能支持多種區塊鏈類型,如比特幣(BTC)、以太坊(ETH)等。
GET
/openapi/chain/address/verify
Name | Type | Required | Description |
---|---|---|---|
address | string[1,128] | yes | 地址 |
chain | string[1,32] | yes | Chain name |
響應
Name | Type | Description |
---|---|---|
code | int | 業務狀態碼 |
data | object | 數據對象 |
valid | boolean | 驗證結果 |
msg | string | 業務消息 |
示例響應
{
"code": 0,
"msg": "success",
"data": {
"valid": true
}
}