I deployed ERC-721 contract to mainnet last night with truffle

Contract is successfully deployed

but no abi file generated (I don't know why..) so I can't run my dapp


Here is my contract on etherscan


and transaction

I already paid 0.4 ETH for gas fee, ran out of my balance

I can't run migrate --reset again...

I have sol file and abis file with testnet so

Can i restore my mainnet abi json file? or Get abi file from etherscan Bytecode contract?

++ Already try https://etherscan.io/apis#contracts but failed "Contract source code not verified"

1 Answer 1


Well the abi json file is like an interface for the user to call so it is universal. So you can just use remix ide and compile the sol file contract and get the abi json from there. It will be the same as the abi json on the blockchain

Tl;dr: How do you get a json file (ABI) from a known contract address?

  • Thx friend I never use remix IDE but i understand what did you mean. I just made mainnet abi file from testnet abi file. thank you.
    – PRB
    Dec 21, 2021 at 3:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.