Docs
Address Balance

Address Balance

This endpoint allows the user to check the balance in the given address. Balance will be provided for Matic and USDt only.

Path Parameters

chain
required
'polygon'

Only polygon accepted

address
required
string

Address to check. It must be a previously assigned address to the user.

const chain = "polygon"
const address = "0x1c0aCFxxxxxxxxxxA8fEdce1ab4"
 
const url = `${baseURL}/v1/wallet/get_address_balance?address=${address}&chain=${chain}`
 
const response = await fetch(url, {
      method: "GET",
      headers: {
      Authorization: `Bearer ${access_token}`,
      "Content-Type": "application/json",
    },
})

Response samples

{
    "status": "ok",
    "msg": "Matic and USDt Balance",
    "data": {
        "address": "0x1c0aCFxxxxxxxxxxA8fEdce1ab4",
        "tokens": [
            {
                "token": "MATIC",
                "balance": 0.35916607409480106
            },
            {
                "token": "USDT",
                "balance": 1.758236
            }
        ]
    }
}