Skip to content

Commit

Permalink
docs(cli): tryFetchProxyImplementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jan 16, 2025
1 parent 019f54f commit 6079b6f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions site/cli/api/plugins/etherscan.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,33 @@ export default defineConfig({
],
})
```

### tryFetchProxyImplementation

`boolean | undefined`

- Whether to try fetching proxy implementation address of the contract.
- Defaults to `false`.

```ts
import { defineConfig } from '@wagmi/cli'
import { blockExplorer } from '@wagmi/cli/plugins'

export default defineConfig({
plugins: [
etherscan({
apiKey: process.env.ETHERSCAN_API_KEY,
chainId: 1,
contracts: [
{
name: 'FiatToken',
address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
},
],
tryFetchProxyImplementation: true, // [!code focus]
}),
],
})
```


0 comments on commit 6079b6f

Please sign in to comment.