Skip to content

Commit

Permalink
Update eth2explorer.html
Browse files Browse the repository at this point in the history
added Infura erc20 balance instructions
  • Loading branch information
Cr4shOv3rrid3 authored Jun 2, 2024
1 parent 83f4d8d commit 45306f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth2explorer.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h3> Latest 20 blocks </h3>
<!-- Web3 -->
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script> //https://v2.scrimba.com/learn-javascript-c0v/~07 https://docs.web3js.org/guides/wallet/web3_modal_guide/#smart-contract-interaction
var provider = 'https://'; //Your Infura Endpoint
var provider = 'https://'; //Your Infura Endpoint https://community.infura.io/t/web3-js-how-to-retrieve-the-balance-of-an-erc-20-token/5232
var web3Provider = new Web3.providers.HttpProvider(provider);
var web3 = new Web3(web3Provider);
var latestBlock = web3.eth.blockNumber;
Expand Down

0 comments on commit 45306f4

Please sign in to comment.