You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

657 B

Get Account

Now you will interact with the node's API

Instructions

For this exercise you will have to create a node script that :

  • Loads an ethereum javascript library. I recommend ethers.js, Web3.js is a common alternative.
  • create a function getAccount() that connects to a local node (http://localhost:8545) and returns the address of the first account available.
  • export the function
function getAccount() {
  //...
}
module.exports = getAccount;

Notions