const { getBalances, data: balance } = useNativeBalance({ chain: "31337" })
It looks like this doesn’t work, is that right? It only works if your hardhat node is synced with the moralis server?
const { getBalances, data: balance } = useNativeBalance({ chain: "31337" })
It looks like this doesn’t work, is that right? It only works if your hardhat node is synced with the moralis server?
In particular web3api functions don’t work with a local dev chain.
What is the error that you get?
Ah no worries. Do these ones need to be connected to a server?
I don’t get an error, I just returned undefined
. I can do stuff like this in ethers
tho
You can do it directly with ethers or web3 but web3api in particular will not work. There isn’t a way to make it work now.