ERCs
ERC-7683 — Cross-Chain Intents
eips.ethereum.org/EIPS/eip-7683
A standard order format for cross-chain swaps. A user signs an Order on the source chain; a filler (anyone) submits it to the origin settler and fulfills it on the destination settler. Filler bears the cross-chain risk; user gets atomicity guarantees.
import { order_hash, sign_order, type Order } from "@ethernauta/erc/7683";
import { open } from "@ethernauta/erc/7683/origin_settler";
import { fill } from "@ethernauta/erc/7683/destination_settler";
Surface
Order primitives
| Export | Purpose |
|---|
Order | The order shape (Valibot-derived type). |
order_hash | EIP-712 hash of an order. |
sign_order | Produce a signed order. |
| typed-data builder | For path-2 signing. |
Origin settler (@ethernauta/erc/7683/origin_settler)
| Method | Shape | Purpose |
|---|
open({ order, signature, originFillerData }) | Signable<Hash32> | Submit an order on the source chain. |
resolve({ order }) | Callable<ResolvedOrder> | Pre-fill the order’s effective resolution. |
Destination settler (@ethernauta/erc/7683/destination_settler)
| Method | Shape | Purpose |
|---|
fill({ orderId, originData, fillerData }) | Signable<Hash32> | Filler fulfillment call. |
See also