Skip to main content

buildComposable

Build a composable instruction with support for runtime injection, conditions, and automatic encoding.

Instruction Types


Default Type

Call any contract function.

Parameters

Example


Transfer Type

Simplified ERC-20 token transfer.

Example


Approve Type

Simplified ERC-20 approval.

Example


Native Token Transfer

Send ETH or native tokens.

Example


Bridge Operations

To bridge tokens (e.g. via Across Protocol), use type: "default" and encode the bridge protocol’s contract call directly. See the Across integration guide for a complete example.
Bridge operations use the same type: "default" as any other contract call. Get bridge parameters (output amount, timestamps, deadlines) from the bridge protocol’s quote API before building the instruction.

build (Simple)

Build a simple instruction without composability.

Time Bounds

Add time constraints to instructions: