Docs
Address Balance
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
}
]
}
}