Skip to content

@contracts:solidity.standardJson

Compile Solidity source (inline text or a http/ipfs URL) and return the exact solc Standard JSON Input text, ready for verify --source. Pass the same options as the matching @solidity call so the cached compile is reused.

Returns: string

@contracts:solidity.standardJson(source ...options)
NameTypeDescription
sourcestringSolidity source code, or a URL to fetch it from
[...options]stringCompiler options, e.g. version:0.8.26, runs:1000, via-ir
# Inspect the compiler settings embedded in the verification payload
set $json @contracts:solidity.standardJson('https://sources.example.com/Counter.sol')
print $json