简体   繁体   中英

How to access abi of deployed contract with truffle?

I have deployed my contract on rinkeby test network, now I have to connect my contract with the frontend and for this I need to access the ABI of the deployed contract. I am using truffle framework and I saw somewhere that ABI is in the build folder but I can't find it. Please help

You can find it in the auto-generated json file under the./build/contracts folder, and then just extract it. For more detailed information you can read this article: https://piyopiyo.medium.com/how-to-get-contract-abi-in-truffle-22d0c0457ceb

Hope it is useful:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM