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

ExportPurpose
OrderThe order shape (Valibot-derived type).
order_hashEIP-712 hash of an order.
sign_orderProduce a signed order.
typed-data builderFor path-2 signing.

Origin settler (@ethernauta/erc/7683/origin_settler)

MethodShapePurpose
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)

MethodShapePurpose
fill({ orderId, originData, fillerData })Signable<Hash32>Filler fulfillment call.

See also