mega.balances()
Signature
Parameters
Field
Type
Required
Notes
Example
const balances = await mega.balances({
tokens: ['0xTokenA', '0xTokenB'],
});
console.log(balances);Response
type OwnedTokenResponse = {
name: string;
symbol: string;
decimals: number;
address: string;
balance: string; // raw integer string
displayBalance: string; // human-readable, decimals applied
image?: string;
usdPrice?: string;
usdBalance?: string;
marketCap?: string;
volume?: string;
holders?: number;
percentChange?: number;
};Notes
Last updated