tradeReceipt
Tells you whether the swap you sent delivered what the quote promised. It only reads the chain.
Cost: free.
Inputs:
quoteIdandtxHashes, the 1 to 4 transactions you sent for it.Returns:
result(pass,failorpending),deliveredagainstminAmountOut, each transaction'sstatusand, on a fail or pending, areason.deliveredis whatrecipientreceived oftoken, in base units.nextisdone,retry,requoteorstop.Errors:
400
invalid_request: a hash is not one of this quote's transactions from itstaker. A Safe, an ERC-4337 account or a batching EIP-7702 wallet sends from elsewhere, so check your own transaction receipt.404
swap_not_found:tradeSwaphanded out no transactions for this quote in the last hour.429
receipt_rate_limited: one chain read per quote every 5 seconds. WaitretryAfterSec, or resend the sametxHashesfor the last answer.429
receipt_reads_exhausted: this quote's 132 chain reads are used up, for good.
Next: follow
nextin the answer.tradeQuote: quote again whennextisrequote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quoteId | Yes | The quoteId you called tradeSwap with. It must have been handed transactions in the last hour. | |
| txHashes | Yes | The 1 to 4 transactions you sent for the quote: the swap and any approvals. Each must be sent from the quote's `taker`, as an approval to the input token or a swap to ArcgateRouter that arcgate issued for this quote, whose output goes to its `recipient`. |