/token/metadata

Retrieve information about a contract address.

Parameters

  • contractAddress [required] The token smart contract address.

Request

  • Please replace YOUR-API-KEY with your actual 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" // When selecting the BNB Chain network, ERC20 refers to BEP20.
  }
}

Last updated