Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.solidscipt.zoracle.xyz/llms.txt

Use this file to discover all available pages before exploring further.

The compile command takes the Solidity files produced by build and runs them through solc to produce ABI definitions, bytecode, and a standard JSON compiler input. Run it after build and before deploy. The solc-input.json artifact is the exact compiler input required by Etherscan-family explorers for source verification, so verify-source reads it directly without any reformatting.
solidscript compile <input>

Arguments

ArgumentDescription
<input>Path to the directory containing generated .sol files, typically out/sol

Options

FlagDescription
-o, --out <dir>Directory where compiled artifacts are written. Defaults to out/artifacts

Output files

FileDescription
out/artifacts/<Contract>.jsonABI, bytecode, and deployment metadata
out/artifacts/solc-input.jsonStandard JSON compiler input for Etherscan-family source verification

Examples

# Full build-then-compile sequence
npx solidscript build contracts
npx solidscript compile out/sol

# Write artifacts to a custom directory
npx solidscript compile out/sol -o out/compiled
solc-input.json is the standard JSON compiler input. Pass it directly to Etherscan’s verification API or let verify-source handle submission automatically.