Hello, I’m using getTokenBalances
function to get user erc20s. It seemed to work alright so far, but recently we have encountered problem, when this endpoint returns incorrect data.
I’m calling this:
POST request URL: https://u3mhdofzmcp5.usemoralis.com:2053/server/functions/getTokenBalances
POST body:
{"chain":"mainnet","address":"0xd8d7ad6d6d3554a1f9472c3df567061e6af6aa3a"}
And result I get:
{"result":[]}
However this is incorrect, because at least WETH should be returned here, as you can see this address has balance > 0, when you try to call balanceOf
function directly on the contract with this address. You can try it on Etherscan - https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#readContract .
It returns following:
I think in this situation, the WETH should be returned from getTokenBalances
endpoint, right? Do you have any idea why is this happening? Is Moralis node out of sync? Thanks for help and info:).