Url for compiler API
Options
Optional
ignoreVersion?: booleanPrint warning instead of throwing exception if compiler version is not supported, use with caution
Compile contract by contract's path Available only in Node.js
Path to contract source code
ACI and bytecode
Compile contract by contract's source code
Contract source code as string
Optional
fileSystem: Record<string, string>A map of contract filename to the corresponding contract source code to include into the main contract
ACI and bytecode
Generate contract's ACI by contract's path Available only in Node.js
Path to contract source code
ACI
Generate contract's ACI by contract's source code
Contract source code as string
Optional
fileSystem: Record<string, string>A map of contract filename to the corresponding contract source code to include into the main contract
ACI
Verify that a contract bytecode is the result of compiling the given source code Available only in Node.js
Contract bytecode to verify
Path to contract source code
ACI and bytecode
Verify that a contract bytecode is the result of compiling the given source code
Contract bytecode to verify
Contract source code as string
Optional
fileSystem: Record<string, string>A map of contract filename to the corresponding contract source code to include into the main contract
Compiler version
Contract Compiler over HTTP
This class include api call's related to contract compiler functionality.
Example