public/subjects/blockchain/get-account
nprimo 4fa5c876a7 docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00
..
README.md docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00

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