配置
用于查询支持的区块链网络和代币的公共接口。这些接口不需要身份认证。
查询所有链信息
获取所有支持的区块链网络。
接口
POST /v4.0.0/config/chains请求
无需请求体。发送一个空 JSON 对象:
json
{}响应
json
{
"code": 0,
"msg": "success",
"ui": null,
"version": null,
"count": 0,
"data": [
{
"id": 1,
"chain": "ETH",
"chainDesc": "BlockChain Ethereum",
"enable": true,
"receiptAddress": "0xfa102a28ea611af6d8b1e6247b2b9dc4a1accc61",
"txConfirmCount": "3",
"walletConnectEnable": true,
"bridgeServerAddress": "https://bridge.hashnut.io",
"decimals": 18,
"baseChainSymbol": "Ethereum",
"env": 1,
"chainId": "1",
"baseChainCoin": "ETH",
"createTime": 1712156631401,
"updateTime": 1712156631401,
"chainType": 0,
"multicall3": "0xca11bde05977b3631167028862be2a173976ca11",
"explorerUrl": "https://etherscan.io",
"explorerTxPath": "/tx/",
"explorerAddrPath": "/address/",
"eip712ChainId": "0",
"eip1559Support": true
},
{
"id": 3,
"chain": "BSC",
"chainDesc": "BlockChain BSC",
"enable": true,
"receiptAddress": "0xfa102a28ea611af6d8b1e6247b2b9dc4a1accc61",
"txConfirmCount": "3",
"walletConnectEnable": true,
"bridgeServerAddress": "https://bridge.hashnut.io",
"decimals": 18,
"baseChainSymbol": "BNB",
"env": 1,
"chainId": "56",
"baseChainCoin": "BNB",
"createTime": 1712156631404,
"updateTime": 1712156631404,
"chainType": 0,
"multicall3": "0xca11bde05977b3631167028862be2a173976ca11",
"explorerUrl": "https://bscscan.com",
"explorerTxPath": "/tx/",
"explorerAddrPath": "/address/",
"eip712ChainId": "0",
"eip1559Support": true
},
{
"id": 2,
"chain": "POLYGON",
"chainDesc": "BlockChain POLYGON",
"enable": true,
"receiptAddress": "0xfa102a28ea611af6d8b1e6247b2b9dc4a1accc61",
"txConfirmCount": "3",
"walletConnectEnable": true,
"bridgeServerAddress": "https://bridge.hashnut.io",
"decimals": 18,
"baseChainSymbol": "POLYGON",
"env": 1,
"chainId": "137",
"baseChainCoin": "MATIC",
"createTime": 1712156631403,
"updateTime": 1712156631403,
"chainType": 0,
"multicall3": "0xca11bde05977b3631167028862be2a173976ca11",
"explorerUrl": "https://polygonscan.com",
"explorerTxPath": "/tx/",
"explorerAddrPath": "/address/",
"eip712ChainId": "0",
"eip1559Support": true
},
{
"id": 4,
"chain": "TRON",
"chainDesc": "BlockChain TRON",
"enable": true,
"receiptAddress": "TSK4ygbBw3psNyqCPktxU8JbKKViQrCmPN",
"txConfirmCount": "3",
"walletConnectEnable": false,
"bridgeServerAddress": "https://bridge.hashnut.io",
"decimals": 6,
"baseChainSymbol": "TRX",
"env": 1,
"chainId": "0",
"baseChainCoin": "TRX",
"createTime": 1712156631405,
"updateTime": 1712156631405,
"chainType": 1,
"multicall3": "TEazPvZwDjDtFeJupyo7QunvnrnUjPH8ED",
"explorerUrl": "https://tronscan.org",
"explorerTxPath": "/#/transaction/",
"explorerAddrPath": "/#/address/",
"eip712ChainId": "0",
"eip1559Support": true
}
]
}查询所有代币信息
获取所有链上支持的全部代币。
接口
POST /v4.0.0/config/coins请求
json
{}响应
json
{
"code": 0,
"msg": "success",
"ui": null,
"version": null,
"count": 0,
"data": [
{
"id": 1,
"chain": "ETH",
"blockChain": "ETH",
"tokenSymbol": "usdt",
"isToken": true,
"enable": true,
"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"coinDesc": "tether usdt",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631406,
"updateTime": 1712156631406,
"nftmarket": "opensea"
},
{
"id": 2,
"chain": "ETH",
"blockChain": "ETH",
"tokenSymbol": "usdc",
"isToken": true,
"enable": true,
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"coinDesc": "usdc",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631408,
"updateTime": 1712156631408,
"nftmarket": "opensea"
},
{
"id": 3,
"chain": "POLYGON",
"blockChain": "POLYGON",
"tokenSymbol": "usdt",
"isToken": true,
"enable": true,
"contractAddress": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
"coinDesc": "usdt on polygon",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631409,
"updateTime": 1712156631409,
"nftmarket": "opensea"
},
{
"id": 4,
"chain": "POLYGON",
"blockChain": "POLYGON",
"tokenSymbol": "kampay",
"isToken": true,
"enable": true,
"contractAddress": "0x39fc9e94caeacb435842fadedecb783589f50f5f",
"coinDesc": "kampay on polygon",
"gateWayEnable": true,
"decimals": "18",
"createTime": 1712156631411,
"updateTime": 1712156631411,
"nftmarket": "opensea"
},
{
"id": 5,
"chain": "BSC",
"blockChain": "BSC",
"tokenSymbol": "usdt",
"isToken": true,
"enable": true,
"contractAddress": "0x55d398326f99059ff775485246999027b3197955",
"coinDesc": "usdt on bsc",
"gateWayEnable": true,
"decimals": "18",
"createTime": 1712156631419,
"updateTime": 1712156631419,
"nftmarket": "opensea"
},
{
"id": 6,
"chain": "BSC",
"blockChain": "BSC",
"tokenSymbol": "usdc",
"isToken": true,
"enable": true,
"contractAddress": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
"coinDesc": "usdc on bsc",
"gateWayEnable": true,
"decimals": "18",
"createTime": 1712156631429,
"updateTime": 1712156631429,
"nftmarket": "opensea"
},
{
"id": 7,
"chain": "BSC",
"blockChain": "BSC",
"tokenSymbol": "kampay",
"isToken": true,
"enable": true,
"contractAddress": "0x8e984e03ab35795c60242c902ece2450242c90e9",
"coinDesc": "kampay on bsc",
"gateWayEnable": true,
"decimals": "18",
"createTime": 1712156631432,
"updateTime": 1712156631432,
"nftmarket": "opensea"
},
{
"id": 8,
"chain": "TRON",
"blockChain": "TRON",
"tokenSymbol": "usdt",
"isToken": true,
"enable": true,
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"coinDesc": "usdt on tron",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631436,
"updateTime": 1712156631436,
"nftmarket": "opensea"
},
{
"id": 9,
"chain": "TRON",
"blockChain": "TRON",
"tokenSymbol": "usdc",
"isToken": true,
"enable": true,
"contractAddress": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",
"coinDesc": "usdc on tron",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631437,
"updateTime": 1712156631437,
"nftmarket": "opensea"
},
{
"id": 10,
"chain": "POLYGON",
"blockChain": "POLYGON",
"tokenSymbol": "usdc",
"isToken": true,
"enable": true,
"contractAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"coinDesc": "usdc on polygon",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1766680438411,
"updateTime": 1766680438411,
"nftmarket": "opensea"
}
]
}查询特定链的代币信息
获取指定链上的代币信息。
接口
POST /v4.0.0/config/coins/query请求
json
{
"blockChain": "ETH"
}响应
json
{
"code": 0,
"msg": "success",
"ui": null,
"version": null,
"count": 0,
"data": [
{
"id": 1,
"chain": "ETH",
"blockChain": "ETH",
"tokenSymbol": "usdt",
"isToken": true,
"enable": true,
"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"coinDesc": "tether usdt",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631406,
"updateTime": 1712156631406,
"nftmarket": "opensea"
},
{
"id": 2,
"chain": "ETH",
"blockChain": "ETH",
"tokenSymbol": "usdc",
"isToken": true,
"enable": true,
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"coinDesc": "usdc",
"gateWayEnable": true,
"decimals": "6",
"createTime": 1712156631408,
"updateTime": 1712156631408,
"nftmarket": "opensea"
}
]
}查询所有法币信息
获取所有支持的法币。
接口
POST /v4.0.0/config/fiats请求
无需请求体。发送一个空 JSON 对象:
json
{}响应
json
{
"code": 0,
"msg": "success",
"data": [
{
"fiatCode": "USD",
"description": "US Dollar",
"enabled": true
},
{
"fiatCode": "CNY",
"description": "Chinese Yuan",
"enabled": true
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
fiatCode | string | 法币代码(如 USD、CNY、EUR) |
description | string | 可读的货币名称 |
enabled | boolean | 该法币是否当前启用 |
常用 blockChain
blockChain 表示区块链名称。
| blockChain | 说明 | 测试网 |
|---|---|---|
ETH | Ethereum | ETH_SEPOLIA |
BSC | BNB Smart Chain | BSC_TESTNET |
POLYGON | Polygon | POLYGON_AMOY |
TRON | Tron | TRON_SHASTA, TRON_NILE |
SOL | Solana | SOL_DEVNET |
常用 tokenSymbol
| tokenSymbol | 名称 | 典型精度 |
|---|---|---|
usdt | Tether USD | 6 |
usdc | USD Coin | 6 |
TIP
建议使用这些配置接口动态填充前端的链和代币选择器,而非硬编码。
