Search
⌘K
Intent Swap (Fusion)
API version: All versions
Introduction
Quick start
Quick Start - Ethereum
Quick Start - Solana
Orders
Get gasless swap active orders GET
Get settlement contract address GET
Get order status by hash GET
Get multiple orders by hashes POST
Get orders by maker address GET
Get cancelable orders GET
Quoter
Get quote for token swap GET
Get quote with custom auction presets POST
Build Fusion order from quote POST
Relayer
Submit a signed Fusion order POST
Submit multiple signed Fusion orders POST
Migration
Migration from v1.0 to v2.0
SDK
Solana
Overview
Filling and canceling Solana Fusion order
WebSocket API
EVMs
Overview
Swapping a Native Token to ERC-20
Swapping with Permit2
WebSocket API
Docs·APIs·Swap API·Intent Swap (Fusion)·SDK·Solana·Filling and canceling Solana Fusion order

Filling and canceling Solana Fusion order

Fusion orders on Solana have a defined lifecycle that includes filling by resolvers and cancellation options. Understanding this lifecycle helps you build robust applications that handle all possible order outcomes.

Order Lifecycle

After an escrow is created on-chain, the order enters the active state where:

  1. Resolvers Monitor - Professional market makers watch for profitable orders to fill
  2. Dutch Auction - The offered price decreases over time, incentivizing quick fills
  3. Fill or Expire - Either a resolver fills the order, or it expires after the deadline

Cancellation Options

Orders can be cancelled in two scenarios:

  • Maker Cancellation - As the order creator (maker), you can cancel your own order at any time before it's filled. This returns your tokens from the escrow back to your wallet.
  • Resolver Cancellation - After an order expires, resolvers can trigger cancellation to clean up the escrow. For this service, resolvers earn a small cancellation premium (paid in lamports) as defined in the order parameters.

Interactive Code Example

Explore the complete implementation — this example demonstrates how to cancel an existing order:

Did you find what you need?