AinePay
EN中文
API 参考

支持的币种

获取 AinePay 支持的币种及其对应的区块链,这通常是商户在集成过程中调用的第一个 API。

端点

  • Method: GET
  • Path: /api/merchant/pay/info
  • Authentication: Required

请求参数

参数类型描述是否必需
--无业务参数。仅需要认证头。

响应字段

顶层响应结构:

字段类型描述
successboolean请求成功时为 true
codeinteger业务结果代码。成功响应返回 0
dataobject业务数据。
msgstring成功时通常为 ok

币种数据:

字段类型描述
data.supportedarray<object>支持的资产和链列表。
data.supported[].coinstring代币符号。
data.supported[].chainstring区块链代码。
data.supported[].contractstring代币合约地址。
data.supported[].chainNamestring区块链名称。
data.supported[].urlstring保留字段。

示例响应

{
  "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"
}