API 参考
支持的币种
获取 AinePay 支持的币种及其对应的区块链,这通常是商户在集成过程中调用的第一个 API。
端点
- Method:
GET - Path:
/api/merchant/pay/info - Authentication: Required
请求参数
| 参数 | 类型 | 描述 | 是否必需 |
|---|---|---|---|
| - | - | 无业务参数。仅需要认证头。 | 否 |
响应字段
顶层响应结构:
| 字段 | 类型 | 描述 |
|---|---|---|
success | boolean | 请求成功时为 true。 |
code | integer | 业务结果代码。成功响应返回 0。 |
data | object | 业务数据。 |
msg | string | 成功时通常为 ok。 |
币种数据:
| 字段 | 类型 | 描述 |
|---|---|---|
data.supported | array<object> | 支持的资产和链列表。 |
data.supported[].coin | string | 代币符号。 |
data.supported[].chain | string | 区块链代码。 |
data.supported[].contract | string | 代币合约地址。 |
data.supported[].chainName | string | 区块链名称。 |
data.supported[].url | string | 保留字段。 |
示例响应
{
"success": true,
"code": 0,
"data": {
"supported": [
{
"coin": "USDT",
"chain": "ETH",
"contract": "0x630E906E953Da1808a7DB78cCA9FdFde2029aEB9",
"chainName": "Ethereum(ERC20)",
"url": ""
},
{
"coin": "USDC",
"chain": "ETH",
"contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"chainName": "Ethereum(ERC20)",
"url": ""
}
]
},
"msg": "ok"
}