Question · Blockchain and Web3 course · Module 4: ethers.js & viem

Best practices

Which practice is most important when working with ethers.js/viem?

Answer options

  • Always store private keys in code for convenience
  • Never store private keys in code, use environment variables
  • Send all transactions straight to mainnet
  • Ignore validation of user input

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