Question · Blockchain and Web3 course · Module 11: dApp Development

Quiz: useBalance

The useBalance() hook returns:

Answer options

  • Only the ETH balance
  • The ETH or ERC-20 token balance for a given address
  • A list of transactions
  • Gas price

You can check the correct answer by solving this task in the CodeWorlds game.