Skip to content

Commit

Permalink
fix(readme): fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryVasanth committed Dec 13, 2024
1 parent dc2fa82 commit 7c4e0cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions subjects/blockchain/local-node-info/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Create a web page called `localNodeInfo.html` that does the following:
1. Loads an Ethereum library, such as `ethers.js` or `web3.js`.
2. Connects to a local Ethereum node at `http://localhost:8545`.
3. Displays the following information on the page:
- The ID of the current network in an element with `chainId` as `id`.
- The number of blocks in the chain in an element with `blockNumber` as `id`.

- The ID of the current network in an element with `chainId` as `id`.
- The number of blocks in the chain in an element with `blockNumber` as `id`.

![image](network-infos.png)

### Hint

🚫 Please be aware that the test environment restricts internet access for security reasons. Therefore, you need to download the library and import it locally.
🚫 Please be aware that the test environment restricts internet access for security reasons. Therefore, you need to download the library and import it locally.

🎨 Automated tests only check for the content of elements with specific IDs; the rest of the design is up to you.

Expand All @@ -38,5 +38,6 @@ Create a web page called `localNodeInfo.html` that does the following:
```

### Notions

- [ethers Provider transaction-methods](https://docs.ethers.io/v5/api/providers/provider/#Provider--network-methods)
- [web3 providers](https://docs.web3js.org/guides/web3_providers_guide/)
- [web3 providers](https://docs.web3js.org/guides/web3_providers_guide/)

0 comments on commit 7c4e0cf

Please sign in to comment.