Thirdweb Engine: Write Contract logo

Catalog action Integrations thirdweb-engine

Execute a write transaction on a smart contract via your Thirdweb Engine. Queues the transaction and returns a queueId for tracking. Use get-transaction-status to poll for confirmation. Ideal for: state-changing contract calls, token transfers, minting.

At a Glance

FieldValue
Action IDthirdweb-engine-write-contract
CategoryIntegrations
Connectorthirdweb-engine
Requires gasNo
Funds movementNone declared
Tagssmart-contract, integration, contract, write, transaction, onchain

Payload Schema

FieldTypeRequiredDescription
chainstringYesChain ID (e.g. '8453' for Base, '1' for Ethereum)
contractAddressstringYesContract address to write to
functionNamestringYesSolidity function name or full signature (e.g. "transfer" or "function transfer(address to, uint256 amount)")
argsarrayYesFunction arguments
backendWalletAddressstringNoBackend wallet to send from (overrides connector default)
valuestringNoNative currency amount in wei to send with the transaction

Result Schema

FieldTypeRequiredDescription
queueIdstringYesEngine queue ID for tracking the transaction

Examples

json
{ "type": "thirdweb-engine-write-contract", "payload": { "chain": "example-chain", "contractAddress": "0x0000000000000000000000000000000000000000", "functionName": "example-functionName", "args": [] }, "children": [], "connector": { "type": "thirdweb-engine", "id": "conn_thirdweb_engine" }}

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