I’m authenticating the user via walletconnect on Polygon network and enabled web3 option as well.
useEffect(() => {
if (isAuthenticated && !isWeb3Enabled) {
enableWeb3({
provider: "walletconnect",
chainId: 137,
});
}
}, [isAuthenticated, isWeb3Enabled]);
But while fetching the tokens and native balance its returning from ETH network ( ETH native balance and its erc20 tokens ).
const {
data,
error,
} = useNativeBalance({
providerUrl:
"https://speedy-nodes-nyc.moralis.io/1234abcde/polygon/mainnet",
});
While connecting via wallet connect I choose polygon network in mobile and then scan but still this doesn’t seem to be working correctly.
And if I ignore these and try to proceed with payment to another wallet then it would show insufficient balance.
Can anyone help me out, how can I query from the Polygon network instead of Ethereum.