Logic action Logic

Pause the workflow until a specific event happens — a price change, an on-chain event, an external callback, and more. A timeout is required to prevent waiting forever.

At a Glance

FieldValue
Action IDwait
CategoryLogic
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagslogic, wait, trigger, pause, control-flow

Payload Schema

FieldTypeRequiredDescription
timeoutMsnumberYesTimeout in milliseconds. The node fails if no trigger fires within this duration. Range: 1 second to 7 days.
triggerTypestringYesThe trigger type to wait for.
triggerConfigobjectYesTrigger-specific configuration. Schema depends on triggerType.

Result Schema

FieldTypeRequiredDescription
statusstringYesInitially 'waiting'; changes to 'resumed' (trigger fired) or 'timed_out' (timeout elapsed).
triggerResultobjectNoData from the resume trigger (e.g. resume payload). Set when the node is resumed.
sourcestringNoSource that resumed the node (e.g. 'manual', 'token-price-cexes').
branchstringNoRouting branch: 'resumed' if trigger fired, 'timed_out' if timeout elapsed
timeoutMsnumberNoConfigured timeout in milliseconds (present in timed_out results)

Examples

json
{ "type": "wait", "payload": { "timeoutMs": 60000, "triggerType": "token-price-cexes", "triggerConfig": {} }, "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