Hardhat Artifacts Folder (fig 1.)
To proceed, save the ABI and bytecode in a new folder. You can choose any name for the folder, but for this tutorial, we'll use 'file' as an example. Inside this folder: > * Save the ABI as `abi.json`. > * Save the bytecode as `bytecode.bin` (make sure to copy the bytecode without quotes). You will use `.json` for the ABI file because the ABI is structured in JSON format, detailing the functions, events, and types used in the contract. This format is easy for applications to parse and use for interacting with the contract. For the bytecode, we use `.bin` to indicate it’s a binary file containing the compiled code in hexadecimal format. This file is used directly for deployment, as it represents the actual code that will be executed on the blockchain. ```text ├── files ├── abi.json └── bytecode.bin ```