Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines ERC-7683, a proposal defining shared APIs and data structures for interoperable cross-chain asset transfers.
The following explanation covers the version of the proposal discussed in the original article.
I also cover a range of other EIPs.
Overview
ERC-7683 provides standardized APIs for systems that facilitate token transfers across blockchains. It defines shared order structures and interfaces for settlement contracts, allowing different cross-chain systems to exchange order information in a common format.
Motivation
Intent-based systems let users specify the outcome they want rather than the individual steps required to achieve it. The system can determine how to fulfill the request, reducing the complexity users face when coordinating bridge operations and timing constraints.
However, these systems need sufficient liquidity and networks of fillers, participants who execute orders across chains. As the number of chains increases, individual systems may struggle to maintain active fillers and adequate liquidity everywhere. Users may consequently encounter higher fees, longer waiting times, or failed orders.
Standardized APIs and data formats can enable different intent systems to share order distribution infrastructure and filler networks. Greater competition between fillers could improve execution costs, speed, and reliability.
Specification
The standard defines common APIs and data structures for cross-chain token transfers. Its interoperability model allows different systems to share liquidity and order fulfillment infrastructure while retaining their own implementation-specific settlement mechanisms.
Terminology
- Destination Chain A chain on which a user's intent is fulfilled. One intent may involve multiple destination chains.
- Filler A participant who fulfills the user's intent on a destination chain in exchange for payment.
- Leg An independently executable portion of an intent. All legs must be fulfilled for the overall intent to be completed.
- Origin Chain The chain from which the user's funds originate.
- Settlement System The mechanism responsible for managing deposits, verifying fulfillment, and paying fillers.
- Settler A contract implementing part of the settlement system on a particular chain.
- User The end user submitting an order.
Structs
GaslessCrossChainOrder
struct GaslessCrossChainOrder {
address originSettler;
address user;
uint256 nonce;
uint256 originChainId;
uint32 openDeadline;
uint32 fillDeadline;
bytes32 orderDataType;
bytes orderData;
}A standard structure for gasless cross-chain orders. The user signs an order off-chain, and a filler submits it to the origin settler.
Parameters
originSettlerThe contract responsible for opening the order on the origin chain.userThe address of the user initiating the order.nonceA unique value used for replay protection.originChainIdThe origin chain identifier.openDeadlineThe timestamp by which the order must be opened.fillDeadlineThe timestamp by which the order must be filled.orderDataTypeAn EIP-712 type hash identifying the order data format.orderDataImplementation-specific encoded data, such as tokens, amounts, destination chains, fees, and settlement conditions.
For more on EIP-712, see the following article.
[EIP-712] Hashing and Signing Typed Structured Data
OnchainCrossChainOrder
struct OnchainCrossChainOrder {
uint32 fillDeadline;
bytes32 orderDataType;
bytes orderData;
}A structure for orders submitted directly by users on the origin chain.
Unlike the gasless flow, the user submits the opening transaction. Required transaction details are encoded in orderData.
Parameters
fillDeadlineThe deadline for filling the order.orderDataTypeThe EIP-712 type hash identifying the order data format.orderDataImplementation-specific encoded data.
ResolvedCrossChainOrder
struct ResolvedCrossChainOrder {
address user;
uint256 originChainId;
uint32 openDeadline;
uint32 fillDeadline;
bytes32 orderId;
Output[] maxSpent;
Output[] minReceived;
FillInstruction[] fillInstructions;
}A structure representing an order in a format that fillers can interpret. Resolving an order exposes its input and output requirements so that fillers can determine how to execute its destination-chain legs.
Parameters
userThe address of the user initiating the order.originChainIdThe origin chain identifier.openDeadlineThe deadline for opening the order.fillDeadlineThe deadline for fulfillment.orderIdA unique order identifier within the settlement system.maxSpentThe maximum outputs that may be spent in fulfilling the order.minReceivedThe minimum outputs the filler expects to receive in settlement.fillInstructionsInstructions for executing the individual legs of the order.
Output
struct Output {
bytes32 token;
uint256 amount;
bytes32 recipient;
uint256 chainId;
}Defines a token output required by the order, including the asset, amount, recipient, and chain.
Parameters
tokenThe token address on the specified chain, encoded in the required format. A zero value denotes the native asset.amountThe token amount.recipientThe recipient identifier.chainIdThe chain on which the output is delivered.
FillInstruction
struct FillInstruction {
uint256 destinationChainId;
bytes32 destinationSettler;
bytes originData;
}Contains the instructions necessary to execute an individual leg.
Parameters
destinationChainIdThe identifier of the chain where the leg is executed.destinationSettlerThe destination settler contract responsible for processing the fill.originDataData generated on the origin side and needed to execute the fill.
Events
Open
event Open(bytes32 indexed orderId, ResolvedCrossChainOrder resolvedOrder);Emitted when an order is opened.
Parameters
orderIdThe unique order identifier in the settlement system.resolvedOrderThe resolved order information.
Interfaces
openFor
function openFor(GaslessCrossChainOrder calldata order, bytes calldata signature, bytes calldata originFillerData) external;Allows a filler to open a gasless order on the user's behalf.
The filler submits the signed GaslessCrossChainOrder to the origin settler, which emits the Open event when the order is opened.
Arguments
orderThe gasless order.signatureThe user's signature.originFillerDataAdditional data supplied by the filler.
open
function open(OnchainCrossChainOrder calldata order) external;Allows the user to open an order directly through an on-chain transaction, emitting the Open event.
Arguments
orderThe on-chain order.
resolveFor
function resolveFor(GaslessCrossChainOrder calldata order, bytes calldata originFillerData) external view returns (ResolvedCrossChainOrder memory);Resolves a gasless order into a ResolvedCrossChainOrder, exposing its input and output requirements in a common format.
Arguments
orderThe gasless order.originFillerDataAdditional data supplied by the filler.
Return value
ResolvedCrossChainOrderThe resolved order information.
resolve
function resolve(OnchainCrossChainOrder calldata order) external view returns (ResolvedCrossChainOrder memory);Resolves an on-chain order into the same standardized representation.
Arguments
orderThe on-chain order.
Return value
ResolvedCrossChainOrderThe resolved order information.
fill
function fill(bytes32 orderId, bytes calldata originData, bytes calldata fillerData) external;Executes a leg of the order on the destination chain. The destination settler uses the origin-side data and the filler-supplied data to process the fill.
Arguments
orderIdThe unique identifier of the order.originDataData generated on the origin side for fulfillment.fillerDataAdditional data supplied by the filler.
Rationale
Generic orderData and two execution flows
ERC-7683 is designed to accommodate different cross-chain intent systems.
Its order structures therefore include an extensible orderData field.
The design supports two principal flows.
Gasless flow
The user signs the order off-chain and provides it to a filler. The filler resolves the order requirements and opens the order on the origin chain. The filler then executes the applicable legs on the destination chains, followed by cross-chain settlement.
On-chain flow
The user calls open directly on the origin chain.
A filler obtains the order requirements from the emitted event and fulfills the legs on the destination chains.
Cross-chain settlement follows.
Customizable design
Implementers retain control over several aspects of the system.
- Pricing mechanisms, including Dutch auctions or oracle-based pricing.
- Fulfillment constraints.
- Settlement procedures.
- The ordering of origin and destination operations, including systems that permit fulfillment before opening.
The extensible orderData field allows these variations while retaining a common resolved order format.
This is also the rationale behind the resolution functions and ResolvedCrossChainOrder: fillers can evaluate standardized requirements without necessarily decoding every implementation-specific field.
The role of FillInstruction
The FillInstruction array contains the information fillers need to submit the correct fill operations.
- The destination chain.
- The destination settler.
- Relevant information generated on the origin chain.
- Data potentially dependent on execution timing, such as auction parameters.
The originData field is opaque to the generic filler interface.
Implementers can encode their own data formats without requiring the filler to interpret them.
This facilitates simulation and integration across different implementations.
Cross-compatibility
The standard is designed with future interoperability beyond EVM chains in mind.
Rather than incorporating every non-EVM execution model into the same interface, the proposal discusses sibling standards for other environments.
The use of bytes32 for address-like values accommodates more address formats than Ethereum's native address type, subject to the applicable encoding rules.
Using Permit2
Permit2 is optional but can complement this order model. Its witness functionality allows a user to authorize a token transfer while binding that authorization to the order in one signature. Any prerequisite ERC-20 approval to Permit2 must still be in place.
When integrating Permit2, the following conventions are relevant.
- Use the Permit2 nonce as the order's nonce.
- Use the Permit2 deadline as
openDeadline. - Bind the complete order, including
orderData, through the Permit2 witness type.
Example: a Message subtype
An ERC-7683-compatible transfer order could introduce a Message subtype that instructs the destination settler to execute additional contract calls.
The Message structure can contain an array of calls, each specifying:
- The target contract address.
- The calldata.
- The amount of ETH to send.
The destination settler can execute these calls during fulfillment.
For example, the received assets could be used immediately in an additional operation.
However, the immediate caller observed by the target contract would be the destination settler, which limits compatibility with contracts relying on the recipient's msg.sender.
An appropriately authorized smart account using ERC-4337 or EIP-7702 may help address this limitation.
For more on ERC-4337, see the following article.
[ERC-4337] Account Abstraction Without Consensus-Layer Changes
Security considerations
ERC-7683 does not prescribe a particular mechanism for verifying fulfillment or reimbursing fillers. Evaluating the settlement system's security is outside the scope of the interface and remains the responsibility of fillers and applications constructing orders for users.
Different cross-chain messaging systems have different security models and trade-offs. Mandating one specific approach would restrict the flexibility available to integrators.
The proposal anticipates that complementary standards could address trust-minimized cross-chain verification more specifically. Such work could improve interoperability at the settlement-verification layer, but using ERC-7683 alone does not guarantee that settlement is secure or trustless.
Citation
Mark Toda (@marktoda), Matt Rice (@mrice32), Nick Pai (@nicholaspai), "ERC-7683: Cross Chain Intents [DRAFT]," Ethereum Improvement Proposals, no. 7683, April 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7683.
Conclusion
This article covered ERC-7683, a proposal for common order structures and interfaces that facilitate interoperability between cross-chain intent systems.
If you have questions, feel free to reach out via Twitter DM.
I also publish on the following platforms.




