Get a Solidity contract ABI programmatically with JavaScript & Etherscan API | Stop hardcoding ABIs

preview_player
Показать описание
Get my free EthersJS cheatsheet to master Web3!
------------------------------------------
Courses:
------------------------------------------

Hardcoding ABIs (contract application binary interfaces) into your dapps is inconvenient if you're interacting with a lot of contracts.
It also lacks flexibility if you're not sure what contracts you'll be working with, in advance.
Here we'll walk through programmatically getting the ABIs for live contracts using the Etherscan API and JavaScript.
It's easier than you think.

If you found this video helpful, give it a like and subscribe!

------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Wow, that was easy. Great youtube channel you got. I can learn a lot from you I can see. Thanks.

socrates_the_great
Автор

dude you are full surprising in all videos.
aweso0O0ome as always

silentvu
Автор

nice job. super clear and easy to follow

AmirAliabadi
Автор

Hey hows it going I did this step by step. The Abi gets fetched but when I want to see the name and total supply this error occurs: TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')
at getAbi (C:\Users\asuar\Fetch ABI\getAbi.js:14:43)
at

What can I do so it will work?

WienerCoin
Автор

why do we need to call toString on totalSupply? was totalSupply originally?

sippingtehpengatthekopitia
Автор

The number I get is in uint256. How would I display the totalSupply with the decimal point where it should be?

S-K
Автор

How to omit contract address from eth?

princesspraniti
Автор

bad idea for everyone to rely on the same trusted third party

bluemeriadoc
welcome to shbcf.ru