Hi,
Yes, you understood the issue correctly.
const address = β0x80d62e372b8812086873bf8a654b49349dfad909β; // Contract
const response = await Moralis.EvmApi.token.getWalletTokenBalances({
But this returns the wallet token balances but not the contract balance
results null
but
const address = β0x5c765DdD5D71192c02061b3E01F4281b32d88824β;
returns the following results mean the contract has a balance
[
{
token_address: β0x0d92913095942f168d139b12a88fc8f42f8f96f6β,
name: βRewardβ,
symbol: βRTβ,
logo: null,
thumbnail: null,
decimals: 18,
balance: β10000000000000000000000000β
},
{
** token_address: β0x80d62e372b8812086873bf8a654b49349dfad909β,
name: βRewardβ,
symbol: βRTβ,
logo: null,
thumbnail: null,
decimals: 18,
balance: β9999998000000000000000000β**
},
{
token_address: β0xc877939ddad037bce1abe327cd7f7524e984e4d7β,
name: βRewardβ,
symbol: βRTβ,
logo: null,
thumbnail: null,
decimals: 18,
balance: β10000000000000000000000000β
}
]
So, feel there could be some change in this
const response = await Moralis.EvmApi.token.getWalletTokenBalances
Regards,
β