IntentClient wraps the IntentRouter contract. Access it via client.intent.
Methods
postIntent
Post a new deposit intent to the auction system.PostIntentParams):
Returns:
Promise<Hash>
submitBid
Submit a solver bid on an open intent.SubmitBidParams):
Returns:
Promise<Hash>
settleAuction
Settle the auction for an intent (callable by anyone after the deadline).Promise<Hash>
cancelIntent
Cancel an open intent before the deadline (intent creator only).Promise<Hash>
getOpenIntents
Fetch recent open intents by scanning backwards from the latest ID.For production use, query The Graph subgraph instead of using this method — it scans the chain directly and can be slow for large intent counts.
Promise<IntentData[]>