Skip to main content
Conditions allow transactions to wait until specific requirements are met before executing.

createCondition

Create a condition that must be satisfied for execution.

Parameters

Returns

Condition - Can be passed to buildComposable

Example


ConditionType

Usage Examples


Adding Conditions to Instructions


Multiple Conditions (AND Logic)

All conditions must pass for execution:

Waiting for Conditions

Set a timeout for how long to wait:

Execution Flow

  1. Submit - Transaction submitted with conditions
  2. PENDING - MEE periodically checks conditions
  3. Satisfied - All conditions pass → execute
  4. Timeout - Conditions not met in time → fail

Common Patterns

Contract Not Paused

Minimum Balance

Price Threshold


Best Practices