Actions11
Call
AI-generatedSummary
Executes a read-only Ethereum smart contract function call or external transaction call without modifying the blockchain state.
Inputs
- block — Block number (decimal or hex) or tag: latest, earliest, pending, safe, finalized. Defaults to latest.
- data — The encoded function call data for interacting with a smart contract.
- from — The address sending the transaction (optional, defaults to the sender of the workflow item if omitted).
- to (required) — The address the transaction is directed to (required).
Output shape
One item per input item containing the function call result, plus a hex value conversion.
Returns the raw string result from the RPC (typically a hex-encoded output). The node also adds a 'balanceWei' and 'balanceEth' field if the result represents a balance.
Examples
Example 1: Querying token balance of an ERC-20 contract
Set To Address to the contract's address and Data to the encoded balanceOf function call.
Example 2: Reading a stored value from a smart contract
Set To Address to the contract's address and Data to the encoded function call for the value.
