/token/balance

Retrieve the balance of an ERC20 or TRC20 token specified by a wallet address.

Parameters

  • address [required] The wallet address.

  • 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/balance?address=0x645558371fF5d0b7F08069850864318c61f30066&contractAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7

Response

{
  "code": 200,
  "msg": "Successful",
  "status": "success",
  "result": {
    "balance": "210.569382",
    "walletAddress": "0x645558371fF5d0b7F08069850864318c61f30066",
    "contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
  }
}

Last updated