Get a Solidity contract ABI programmatically with JavaScript & Etherscan API | Stop hardcoding ABIs
Blockman Codes Blockman Codes
7.18K subscribers
4,414 views
106

 Published On Apr 7, 2022

Get my free EthersJS cheatsheet to master Web3!
👉 https://blockman-codes.ck.page/91b29a...
------------------------------------------
Courses:
👉 Build a Uniswap V3 interface that can do swaps: https://bit.ly/3JkXYqL
------------------------------------------

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!

------------------------------------------------------------------------------------------------
Code on Github: https://gist.github.com/BlockmanCodes...

show more

Share/Embed