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.
 
 
 
 
 
 
nprimo 4fa5c876a7 docs: run prettify and move h1 to h2 1 year ago
..
README.md docs: run prettify and move h1 to h2 1 year ago

README.md

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