/token/metadata

获取一个合约地址的信息。

Parameters

  • contractAddress [必须] 代币合约地址,可以是ERC20或TRC20的合约地址。

Request

  • 请将 YOUR-API-KEY 替换您的 API-KEY

curl -X GET https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY/token/metadata?contractAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7

Response

{
  "code": 200,
  "msg": "Successful",
  "status": "success",
  "result": {
    "totalSupply": 36283188702,
    "name": "Tether USD",
    "symbol": "USDT",
    "decimals": 6,
    "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "protocol": "ERC20" // 当选择BNB Chain网络,ERC20 代指 BEP20
  }
}

最后更新于