Ethereum icon

Ethereum

Interact with Ethereum blockchain

Contract → Write

AI-generated

Summary

Writes data to an Ethereum smart contract using the specified ABI, address, and function parameters.

Inputs

  • contractAddress (required) — Contract address to interact with.
  • abi (required) — Contract ABI as JSON array.
  • useRawCalldata — Whether to use raw calldata instead of function name and parameters.
  • functionName (required) — Name of the function to call.
  • parameters — Function parameters as JSON array.
  • calldata (required) — Raw calldata for the function call.

Output shape

a transaction hash

Returned on success; errors are propagated as n8n error nodes.

Examples

Example 1: Write initial state to a contract

Set Contract Address, ABI, Function Name, Parameters; leave Use Raw Calldata false.

Example 2: Execute a raw calldata write

Enable Use Raw Calldata, provide Calldata, leave Function Name empty.

Links

Discussion