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.
 
 
 
 
 
 
jrosendo 7a960f7d00 docs(blockchain): add blockchain branch subjects to public 2 years ago
..
README.md docs(blockchain): add blockchain branch subjects to public 2 years 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