Skip to main content
Runtime functions allow you to use values that are resolved at execution time rather than when building the instruction. Essential for handling unknown swap outputs, bridge results, and composable flows.

runtimeERC20BalanceOf

Inject the ERC-20 token balance of an address at execution time.

Parameters

Returns

RuntimeValue - Can be used as argument in buildComposable

Example


runtimeNativeBalanceOf

Inject the native token (ETH) balance of an address at execution time.

Parameters

Example


runtimeERC20AllowanceOf

Inject the ERC-20 allowance between two addresses at execution time.

Parameters

Example


runtimeParamViaCustomStaticCall

Inject any return value from a view function (up to 32 bytes).

Parameters

Example


Constraints

Constraints control when instructions execute and protect against bad values.

greaterThanOrEqualTo

Wait until value is ≥ threshold.

lessThanOrEqualTo

Wait until value is ≤ threshold.

equalTo

Wait until value equals expected.

Constraint Behavior

Constraints determine execution order in multi-step flows:
Flow:
  1. MEE attempts to execute deposit
  2. Constraint not satisfied (no WETH yet)
  3. MEE waits and retries
  4. Swap completes, WETH arrives
  5. Constraint satisfied → deposit executes

MEE Version Requirements