<aside>

Turn the open contract into bytecode and an ABI with one click. Hardhat runs on the server with solc 0.8.x and the OpenZeppelin library bundled, so there is nothing to install or configure.

</aside>

When to use it

Before every deploy, and any time you want to know whether what you wrote builds. Compiling is fast (a few seconds) and free, so do it often.

Steps

  1. Connect your wallet if you have not yet (top right). Compile uses your address to identify the session. No transaction is sent.
  2. Make sure the contract you want to build is the open file.
  3. Click Compile in the top bar.
  4. Read the terminal at the bottom. On success it prints the contract name, the time taken and the bytecode size. Deploy becomes active.

Compile succeeded: the terminal names the contract, the time it took and the bytecode size.

Compile succeeded: the terminal names the contract, the time it took and the bytecode size.

When it fails

The terminal prints the compiler's own error with the file, line and column, and the caret under the offending token. At the same time the AI assistant opens with a plain-language explanation of the cause and how to fix it, plus a short list of ways to avoid the same class of error.

A typo (decimal instead of decimals). The compiler error is in the terminal, the explanation and fix are in the panel on the right.

A typo (decimal instead of decimals). The compiler error is in the terminal, the explanation and fix are in the panel on the right.

What you get

Next

3. Audit