You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update solve api example ([#175](https://github.com/sprintertech/sprinter-sdk/issues/175)) ([9dbfbd8](https://github.com/sprintertech/sprinter-sdk/commit/9dbfbd8763e13b050e0bc3ca33414f6016a48cb4))
7
+
- update solve api example ([#175](https://github.com/sprintertech/sprinter-sdk/issues/175)) ([9dbfbd8](https://github.com/sprintertech/sprinter-sdk/commit/9dbfbd8763e13b050e0bc3ca33414f6016a48cb4))
* update to solve-openapi.yaml to match updated OpenAPI spec ([#167](https://github.com/sprintertech/sprinter-sdk/issues/167)) ([b79e4cc](https://github.com/sprintertech/sprinter-sdk/commit/b79e4cc7ce82df46bb8a6894b11f379dd6536dbb))
19
+
- update to solve-openapi.yaml to match updated OpenAPI spec ([#167](https://github.com/sprintertech/sprinter-sdk/issues/167)) ([b79e4cc](https://github.com/sprintertech/sprinter-sdk/commit/b79e4cc7ce82df46bb8a6894b11f379dd6536dbb))
Get the **finalized execution package** returned by `/v1/route` which contains all necessary data to execute a transaction. It builds on a quote by including calldata, selected liquidity paths, slippage tolerances, and chain-specific details.
31
-
32
-
Routes are consumed directly by solvers or smart contracts to simulate and execute cross-chain swaps or intent fills.
26
+
Calculate the optimal swap route and generate execution parameters for a token exchange
33
27
34
28
<Heading
35
29
id={"request"}
@@ -43,43 +37,40 @@ Routes are consumed directly by solvers or smart contracts to simulate and execu
43
37
{
44
38
in: "query",
45
39
name: "amountIn",
46
-
description: "The amount of tokens to sell in decimal notation",
40
+
description: "The amount of input tokens to swap (in token's smallest unit)",
47
41
schema: {
48
42
description: "Amount of an ERC20 token as a decimal string (no scientific notation)",
49
43
type: "string",
50
44
pattern: "^[0-9]+$",
51
-
example: "1000000000000000000",
52
45
title: "TokenAmount",
53
46
},
54
47
required: true,
55
-
example: "1000000000000000000",
56
48
},
57
49
{
58
50
in: "query",
59
51
name: "tokenIn",
60
-
description: "Contract address of the input token to sell",
52
+
description:
53
+
"Contract address of the input token to sell. The zero address (0x00…00) represents the native currency ETH.",
61
54
schema: {
62
55
description: "Ethereum contract address (20 bytes) encoded as hexadecimal with 0x prefix",
0 commit comments