Tailflow
Skip to article
Browse documentation

Etherscan · Action

Get contract ABI

Reads the interface of a contract whose source is verified on Etherscan: its functions and events, as Etherscan holds them.

When to use it

Deciding what to do with a call to a contract you have not seen before, or handing its interface to an agent step that explains the call.

At a glance

IntegrationEtherscan
Credits1
ConnectionEtherscan, by pasting a key

Settings

addressOptionalAccepts event fields
Contract. Empty uses the contract the event came from.
chain
Chain. Leave it on the event's chain unless the step should always look at one chain.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.etherscan_get_abi_1.abi }} — the action’s key, then which one it is if you use more than one of the same kind.

abi
The contract's interface as a list of functions and events. Empty when it is not verified.
verified
True when Etherscan has the contract's verified source.

Good to know

  • A contract that is not verified is not a failure: the step completes with verified set to false.
  • A proxy contract returns the proxy's own interface, not the one it forwards to.
  • Each lookup uses your own Etherscan key and counts against its allowance.