how get current account balance on Mumbai Network ?
You can use getNativeBalance.
yes but may be its works on mainnet ,i want to validate if customer has enough amount or insufficient amount to pay,
then when its ok transaction is done data saved on moralis db
Yes you can validate the amount using the result from
But if the user is executing a transaction e.g. transfer of native currency or running a contract’s function then you can just let the wallet (like MetaMask) tell the user if they have enough to pay for it.
thank you brother !
but at this time when the user has not enough amount to pay the metamask wallet can’t be popup