Resource lock intents using OIF

This webapp demonstrates an Open Intents Framework implementation using The Compact Resource Locks. This app currently supports two flows:

  • Swaps using existing deposits (off-chain signature-based settlement)
  • Swaps with on-chain deposit and registration (transaction-based resource locking)

A third, currently unimplemented, flow leverages permit2 to enable gasless on-chain deposits and registration—providing a smooth user experience without requiring user-initiated transactions.


Why Resource Locks?

Resource Locks improve asset availability guarantees in cross-chain contexts and asynchronous environments, offering several key advantages:

  • Funds are only debited after successful delivery has been proven.
  • Enables efficient short-lived interactions—intents can expire within seconds without consequence.
  • No upfront deposit or initiation transaction are required.
  • Fully composable with other protocols and settlement layers.

Learn more about Resource Locks.


Why the Open Intents Framework?

The Open Intents Framework (OIF) is an open coordination layer for standardizing and scaling intent-based workflows across chains. The goal is to:

  • Standardise cross-chain interactions.
  • Define a permissionless intent implementation that can scale across all chains.
  • Create a reference implementation for cross-chain solvers & searchers.
  • Provide tooling for wallet and app developers.

Learn more about Open Intents Framework.

Manage Compact

Allocator

of

Sign Intent with Deposit

Sell of
Buy
Verified by

Execute Deposit and Register Intent

Sell of
Buy
Verified by
OrderIdUserFromToInputOutputFillSubmitValidateClaim