@@ -23,19 +23,15 @@ This guide covers:
2323
2424``` mermaid
2525flowchart TD
26- A[Intent Detected] --> B[Request estimated price and execution plan]
27- B --> C{Quote Acceptable/<br>Profitable?}
28- C -- No --> D[Abort or Re-query]
29- C -- Yes --> E[Get the finalized route and call data execution package]
26+ A[Intent Detected] -->
27+ E[Get the finalized route and call data execution package]
3028 E --> F[Simulate & Execute Transaction]
3129 F --> G[Send Transaction & Finalize Fill]
3230
3331
34- click B "solve-get-route-v2" "Borrow Quote"
35- style B fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
32+ click E "solve-get-route-v2" "Borrow Quote"
33+ style E fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
3634
37- click F "solve-api-quick-start#4-send-transaction-using-swap_call_data" "Borrow Quote"
38- style F fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
3935```
4036
4137</div >
@@ -102,7 +98,7 @@ const route = await routeResponse.json();
10298
10399// Send the calldata to the target contract (Sprinter Router or intent receiver)
104100const tx = await signer .sendTransaction ({
105- to: route .to , // usually the router or intent execution contract
101+ to: route .to , // the router or intent execution contract eg. 0xbfc4b3546416c5a7fa857bdb31b7701bfc7a42f7 for Sprinter Solve (Mainnet, Base)
106102 data: route .swap_call_data ,
107103 value: route .value || 0 , // only include if route requires native gas
108104 gasLimit: route .gasEstimate + 50000 , // add buffer
@@ -113,12 +109,10 @@ console.log("Transaction hash:", tx.hash);
113109
114110## 4. Sprinter Solve Execution Tips
115111
116- 1 . Start with ` /quote ` to quickly evaluate whether a fill is profitable .
112+ 1 . Use tools like Tenderly or hardhat to ** simulate calldata before execution ** .
117113
118- 2 . Use tools like Tenderly or hardhat to ** simulate calldata before execution** .
114+ 2 . ** Pay attention to slippage ** - Quotes expire quickly. Re-query /route before execution if delayed .
119115
120- 3 . ** Pay attention to slippage ** - Quotes expire quickly. Re-query /route before execution if delayed .
116+ 3 . Use ** gasEstimate for accurate costing ** - whilst the Route API provides gas estimates — apply buffer when setting gas limits .
121117
122- 4 . Use ** gasEstimate for accurate costing** - whilst the Route API provides gas estimates — apply buffer when setting gas limits.
123-
124- 5 . ** Handling Rate Limits
** - If you hit 429s, give it a moment and retry using retry_after value. You can request higher limits via
[email protected] .
118+ 4 . ** Handling Rate Limits
** - If you hit 429s, give it a moment and retry using retry_after value. You can request higher limits via
[email protected] .
0 commit comments