13

Your build artifacts are saved within the ./build directory, along side the compiled deployed contract artifacts in ./build/contracts.

What exactly are these artifacts?

6

It saves the ABI, binary of contract and other info related to the contract. Open the contract_name.json in the ./build/contracts you can see all the information about the contract.If you again wont to deploy the contract then you don't have to compile it will get the contract bytecode from the contract_name.json file of the contract.

3
  • 1
    Is there a way to replace those artifacts with the ones generated by Remix IDE?
    – Ruham
    Oct 21 '18 at 19:30
  • So you could say... artifacts are compiled contracts? Aug 27 '20 at 9:18
  • Yeah, but what is an artifact, I beleive the question is still not answered. Apr 9 at 6:01
5

The more comprehensive explanation can be found here: What are Artifacts

In short, truffle artifact is a JSON bundle that contains a lot of useful information related to a contract like the ABI, the contract bytecode, the deployment details, compiler version, etc...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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