跳转到主要内容
GET
/
v1
/
pay
/
address
/
chains
查询支持链列表
curl --request GET \
  --url https://api.example.com/v1/pay/address/chains \
  --header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
  --header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
  --header 'X-GatePay-Signature: <x-gatepay-signature>' \
  --header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'
{
  "status": "SUCCESS",
  "code": "000000",
  "errorMessage": "",
  "data": {
    "currency": "BTC",
    "chains": [
      {
        "chain": "BTC",
        "currency": "BTC",
        "full_curr_type": "BTC",
        "symbol": "BTC",
        "explorer_url": "",
        "show_chain_name_en": "Bitcoin BRC20"
      },
      {
        "chain": "HT",
        "currency": "BTC",
        "full_curr_type": "BTC_HT",
        "symbol": "BTC_HT",
        "explorer_url": ""
      },
      {
        "chain": "BSC",
        "currency": "BTC",
        "full_curr_type": "BTC_BSC",
        "symbol": "BTC_BSC",
        "explorer_url": ""
      }
    ]
  }
}
API描述:根据提供的币种,查询支持接受此币种的所有可用链

请求头

X-GatePay-Certificate-ClientId
string
必填

商户客户端ID

示例:

"4186d0c6-6a35-55a9-8dc6-5312769dbff8"

X-GatePay-Signature
string
必填

签名

示例:

"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8"

X-GatePay-Timestamp
string
必填

时间戳(毫秒)

示例:

"1672905655498"

X-GatePay-Nonce
string
必填

随机数

示例:

"9578"

查询参数

currency
string
必填

拟下单的币种

响应

200 - application/json

成功响应

currency
string

查询的币种

chains
object[]

支持的链列表