I am trying to get the ETH balance of a contract:
const balance = await contract.getBalance();
but it fails:
TypeError: contract.getBalance is not a function
What I do wrong and how to fix the error?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community