Router ABI
The Market Router is the primary entry point for all trading operations. Use these minimal ABIs to interact with the router contract. Address (Sepolia):0x82bfe1b31b6c1c3d201a0256416a18d93331d99e
Limit Orders
The
claimBounty field is reserved for future use. Always set it to 0.Parameter Reference
| Parameter | Type | Description |
|---|---|---|
market | address | The OrderBook contract address for the trading pair |
deadline | uint64 | Unix timestamp after which the transaction reverts |
claimBounty | uint32 | Reserved for future use (set to 0) |
user | address | Address to receive the order NFT and proceeds |
priceIndex | uint16 | Price level index from the PriceBook |
rawAmount | uint64 | Quote token amount in raw units (for bids) |
postOnly | bool | If true, reverts if order would immediately fill |
useNative | bool | If true, uses native ETH instead of WETH |
baseAmount | uint256 | Base token amount (for asks) |
Market Orders
Parameter Reference
| Parameter | Type | Description |
|---|---|---|
market | address | The OrderBook contract address |
deadline | uint64 | Unix timestamp after which the transaction reverts |
user | address | Address to receive the traded tokens |
limitPriceIndex | uint16 | Maximum (bid) or minimum (ask) price index |
rawAmount | uint64 | Max input (bid) or min output (ask) in raw units |
expendInput | bool | If true, spends all input; if false, stops at desired output |
useNative | bool | If true, uses native ETH instead of WETH |
baseAmount | uint256 | Max input (ask) or min output (bid) in base tokens |
Claim
Complete Router ABI
Copy this complete ABI for full router integration:View Complete Router ABI
View Complete Router ABI
