Tailflow
Skip to article
Browse documentation

Contract lookup · Action

Get contract ABI

Reads the ABI and the name of a verified contract, on the event's chain or one you choose.

When to use it

Naming the contract an event touched in a message, or giving an AI step its ABI so it can say what the contract can do.

At a glance

IntegrationContract lookup
Credits1
ConnectionNone

Settings

addressRequiredAccepts event fields
Contract address. The contract's address, typed or from the event.
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.contract_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 ABI, as a list. Empty when the contract is not verified.
name
The contract's name, such as UniswapV3Pool. Empty when it is not verified.
verified
True when the contract's source was found, false when it was not.

Good to know

  • A contract nobody has verified completes with verified set to false and nothing else filled in, rather than failing, so a flow that runs on every transaction carries on. Check verified in a condition before using the rest.
  • A proxy's ABI is the proxy's own, not the ABI of the contract it forwards to. Look up the implementation's address for that.