Skip to content

Commit f8e77a6

Browse files
Fix: Update to solve api for gas limits (#193)
1 parent ef1ea5e commit f8e77a6

File tree

8 files changed

+196
-515
lines changed

8 files changed

+196
-515
lines changed

docs/CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@
22

33
## [0.3.11](https://github.com/sprintertech/sprinter-sdk/compare/docs-v0.3.10...docs-v0.3.11) (2025-10-09)
44

5-
65
### Bug Fixes
76

8-
* borrow quote example ([#189](https://github.com/sprintertech/sprinter-sdk/issues/189)) ([1583e74](https://github.com/sprintertech/sprinter-sdk/commit/1583e74b750fd4b5a7fe1b5887f742221ea3061f))
7+
- borrow quote example ([#189](https://github.com/sprintertech/sprinter-sdk/issues/189)) ([1583e74](https://github.com/sprintertech/sprinter-sdk/commit/1583e74b750fd4b5a7fe1b5887f742221ea3061f))
98

109
## [0.3.10](https://github.com/sprintertech/sprinter-sdk/compare/docs-v0.3.9...docs-v0.3.10) (2025-09-15)
1110

12-
1311
### Bug Fixes
1412

15-
* missing base url ([#185](https://github.com/sprintertech/sprinter-sdk/issues/185)) ([c9b535d](https://github.com/sprintertech/sprinter-sdk/commit/c9b535dd422413a9f06414ef8158f07c1b650462)), closes [#184](https://github.com/sprintertech/sprinter-sdk/issues/184)
13+
- missing base url ([#185](https://github.com/sprintertech/sprinter-sdk/issues/185)) ([c9b535d](https://github.com/sprintertech/sprinter-sdk/commit/c9b535dd422413a9f06414ef8158f07c1b650462)), closes [#184](https://github.com/sprintertech/sprinter-sdk/issues/184)
1614

1715
## [0.3.9](https://github.com/sprintertech/sprinter-sdk/compare/docs-v0.3.8...docs-v0.3.9) (2025-07-08)
1816

19-
2017
### Bug Fixes
2118

22-
* adding requestID to solve api ([#178](https://github.com/sprintertech/sprinter-sdk/issues/178)) ([0438cc9](https://github.com/sprintertech/sprinter-sdk/commit/0438cc921ab037988d46f43f61bfe481d7a0e8b1))
19+
- adding requestID to solve api ([#178](https://github.com/sprintertech/sprinter-sdk/issues/178)) ([0438cc9](https://github.com/sprintertech/sprinter-sdk/commit/0438cc921ab037988d46f43f61bfe481d7a0e8b1))
2320

2421
## [0.3.8](https://github.com/sprintertech/sprinter-sdk/compare/docs-v0.3.7...docs-v0.3.8) (2025-06-30)
2522

docs/docs/03-Solve/get-route-v-1.api.mdx

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ Calculate the optimal swap route and generate execution parameters for a token e
8585
},
8686
required: false,
8787
},
88+
{
89+
in: "query",
90+
name: "timeout",
91+
description:
92+
"Optional timeout in milliseconds. If set, returns the best pathfinder result within the timeout window. Must be a positive integer.",
93+
schema: { type: "integer", format: "int32", minimum: 1 },
94+
required: false,
95+
},
8896
]}
8997
></ParamsDetails>
9098

@@ -114,7 +122,15 @@ Calculate the optimal swap route and generate execution parameters for a token e
114122
schema: {
115123
description: "Successfully created route with execution details",
116124
type: "object",
117-
required: ["requestId", "amountOut", "minAmountOut", "target", "callData"],
125+
required: [
126+
"requestId",
127+
"amountOut",
128+
"minAmountOut",
129+
"target",
130+
"callData",
131+
"gasUsed",
132+
"gasLimit",
133+
],
118134
properties: {
119135
requestId: {
120136
description:
@@ -151,6 +167,20 @@ Calculate the optimal swap route and generate execution parameters for a token e
151167
pattern: "^0x[a-fA-F0-9]*$",
152168
title: "Bytes",
153169
},
170+
gasUsed: {
171+
description: "Actual gas consumed by the swap simulation",
172+
type: "integer",
173+
format: "uint64",
174+
minimum: 0,
175+
example: 180000,
176+
},
177+
gasLimit: {
178+
description: "Recommended gas limit for the swap transaction (gasUsed * 1.3)",
179+
type: "integer",
180+
format: "uint64",
181+
minimum: 0,
182+
example: 234000,
183+
},
154184
},
155185
title: "RouteV1Response",
156186
},

docs/src/api/generated/solve/get-quote.api.mdx

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)