Balance

Get balance of a token for a wallet

balance

GET https://api.unifront.io/v1/utils/getBalance

This endpoint allows you to get balance of a particular token.

Query Parameters

Name
Type
Description

address

string

Wallet Address

tokenAddress

string

Token Address

Headers

Name
Type
Description

API_key

string

API Key for authentication - [Not Required]

{
  "balance": {
    "address": "0x78f32a27559170f9a005b319Ed53441b9e852158",
    "tokenBalances": [
      {
        "contractAddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
        "tokenBalance": "20000000000000000",
        "error": null
      }
    ]
  }
}

Last updated

Was this helpful?