Skip to content

Commit

Permalink
Add cast interface --json docs (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Aug 30, 2023
1 parent 7f37973 commit c1a4b64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/reference/cast/cast-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ If an address is provided, then the interface is generated from the ABI of the a
`--pragma` *version*
    The Solidity pragma version to use in the interface. Default: `^0.8.10`.

`-j`
`--json`
    Output the contract's JSON ABI.

{{#include ../common/etherscan-options.md}}

{{#include common-options.md}}
Expand All @@ -55,6 +59,12 @@ If an address is provided, then the interface is generated from the ABI of the a
```sh
cast interface -n LilENS ./path/to/abi.json
```

4. Fetch the JSON ABI of a contract on Etherscan:
```sh
cast interface -o IWETH.sol -j 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
```

### SEE ALSO

[cast](./cast.md), [cast proof](./cast-proof.md)

0 comments on commit c1a4b64

Please sign in to comment.