Sparklend Pool Windows
This endpoint returns windowed (time-bucketed) performance metrics for Sparklend lending pools: TVL, deposit and withdrawal flows, borrow activity, and supply/borrow APYs over a selected timeframe. You can filter results by pool, underlying token, chain, and minimum TVL, and sort by any available metric column.
GET
https://api.cambrian.org/evm/lending/sparklend/pools/windows
Parameters
timeframe* (string)
Timeframe for historical data results
pool_address (string)
Sparklend pool address
underlying_address (string)
Underlying token address. See tokens for valid addresses.
chain_id (integer)
EVM chain ID.
min_tvl_usd (number)
Minimum TVL Usd of the lending pool/vault, not the window average.
limit (integer)
Limit the number of results.
offset (integer)
Offset the results, allows you to skip a number of rows before starting to return rows.
order_asc (array)
List of column names to order by in ascending order divided by comma. Leave empty items to combine with descending order
order_desc (array)
List of column names to order by in descending order divided by comma. Leave empty items to combine with ascending order
Responses
Code
Description
200
Successful response
Media type: application/vnd.cambrian.table.v1.0.0+json
[
{
"columns": [
{
"name": "chainId",
"type": "UInt8"
},
{
"name": "protocolId",
"type": "String"
},
{
"name": "poolAddress",
"type": "FixedString(42)"
},
{
"name": "symbol",
"type": "Nullable(String)"
},
{
"name": "name",
"type": "Nullable(String)"
},
{
"name": "underlyingAddress",
"type": "FixedString(42)"
},
{
"name": "underlyingSymbol",
"type": "String"
},
{
"name": "tvlUsd",
"type": "Float64"
},
{
"name": "tvlUsdChange",
"type": "Float64"
},
{
"name": "depositsUsd",
"type": "Float64"
},
{
"name": "withdrawalsUsd",
"type": "Float64"
},
{
"name": "netFlowUsd",
"type": "Float64"
},
{
"name": "borrowsUsd",
"type": "Float64"
},
{
"name": "availableLiquidityChangeUsd",
"type": "Float64"
},
{
"name": "supplyApy",
"type": "Float64"
},
{
"name": "supplyBaseApy",
"type": "Float64"
},
{
"name": "supplyExtraRewardsApy",
"type": "Float64"
},
{
"name": "borrowApy",
"type": "Float64"
},
{
"name": "utilizationRate",
"type": "Float64"
},
{
"name": "updatedAt",
"type": "DateTime('UTC')"
}
],
"data": [
[
1,
"sparklend",
"0x12b54025c112aa61face2cdb7118740875a566e9",
"spwstETH",
"Spark wstETH",
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
"wstETH",
2749073886.0348973,
-433087733.2795286,
330267798.0766743,
368588650.64828956,
-38320852.57161528,
0,
-433086808.32266617,
1.1063709419734081e-13,
1.1063709419734081e-13,
0,
6.71955348219334e-8,
0.0000023518382601769464,
"2026-11-18T12:16:11+00:00"
],
[
1,
"sparklend",
"0xc02ab1a5eaa8d1b114ef786d9bde108cd4364359",
"spUSDS",
"Spark USDS",
"0xdc035d45d973e3ec169d2276ddab16f1e407384f",
"USDS",
985614351.9778996,
-89226429.54541278,
377742853.20796555,
467675006.585793,
-89932153.37782747,
324875579.2726281,
-19366345.578194857,
0.034416543703190465,
0.034416543703190465,
0,
0.04878805570842933,
0.7838314363060374,
"2026-11-18T12:20:47+00:00"
],
[
1,
"sparklend",
"0x59cd1c87501baa753d0b5b5ab5d8416a45cd71db",
"spWETH",
"Spark WETH",
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"WETH",
930467679.0845938,
-215945760.99878716,
153653192.58769408,
225217098.42022854,
-71563905.83253446,
77990259.62749778,
-64569513.92674267,
0.016965846081867325,
0.016965846081867325,
0,
0.021055571606185992,
0.8486140928775039,
"2026-11-18T12:20:11+00:00"
],
[
1,
"sparklend",
"0xb3973d459df38ae57797811f2a1fd061da1bc123",
"spcbBTC",
"Spark cbBTC",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
499082046.56371903,
147788929.72535235,
289276189.5277903,
74683428.04929125,
214592761.47849905,
8074512.38664452,
152671961.0372247,
0.000013814551012191194,
0.000013814551012191194,
0,
0.000447030933452985,
0.035762477299113776,
"2026-11-18T09:11:35+00:00"
],
[
1,
"sparklend",
"0xe7df13b8e3d6740fe17cbe928c7334243d86c92f",
"spUSDT",
"Spark USDT",
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"USDT",
363939663.6059296,
41110086.33414233,
96845603.44020501,
55993556.306763,
40852047.13344201,
79493045.30673398,
1730309.522914648,
0.039249261260648746,
0.039249261260648746,
0,
0.04576367311250979,
0.9525037772414451,
"2026-11-18T11:52:11+00:00"
],
[
1,
"sparklend",
"0x4dedf26112b3ec8ec46e7e31ea5e123490b05b8b",
"spDAI",
"Spark DAI",
"0x6b175474e89094c44da98b954eedeac495271d0f",
"DAI",
258468697.08349133,
-2082208.093073696,
106016.69479506894,
2356960.286411474,
-2250943.591616405,
1127015.854622108,
-430091.08571225405,
0.03583993284168534,
0.03583993284168534,
0,
0.04980949128627398,
0.8005164988292403,
"2026-11-18T10:06:11+00:00"
],
[
1,
"sparklend",
"0x4197ba364ae6698015ae5c1468f54087602715b2",
"spWBTC",
"Spark WBTC",
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"WBTC",
131542797.69287173,
-37996902.777450666,
10826543.389125032,
26928654.654987305,
-16102111.265862273,
0,
-37957266.94504996,
1.0148943430234518e-7,
1.0148943430234518e-7,
0,
0.00006486020166265672,
0.001945806162688695,
"2026-11-18T10:56:23+00:00"
],
[
1,
"sparklend",
"0x779224df1c756b4edd899854f32a53e8c2b2ce5d",
"spPYUSD",
"Spark PYUSD",
"0x6c3ea9036406852006290770bedfcaba0e23a0e8",
"PYUSD",
100016480.14977145,
7275.489013493061,
0,
15316.40891771804,
-15316.40891771804,
16545661.803306835,
-9268087.573467165,
0.012998367848824636,
0.012998367848824636,
0,
0.04019398821651119,
0.3592886303351311,
"2026-11-18T07:57:23+00:00"
],
[
1,
"sparklend",
"0xa9d4ecebd48c282a70cfd3c469d6c8f178a5738e",
"spLBTC",
"Spark LBTC",
"0x8236a87084f8b84306f72007f36f2618a5634494",
"LBTC",
72837617.64702176,
-10939542.961270988,
0,
32065.194974615606,
-32065.194974615606,
0,
-10939542.961270988,
0,
0,
0,
0.05,
0,
"2026-11-15T01:23:23+00:00"
],
[
1,
"sparklend",
"0x377c3bd93f2a2984e1e7be6a5c22c525ed4a4815",
"spUSDC",
"Spark USDC",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"USDC",
51469320.28860197,
-1064925.485181272,
16197381.259866001,
17305564.03842,
-1108182.778553998,
1599050.856656,
-40601.89396827668,
0.04349208745638978,
0.04349208745638978,
0,
0.049298250933611475,
0.9803050640850413,
"2026-11-18T10:54:59+00:00"
]
],
"rows": 10
}
]
400
Bad Request: Invalid request parameters or malformed request.
401
Unauthorized: Missing or invalid API key. Include X-API-Key header with your request.
403
Forbidden: Invalid API key or insufficient permissions to access this resource.
404
Not Found: Endpoint or resource does not exist.
408
Request Timeout: Request took too long to process. Try again.
500
Internal Server Error: An unexpected error occurred while processing your request.
503
Service Unavailable: The server is temporarily unable to handle the request. Please try again later.
Examples
1. Retrieve 7-day Sparklend pool window metrics
Fetches windowed performance metrics for Sparklend pools over the last 7 days, limited to the top 10 results.
curl
curl -X GET "https://api.cambrian.org/evm/lending/sparklend/pools/windows?timeframe=7d&limit=10" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
JSON
1[
2 {
3 "columns": [
4 {
5 "name": "chainId",
6 "type": "UInt8"
7 },
8 {
9 "name": "protocolId",
10 "type": "String"
11 },
12 {
13 "name": "poolAddress",
14 "type": "FixedString(42)"
15 },
16 {
17 "name": "symbol",
18 "type": "Nullable(String)"
19 },
20 {
21 "name": "name",
22 "type": "Nullable(String)"
23 },
24 {
25 "name": "underlyingAddress",
26 "type": "FixedString(42)"
27 },
28 {
29 "name": "underlyingSymbol",
30 "type": "String"
31 },
32 {
33 "name": "tvlUsd",
34 "type": "Float64"
35 },
36 {
37 "name": "tvlUsdChange",
38 "type": "Float64"
39 },
40 {
41 "name": "depositsUsd",
42 "type": "Float64"
43 },
44 {
45 "name": "withdrawalsUsd",
46 "type": "Float64"
47 },
48 {
49 "name": "netFlowUsd",
50 "type": "Float64"
51 },
52 {
53 "name": "borrowsUsd",
54 "type": "Float64"
55 },
56 {
57 "name": "availableLiquidityChangeUsd",
58 "type": "Float64"
59 },
60 {
61 "name": "supplyApy",
62 "type": "Float64"
63 },
64 {
65 "name": "supplyBaseApy",
66 "type": "Float64"
67 },
68 {
69 "name": "supplyExtraRewardsApy",
70 "type": "Float64"
71 },
72 {
73 "name": "borrowApy",
74 "type": "Float64"
75 },
76 {
77 "name": "utilizationRate",
78 "type": "Float64"
79 },
80 {
81 "name": "updatedAt",
82 "type": "DateTime('UTC')"
83 }
84 ],
85 "data": [
86 [
87 1,
88 "sparklend",
89 "0x12b54025c112aa61face2cdb7118740875a566e9",
90 "spwstETH",
91 "Spark wstETH",
92 "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
93 "wstETH",
94 2749073886.0348973,
95 -433087733.2795286,
96 330267798.0766743,
97 368588650.64828956,
98 -38320852.57161528,
99 0,
100 -433086808.32266617,
101 1.1063709419734081e-13,
102 1.1063709419734081e-13,
103 0,
104 6.71955348219334e-8,
105 0.0000023518382601769464,
106 "2026-11-18T12:16:11+00:00"
107 ],
108 [
109 1,
110 "sparklend",
111 "0xc02ab1a5eaa8d1b114ef786d9bde108cd4364359",
112 "spUSDS",
113 "Spark USDS",
114 "0xdc035d45d973e3ec169d2276ddab16f1e407384f",
115 "USDS",
116 985614351.9778996,
117 -89226429.54541278,
118 377742853.20796555,
119 467675006.585793,
120 -89932153.37782747,
121 324875579.2726281,
122 -19366345.578194857,
123 0.034416543703190465,
124 0.034416543703190465,
125 0,
126 0.04878805570842933,
127 0.7838314363060374,
128 "2026-11-18T12:20:47+00:00"
129 ],
130 [
131 1,
132 "sparklend",
133 "0x59cd1c87501baa753d0b5b5ab5d8416a45cd71db",
134 "spWETH",
135 "Spark WETH",
136 "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
137 "WETH",
138 930467679.0845938,
139 -215945760.99878716,
140 153653192.58769408,
141 225217098.42022854,
142 -71563905.83253446,
143 77990259.62749778,
144 -64569513.92674267,
145 0.016965846081867325,
146 0.016965846081867325,
147 0,
148 0.021055571606185992,
149 0.8486140928775039,
150 "2026-11-18T12:20:11+00:00"
151 ],
152 [
153 1,
154 "sparklend",
155 "0xb3973d459df38ae57797811f2a1fd061da1bc123",
156 "spcbBTC",
157 "Spark cbBTC",
158 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
159 "cbBTC",
160 499082046.56371903,
161 147788929.72535235,
162 289276189.5277903,
163 74683428.04929125,
164 214592761.47849905,
165 8074512.38664452,
166 152671961.0372247,
167 0.000013814551012191194,
168 0.000013814551012191194,
169 0,
170 0.000447030933452985,
171 0.035762477299113776,
172 "2026-11-18T09:11:35+00:00"
173 ],
174 [
175 1,
176 "sparklend",
177 "0xe7df13b8e3d6740fe17cbe928c7334243d86c92f",
178 "spUSDT",
179 "Spark USDT",
180 "0xdac17f958d2ee523a2206206994597c13d831ec7",
181 "USDT",
182 363939663.6059296,
183 41110086.33414233,
184 96845603.44020501,
185 55993556.306763,
186 40852047.13344201,
187 79493045.30673398,
188 1730309.522914648,
189 0.039249261260648746,
190 0.039249261260648746,
191 0,
192 0.04576367311250979,
193 0.9525037772414451,
194 "2026-11-18T11:52:11+00:00"
195 ],
196 [
197 1,
198 "sparklend",
199 "0x4dedf26112b3ec8ec46e7e31ea5e123490b05b8b",
200 "spDAI",
201 "Spark DAI",
202 "0x6b175474e89094c44da98b954eedeac495271d0f",
203 "DAI",
204 258468697.08349133,
205 -2082208.093073696,
206 106016.69479506894,
207 2356960.286411474,
208 -2250943.591616405,
209 1127015.854622108,
210 -430091.08571225405,
211 0.03583993284168534,
212 0.03583993284168534,
213 0,
214 0.04980949128627398,
215 0.8005164988292403,
216 "2026-11-18T10:06:11+00:00"
217 ],
218 [
219 1,
220 "sparklend",
221 "0x4197ba364ae6698015ae5c1468f54087602715b2",
222 "spWBTC",
223 "Spark WBTC",
224 "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
225 "WBTC",
226 131542797.69287173,
227 -37996902.777450666,
228 10826543.389125032,
229 26928654.654987305,
230 -16102111.265862273,
231 0,
232 -37957266.94504996,
233 1.0148943430234518e-7,
234 1.0148943430234518e-7,
235 0,
236 0.00006486020166265672,
237 0.001945806162688695,
238 "2026-11-18T10:56:23+00:00"
239 ],
240 [
241 1,
242 "sparklend",
243 "0x779224df1c756b4edd899854f32a53e8c2b2ce5d",
244 "spPYUSD",
245 "Spark PYUSD",
246 "0x6c3ea9036406852006290770bedfcaba0e23a0e8",
247 "PYUSD",
248 100016480.14977145,
249 7275.489013493061,
250 0,
251 15316.40891771804,
252 -15316.40891771804,
253 16545661.803306835,
254 -9268087.573467165,
255 0.012998367848824636,
256 0.012998367848824636,
257 0,
258 0.04019398821651119,
259 0.3592886303351311,
260 "2026-11-18T07:57:23+00:00"
261 ],
262 [
263 1,
264 "sparklend",
265 "0xa9d4ecebd48c282a70cfd3c469d6c8f178a5738e",
266 "spLBTC",
267 "Spark LBTC",
268 "0x8236a87084f8b84306f72007f36f2618a5634494",
269 "LBTC",
270 72837617.64702176,
271 -10939542.961270988,
272 0,
273 32065.194974615606,
274 -32065.194974615606,
275 0,
276 -10939542.961270988,
277 0,
278 0,
279 0,
280 0.05,
281 0,
282 "2026-11-15T01:23:23+00:00"
283 ],
284 [
285 1,
286 "sparklend",
287 "0x377c3bd93f2a2984e1e7be6a5c22c525ed4a4815",
288 "spUSDC",
289 "Spark USDC",
290 "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
291 "USDC",
292 51469320.28860197,
293 -1064925.485181272,
294 16197381.259866001,
295 17305564.03842,
296 -1108182.778553998,
297 1599050.856656,
298 -40601.89396827668,
299 0.04349208745638978,
300 0.04349208745638978,
301 0,
302 0.049298250933611475,
303 0.9803050640850413,
304 "2026-11-18T10:54:59+00:00"
305 ]
306 ],
307 "rows": 10
308 }
309]
2 {
3 "columns": [
4 {
5 "name": "chainId",
6 "type": "UInt8"
7 },
8 {
9 "name": "protocolId",
10 "type": "String"
11 },
12 {
13 "name": "poolAddress",
14 "type": "FixedString(42)"
15 },
16 {
17 "name": "symbol",
18 "type": "Nullable(String)"
19 },
20 {
21 "name": "name",
22 "type": "Nullable(String)"
23 },
24 {
25 "name": "underlyingAddress",
26 "type": "FixedString(42)"
27 },
28 {
29 "name": "underlyingSymbol",
30 "type": "String"
31 },
32 {
33 "name": "tvlUsd",
34 "type": "Float64"
35 },
36 {
37 "name": "tvlUsdChange",
38 "type": "Float64"
39 },
40 {
41 "name": "depositsUsd",
42 "type": "Float64"
43 },
44 {
45 "name": "withdrawalsUsd",
46 "type": "Float64"
47 },
48 {
49 "name": "netFlowUsd",
50 "type": "Float64"
51 },
52 {
53 "name": "borrowsUsd",
54 "type": "Float64"
55 },
56 {
57 "name": "availableLiquidityChangeUsd",
58 "type": "Float64"
59 },
60 {
61 "name": "supplyApy",
62 "type": "Float64"
63 },
64 {
65 "name": "supplyBaseApy",
66 "type": "Float64"
67 },
68 {
69 "name": "supplyExtraRewardsApy",
70 "type": "Float64"
71 },
72 {
73 "name": "borrowApy",
74 "type": "Float64"
75 },
76 {
77 "name": "utilizationRate",
78 "type": "Float64"
79 },
80 {
81 "name": "updatedAt",
82 "type": "DateTime('UTC')"
83 }
84 ],
85 "data": [
86 [
87 1,
88 "sparklend",
89 "0x12b54025c112aa61face2cdb7118740875a566e9",
90 "spwstETH",
91 "Spark wstETH",
92 "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
93 "wstETH",
94 2749073886.0348973,
95 -433087733.2795286,
96 330267798.0766743,
97 368588650.64828956,
98 -38320852.57161528,
99 0,
100 -433086808.32266617,
101 1.1063709419734081e-13,
102 1.1063709419734081e-13,
103 0,
104 6.71955348219334e-8,
105 0.0000023518382601769464,
106 "2026-11-18T12:16:11+00:00"
107 ],
108 [
109 1,
110 "sparklend",
111 "0xc02ab1a5eaa8d1b114ef786d9bde108cd4364359",
112 "spUSDS",
113 "Spark USDS",
114 "0xdc035d45d973e3ec169d2276ddab16f1e407384f",
115 "USDS",
116 985614351.9778996,
117 -89226429.54541278,
118 377742853.20796555,
119 467675006.585793,
120 -89932153.37782747,
121 324875579.2726281,
122 -19366345.578194857,
123 0.034416543703190465,
124 0.034416543703190465,
125 0,
126 0.04878805570842933,
127 0.7838314363060374,
128 "2026-11-18T12:20:47+00:00"
129 ],
130 [
131 1,
132 "sparklend",
133 "0x59cd1c87501baa753d0b5b5ab5d8416a45cd71db",
134 "spWETH",
135 "Spark WETH",
136 "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
137 "WETH",
138 930467679.0845938,
139 -215945760.99878716,
140 153653192.58769408,
141 225217098.42022854,
142 -71563905.83253446,
143 77990259.62749778,
144 -64569513.92674267,
145 0.016965846081867325,
146 0.016965846081867325,
147 0,
148 0.021055571606185992,
149 0.8486140928775039,
150 "2026-11-18T12:20:11+00:00"
151 ],
152 [
153 1,
154 "sparklend",
155 "0xb3973d459df38ae57797811f2a1fd061da1bc123",
156 "spcbBTC",
157 "Spark cbBTC",
158 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
159 "cbBTC",
160 499082046.56371903,
161 147788929.72535235,
162 289276189.5277903,
163 74683428.04929125,
164 214592761.47849905,
165 8074512.38664452,
166 152671961.0372247,
167 0.000013814551012191194,
168 0.000013814551012191194,
169 0,
170 0.000447030933452985,
171 0.035762477299113776,
172 "2026-11-18T09:11:35+00:00"
173 ],
174 [
175 1,
176 "sparklend",
177 "0xe7df13b8e3d6740fe17cbe928c7334243d86c92f",
178 "spUSDT",
179 "Spark USDT",
180 "0xdac17f958d2ee523a2206206994597c13d831ec7",
181 "USDT",
182 363939663.6059296,
183 41110086.33414233,
184 96845603.44020501,
185 55993556.306763,
186 40852047.13344201,
187 79493045.30673398,
188 1730309.522914648,
189 0.039249261260648746,
190 0.039249261260648746,
191 0,
192 0.04576367311250979,
193 0.9525037772414451,
194 "2026-11-18T11:52:11+00:00"
195 ],
196 [
197 1,
198 "sparklend",
199 "0x4dedf26112b3ec8ec46e7e31ea5e123490b05b8b",
200 "spDAI",
201 "Spark DAI",
202 "0x6b175474e89094c44da98b954eedeac495271d0f",
203 "DAI",
204 258468697.08349133,
205 -2082208.093073696,
206 106016.69479506894,
207 2356960.286411474,
208 -2250943.591616405,
209 1127015.854622108,
210 -430091.08571225405,
211 0.03583993284168534,
212 0.03583993284168534,
213 0,
214 0.04980949128627398,
215 0.8005164988292403,
216 "2026-11-18T10:06:11+00:00"
217 ],
218 [
219 1,
220 "sparklend",
221 "0x4197ba364ae6698015ae5c1468f54087602715b2",
222 "spWBTC",
223 "Spark WBTC",
224 "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
225 "WBTC",
226 131542797.69287173,
227 -37996902.777450666,
228 10826543.389125032,
229 26928654.654987305,
230 -16102111.265862273,
231 0,
232 -37957266.94504996,
233 1.0148943430234518e-7,
234 1.0148943430234518e-7,
235 0,
236 0.00006486020166265672,
237 0.001945806162688695,
238 "2026-11-18T10:56:23+00:00"
239 ],
240 [
241 1,
242 "sparklend",
243 "0x779224df1c756b4edd899854f32a53e8c2b2ce5d",
244 "spPYUSD",
245 "Spark PYUSD",
246 "0x6c3ea9036406852006290770bedfcaba0e23a0e8",
247 "PYUSD",
248 100016480.14977145,
249 7275.489013493061,
250 0,
251 15316.40891771804,
252 -15316.40891771804,
253 16545661.803306835,
254 -9268087.573467165,
255 0.012998367848824636,
256 0.012998367848824636,
257 0,
258 0.04019398821651119,
259 0.3592886303351311,
260 "2026-11-18T07:57:23+00:00"
261 ],
262 [
263 1,
264 "sparklend",
265 "0xa9d4ecebd48c282a70cfd3c469d6c8f178a5738e",
266 "spLBTC",
267 "Spark LBTC",
268 "0x8236a87084f8b84306f72007f36f2618a5634494",
269 "LBTC",
270 72837617.64702176,
271 -10939542.961270988,
272 0,
273 32065.194974615606,
274 -32065.194974615606,
275 0,
276 -10939542.961270988,
277 0,
278 0,
279 0,
280 0.05,
281 0,
282 "2026-11-15T01:23:23+00:00"
283 ],
284 [
285 1,
286 "sparklend",
287 "0x377c3bd93f2a2984e1e7be6a5c22c525ed4a4815",
288 "spUSDC",
289 "Spark USDC",
290 "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
291 "USDC",
292 51469320.28860197,
293 -1064925.485181272,
294 16197381.259866001,
295 17305564.03842,
296 -1108182.778553998,
297 1599050.856656,
298 -40601.89396827668,
299 0.04349208745638978,
300 0.04349208745638978,
301 0,
302 0.049298250933611475,
303 0.9803050640850413,
304 "2026-11-18T10:54:59+00:00"
305 ]
306 ],
307 "rows": 10
308 }
309]
x402 Payment Option
This endpoint supports pay-per-use access via the x402 payment protocol (v2): pay $0.05 USDC per request using blockchain micropayments. No API key required.
Quickstart (Typescript)
bash
npm install @x402/fetch @x402/evm viem
TypeScript
1import { x402Client } from "@x402/core/client";
2import { ExactEvmScheme } from "@x402/evm/exact/client";
3import { wrapFetchWithPayment } from "@x402/fetch";
4import { privateKeyToAccount } from "viem/accounts";
5const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
6const client = new x402Client();
7client.register("eip155:*", new ExactEvmScheme(signer));
8const fetchWithPayment = wrapFetchWithPayment(fetch, client);
9const response = await fetchWithPayment(
10 "https://x402.cambrian.org/evm/lending/sparklend/pools/windows"
11);
12const data = await response.json();
2import { ExactEvmScheme } from "@x402/evm/exact/client";
3import { wrapFetchWithPayment } from "@x402/fetch";
4import { privateKeyToAccount } from "viem/accounts";
5const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
6const client = new x402Client();
7client.register("eip155:*", new ExactEvmScheme(signer));
8const fetchWithPayment = wrapFetchWithPayment(fetch, client);
9const response = await fetchWithPayment(
10 "https://x402.cambrian.org/evm/lending/sparklend/pools/windows"
11);
12const data = await response.json();
Quickstart (Python)
bash
pip install "x402[httpx]"
Python
1import asyncio, os
2from eth_account import Account
3from x402 import x402Client
4from x402.http.clients import x402HttpxClient
5from x402.mechanisms.evm import EthAccountSigner
6from x402.mechanisms.evm.exact.register import register_exact_evm_client
7async def main():
8 client = x402Client()
9 account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
10 register_exact_evm_client(client, EthAccountSigner(account))
11 async with x402HttpxClient(client) as http:
12 response = await http.get("https://x402.cambrian.org/evm/lending/sparklend/pools/windows")
13 print(response.json())
14asyncio.run(main())
2from eth_account import Account
3from x402 import x402Client
4from x402.http.clients import x402HttpxClient
5from x402.mechanisms.evm import EthAccountSigner
6from x402.mechanisms.evm.exact.register import register_exact_evm_client
7async def main():
8 client = x402Client()
9 account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
10 register_exact_evm_client(client, EthAccountSigner(account))
11 async with x402HttpxClient(client) as http:
12 response = await http.get("https://x402.cambrian.org/evm/lending/sparklend/pools/windows")
13 print(response.json())
14asyncio.run(main())
Payment Flow
- Send a normal request to the endpoint (no API key needed)
- Server returns 402 Payment Required with payment details
- The x402 SDK automatically signs a payment authorization with your wallet
- The SDK resubmits the request with the signed payment
- Server verifies payment and returns the API response
The x402 SDK handles steps 2 through 5 automatically.
Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request