Skip to main content
Version: v. 1

probe interface

Generate a Ylem interface from a given ABI.

$ probe interface --help
Usage: probe interface [OPTIONS] <PATH_OR_ADDRESS>

Arguments:
<PATH_OR_ADDRESS>
The contract address, or the path to an ABI file.

If an address is specified, then the ABI is fetched from Etherscan.

Options:
-n, --name <NAME>
The name to use for the generated interface

-p, --pragma <VERSION>
Ylem pragma version

[default: ^1.1.2]

-o, --output <PATH>
The path to the output file.

If not specified, the interface will be output to stdout.

-j, --json
If specified, the interface will be output as JSON rather than Ylem

-e, --etherscan-api-key <KEY>
The Etherscan (or equivalent) API key

[env: ETHERSCAN_API_KEY=]

-c, --chain <CHAIN>
The chain name or EIP-155 chain ID

[env: CHAIN=]

-h, --help
Print help (see a summary with '-h')