Working with Orders
Practical guide to creating and using Signed Orders. Covers structure, creation process, status monitoring, and best practices with code examples for seamless integration.
Conditional transactions via Signed Orders
Signet orders use the Permit2 standard, allowing users to authorize token transfers with a single signature. This intent mechanism powers Signet's swaps, allowing users to express intents like:
"I want to swap 5 Signet ETH for 1000 USDC on Ethereum"
Nothing happens if the exact conditions you specify are not met.
Technical Order Structure
Permit2 Batches
Permit2 batches contain individually signed transactions, allowing multiple inputs (what the user provides) to map to desired outputs (what the user receives).
For Users: Working with Orders
Users interact with Signet's order system primarily when moving assets from Signet to Ethereum.
Creating a Signed Order
To create a Signed Order, follow these steps:
Decide which assets you're willing to provide (inputs) and what you want to receive (outputs)
Authorize the Permit2 contract to manage your tokens
Sign the order with your wallet
Submit the order to the orders cache
Order Status
You can check the status of your orders:
Pending: Order is in the cache waiting to be filled
Filled: Order has been successfully executed
Expired: Order has passed its deadline without being filled
User Best Practices
Set reasonable price expectations for cross-chain swaps
Monitor orders that remain unfilled for extended periods
Consider setting a deadline to ensure stale orders don't execute at unfavorable rates
Related Pages
Last updated