Smart Contract Read logo

Catalog action EVM Onchain

Read any data from a smart contract without spending gas. Provide the contract ABI and function name to call view/pure functions on any EVM chain.

At a Glance

FieldValue
Action IDevm-read
CategoryEVM Onchain
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsblockchain, evm, read, view, contract, query, custom, abi

Payload Schema

FieldTypeRequiredDescription
contractProjectIdstringNoSelect a deployed contract project or choose 'Custom' to enter address and ABI manually.
chainIdnumberYesChain ID (1=Ethereum, 137=Polygon, 56=BSC, 8453=Base, etc.)
contractAddressstringNoThe contract address to read from
abistringNoThe ABI of the contract function(s) as a JSON string array. Can be full contract ABI or just the function signature needed.
functionNamestringYesThe name of the view/pure function to call
argsobjectNoArguments for the function call as a JSON string array (e.g., '["0x123...", "1000"]') or a native array. Optional if function has no arguments.

Result Schema

FieldTypeRequiredDescription
successbooleanYes-
resultstringYesThe result of the contract call as a JSON string
blockNumbernumberNoThe block number at which the read was performed
decodedResultstringNoHuman-readable decoded result when possible

Examples

json
{ "type": "evm-read", "payload": { "functionName": "example-functionName", "chainId": 8453 }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I