tapimo 0.7.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +10 -7
  2. package/dist/ApiKey.d.ts +3 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +10 -0
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +7 -3
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +9 -2
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +20117 -19183
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +61 -4
  13. package/dist/App.js.map +1 -1
  14. package/dist/admin/App.d.ts +84 -74
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +14 -1
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +6 -2
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/organizations.d.ts +2 -0
  21. package/dist/admin/apps/organizations.d.ts.map +1 -1
  22. package/dist/admin/apps/verified-tokens.d.ts +11 -11
  23. package/dist/admin/ui.generated.d.ts +1 -1
  24. package/dist/admin/ui.generated.js +67 -67
  25. package/dist/admin/ui.generated.js.map +1 -1
  26. package/dist/analytics/Analytics.d.ts +2 -0
  27. package/dist/analytics/Analytics.d.ts.map +1 -1
  28. package/dist/analytics/Analytics.js +3 -0
  29. package/dist/analytics/Analytics.js.map +1 -1
  30. package/dist/apps/data/App.d.ts +11696 -13937
  31. package/dist/apps/data/App.d.ts.map +1 -1
  32. package/dist/apps/data/App.js +4 -8
  33. package/dist/apps/data/App.js.map +1 -1
  34. package/dist/apps/data/routes/activities.d.ts +271 -271
  35. package/dist/apps/data/routes/addresses.d.ts +398 -167
  36. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  37. package/dist/apps/data/routes/balances.d.ts +278 -8
  38. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  39. package/dist/apps/data/routes/balances.js +114 -2
  40. package/dist/apps/data/routes/balances.js.map +1 -1
  41. package/dist/apps/data/routes/blocks.d.ts +123 -123
  42. package/dist/apps/data/routes/coingecko.d.ts +170 -170
  43. package/dist/apps/data/routes/earn.d.ts +498 -6
  44. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  45. package/dist/apps/data/routes/earn.js +876 -4
  46. package/dist/apps/data/routes/earn.js.map +1 -1
  47. package/dist/apps/data/routes/exchanges.d.ts +10 -10
  48. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  49. package/dist/apps/data/routes/indexer.d.ts +6 -6
  50. package/dist/apps/data/routes/indexer.js +4 -1
  51. package/dist/apps/data/routes/indexer.js.map +1 -1
  52. package/dist/apps/data/routes/receipts.d.ts +235 -235
  53. package/dist/apps/data/routes/rpc.d.ts +31 -31
  54. package/dist/apps/data/routes/rpc.js +4 -1
  55. package/dist/apps/data/routes/rpc.js.map +1 -1
  56. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  57. package/dist/apps/data/routes/tokens.d.ts +449 -449
  58. package/dist/apps/data/routes/transactions.d.ts +2 -2
  59. package/dist/apps/data/routes/transfers.d.ts +81 -81
  60. package/dist/apps/data/routes/valuation.d.ts +1 -1
  61. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  62. package/dist/apps/data/routes/webhooks.d.ts +9 -9
  63. package/dist/apps/data/routes/zones.d.ts +14 -14
  64. package/dist/apps/funding/Access.d.ts +16 -0
  65. package/dist/apps/funding/Access.d.ts.map +1 -0
  66. package/dist/apps/funding/Access.js +22 -0
  67. package/dist/apps/funding/Access.js.map +1 -0
  68. package/dist/apps/{data/routes/funding.d.ts → funding/App.d.ts} +1640 -3217
  69. package/dist/apps/funding/App.d.ts.map +1 -0
  70. package/dist/apps/funding/App.js +61 -0
  71. package/dist/apps/funding/App.js.map +1 -0
  72. package/dist/apps/funding/Inventory.d.ts +5 -0
  73. package/dist/apps/funding/Inventory.d.ts.map +1 -0
  74. package/dist/apps/funding/Inventory.js +25 -0
  75. package/dist/apps/funding/Inventory.js.map +1 -0
  76. package/dist/apps/funding/ProviderAttempts.d.ts +5 -0
  77. package/dist/apps/funding/ProviderAttempts.d.ts.map +1 -0
  78. package/dist/apps/funding/ProviderAttempts.js +24 -0
  79. package/dist/apps/funding/ProviderAttempts.js.map +1 -0
  80. package/dist/apps/funding/index.d.ts +2 -0
  81. package/dist/apps/funding/index.d.ts.map +1 -0
  82. package/dist/apps/funding/index.js +2 -0
  83. package/dist/apps/funding/index.js.map +1 -0
  84. package/dist/apps/funding/routes/chains.d.ts +169 -0
  85. package/dist/apps/funding/routes/chains.d.ts.map +1 -0
  86. package/dist/apps/funding/routes/chains.js +80 -0
  87. package/dist/apps/funding/routes/chains.js.map +1 -0
  88. package/dist/apps/funding/routes/deposit-addresses.d.ts +1997 -0
  89. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -0
  90. package/dist/apps/funding/routes/deposit-addresses.js +778 -0
  91. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -0
  92. package/dist/apps/funding/routes/providers.d.ts +91 -0
  93. package/dist/apps/funding/routes/providers.d.ts.map +1 -0
  94. package/dist/apps/funding/routes/providers.js +56 -0
  95. package/dist/apps/funding/routes/providers.js.map +1 -0
  96. package/dist/apps/funding/routes/quotes.d.ts +426 -0
  97. package/dist/apps/funding/routes/quotes.d.ts.map +1 -0
  98. package/dist/apps/funding/routes/quotes.js +188 -0
  99. package/dist/apps/funding/routes/quotes.js.map +1 -0
  100. package/dist/apps/funding/routes/transfers.d.ts +1999 -0
  101. package/dist/apps/funding/routes/transfers.d.ts.map +1 -0
  102. package/dist/apps/funding/routes/transfers.js +614 -0
  103. package/dist/apps/funding/routes/transfers.js.map +1 -0
  104. package/dist/apps/index.d.ts +1 -0
  105. package/dist/apps/index.d.ts.map +1 -1
  106. package/dist/apps/index.js +1 -0
  107. package/dist/apps/index.js.map +1 -1
  108. package/dist/apps/management/App.d.ts +430 -165
  109. package/dist/apps/management/App.d.ts.map +1 -1
  110. package/dist/apps/management/routes/api-keys.d.ts +298 -21
  111. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  112. package/dist/apps/management/routes/api-keys.js +75 -1
  113. package/dist/apps/management/routes/api-keys.js.map +1 -1
  114. package/dist/apps/management/routes/billing.d.ts +6 -6
  115. package/dist/apps/management/routes/faucet.d.ts +35 -35
  116. package/dist/apps/management/routes/invitations.d.ts +122 -122
  117. package/dist/apps/management/routes/invite-links.d.ts +38 -38
  118. package/dist/apps/management/routes/members.d.ts +69 -69
  119. package/dist/apps/management/routes/orgs.d.ts +99 -99
  120. package/dist/apps/management/routes/projects.d.ts +25 -25
  121. package/dist/apps/management/routes/scopes.d.ts +1 -1
  122. package/dist/apps/management/routes/usage.d.ts +72 -72
  123. package/dist/apps/management/routes/verified-token-requests.d.ts +77 -77
  124. package/dist/apps/management/routes/webhooks.d.ts +128 -128
  125. package/dist/apps/mcp.d.ts +2 -3
  126. package/dist/apps/mcp.d.ts.map +1 -1
  127. package/dist/apps/mcp.js +16 -14
  128. package/dist/apps/mcp.js.map +1 -1
  129. package/dist/apps/metadata.d.ts +4 -0
  130. package/dist/apps/metadata.d.ts.map +1 -1
  131. package/dist/apps/metadata.js +10 -0
  132. package/dist/apps/metadata.js.map +1 -1
  133. package/dist/apps/mpp/App.d.ts +44 -44
  134. package/dist/cloudflare.d.ts +50 -0
  135. package/dist/cloudflare.d.ts.map +1 -1
  136. package/dist/cloudflare.js +178 -0
  137. package/dist/cloudflare.js.map +1 -1
  138. package/dist/db/Db.d.ts +2 -0
  139. package/dist/db/Db.d.ts.map +1 -1
  140. package/dist/db/Db.js +45 -0
  141. package/dist/db/Db.js.map +1 -1
  142. package/dist/db/Schema.d.ts +12 -0
  143. package/dist/db/Schema.d.ts.map +1 -1
  144. package/dist/db/Schema.js +20 -0
  145. package/dist/db/Schema.js.map +1 -1
  146. package/dist/db/tables/fundingDepositAddresses.d.ts +13 -0
  147. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  148. package/dist/db/tables/fundingDepositAddresses.js +12 -0
  149. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  150. package/dist/db/tables/fundingDepositRequestObservations.d.ts +45 -0
  151. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +1 -0
  152. package/dist/db/tables/fundingDepositRequestObservations.js +46 -0
  153. package/dist/db/tables/fundingDepositRequestObservations.js.map +1 -0
  154. package/dist/db/tables/fundingDeposits.d.ts +74 -1
  155. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  156. package/dist/db/tables/fundingDeposits.js +126 -0
  157. package/dist/db/tables/fundingDeposits.js.map +1 -1
  158. package/dist/internal/Auth.d.ts +15 -11
  159. package/dist/internal/Auth.d.ts.map +1 -1
  160. package/dist/internal/Auth.js +52 -17
  161. package/dist/internal/Auth.js.map +1 -1
  162. package/dist/internal/Cache.js +1 -1
  163. package/dist/internal/Cache.js.map +1 -1
  164. package/dist/internal/EdgeCache.d.ts +2 -2
  165. package/dist/internal/EdgeCache.d.ts.map +1 -1
  166. package/dist/internal/EdgeCache.js +10 -4
  167. package/dist/internal/EdgeCache.js.map +1 -1
  168. package/dist/internal/IpAllowlist.d.ts +15 -0
  169. package/dist/internal/IpAllowlist.d.ts.map +1 -0
  170. package/dist/internal/IpAllowlist.js +27 -0
  171. package/dist/internal/IpAllowlist.js.map +1 -0
  172. package/dist/internal/OpenApi.d.ts +1 -1
  173. package/dist/internal/OpenApi.js +1 -1
  174. package/dist/internal/OpenApi.js.map +1 -1
  175. package/dist/internal/Tidx.d.ts +6 -0
  176. package/dist/internal/Tidx.d.ts.map +1 -1
  177. package/dist/internal/Tidx.js +13 -3
  178. package/dist/internal/Tidx.js.map +1 -1
  179. package/dist/internal/Viem.d.ts +8 -0
  180. package/dist/internal/Viem.d.ts.map +1 -1
  181. package/dist/internal/Viem.js +12 -5
  182. package/dist/internal/Viem.js.map +1 -1
  183. package/dist/internal/funding/Deposit.d.ts +42 -0
  184. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  185. package/dist/internal/funding/Deposit.js +37 -5
  186. package/dist/internal/funding/Deposit.js.map +1 -1
  187. package/dist/internal/funding/Evidence.d.ts +1 -5
  188. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  189. package/dist/internal/funding/Evidence.js +4 -3
  190. package/dist/internal/funding/Evidence.js.map +1 -1
  191. package/dist/internal/funding/Provider.d.ts +102 -0
  192. package/dist/internal/funding/Provider.d.ts.map +1 -1
  193. package/dist/internal/funding/Provider.js +5 -0
  194. package/dist/internal/funding/Provider.js.map +1 -1
  195. package/dist/internal/funding/Reconciliation.d.ts +16 -2
  196. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  197. package/dist/internal/funding/Reconciliation.js +348 -54
  198. package/dist/internal/funding/Reconciliation.js.map +1 -1
  199. package/dist/internal/funding/SourceObservation.d.ts +108 -0
  200. package/dist/internal/funding/SourceObservation.d.ts.map +1 -0
  201. package/dist/internal/funding/SourceObservation.js +143 -0
  202. package/dist/internal/funding/SourceObservation.js.map +1 -0
  203. package/dist/internal/funding/Subsidy.d.ts +2 -2
  204. package/dist/internal/funding/Subsidy.d.ts.map +1 -1
  205. package/dist/internal/funding/Subsidy.js +1 -1
  206. package/dist/internal/funding/Subsidy.js.map +1 -1
  207. package/dist/internal/funding/index.d.ts +1 -0
  208. package/dist/internal/funding/index.d.ts.map +1 -1
  209. package/dist/internal/funding/index.js +1 -0
  210. package/dist/internal/funding/index.js.map +1 -1
  211. package/dist/internal/funding/providers/relay.d.ts +43 -1
  212. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  213. package/dist/internal/funding/providers/relay.js +438 -27
  214. package/dist/internal/funding/providers/relay.js.map +1 -1
  215. package/package.json +3 -3
  216. package/src/ApiKey.test.ts +35 -0
  217. package/src/ApiKey.ts +27 -0
  218. package/src/ApiKeys.test.ts +29 -0
  219. package/src/ApiKeys.ts +11 -3
  220. package/src/App.test.ts +55 -5
  221. package/src/App.ts +79 -5
  222. package/src/Client.test-d.ts +203 -28
  223. package/src/admin/apps/api-keys.test.ts +25 -1
  224. package/src/admin/apps/api-keys.ts +6 -2
  225. package/src/admin/ui.generated.ts +67 -67
  226. package/src/analytics/Analytics.ts +4 -0
  227. package/src/apps/composition.test.ts +130 -3
  228. package/src/apps/data/App.test.ts +0 -12
  229. package/src/apps/data/App.ts +4 -8
  230. package/src/apps/data/routes/balances.test.ts +42 -0
  231. package/src/apps/data/routes/balances.ts +218 -85
  232. package/src/apps/data/routes/earn.test.ts +363 -0
  233. package/src/apps/data/routes/earn.ts +1141 -3
  234. package/src/apps/data/routes/indexer.ts +2 -1
  235. package/src/apps/data/routes/rpc.ts +2 -0
  236. package/src/apps/data/routes/tokens.test.ts +6 -8
  237. package/src/apps/funding/Access.ts +26 -0
  238. package/src/apps/funding/App.test.ts +78 -0
  239. package/src/apps/funding/App.ts +78 -0
  240. package/src/apps/funding/Inventory.ts +30 -0
  241. package/src/apps/funding/ProviderAttempts.ts +26 -0
  242. package/src/apps/funding/index.ts +1 -0
  243. package/src/apps/funding/routes/chains.test.ts +78 -0
  244. package/src/apps/funding/routes/chains.ts +101 -0
  245. package/src/apps/funding/routes/deposit-addresses.test.ts +1649 -0
  246. package/src/apps/funding/routes/deposit-addresses.ts +932 -0
  247. package/src/apps/funding/routes/providers.test.ts +165 -0
  248. package/src/apps/funding/routes/providers.ts +73 -0
  249. package/src/apps/funding/routes/quotes.test.ts +511 -0
  250. package/src/apps/funding/routes/quotes.ts +205 -0
  251. package/src/apps/funding/routes/transfers.test.ts +1236 -0
  252. package/src/apps/funding/routes/transfers.ts +704 -0
  253. package/src/apps/index.ts +1 -0
  254. package/src/apps/management/routes/api-keys.test.ts +98 -0
  255. package/src/apps/management/routes/api-keys.ts +96 -1
  256. package/src/apps/mcp.test.ts +17 -2
  257. package/src/apps/mcp.ts +18 -13
  258. package/src/apps/metadata.ts +12 -0
  259. package/src/apps/mpp/internal/Policy.test.ts +7 -1
  260. package/src/cloudflare.ts +279 -0
  261. package/src/db/Db.ts +71 -0
  262. package/src/db/Schema.ts +24 -0
  263. package/src/db/tables/fundingDepositAddresses.ts +28 -0
  264. package/src/db/tables/fundingDepositRequestObservations.test.ts +106 -0
  265. package/src/db/tables/fundingDepositRequestObservations.ts +99 -0
  266. package/src/db/tables/fundingDeposits.test.ts +239 -0
  267. package/src/db/tables/fundingDeposits.ts +214 -1
  268. package/src/internal/Auth.test.ts +205 -5
  269. package/src/internal/Auth.ts +63 -19
  270. package/src/internal/Cache.test.ts +37 -3
  271. package/src/internal/Cache.ts +1 -1
  272. package/src/internal/EdgeCache.test.ts +7 -7
  273. package/src/internal/EdgeCache.ts +13 -4
  274. package/src/internal/IpAllowlist.test.ts +52 -0
  275. package/src/internal/IpAllowlist.ts +39 -0
  276. package/src/internal/Log.test.ts +7 -1
  277. package/src/internal/OpenApi.ts +1 -1
  278. package/src/internal/Tidx.test.ts +28 -0
  279. package/src/internal/Tidx.ts +19 -3
  280. package/src/internal/Viem.test.ts +28 -0
  281. package/src/internal/Viem.ts +21 -5
  282. package/src/internal/funding/Deposit.ts +74 -5
  283. package/src/internal/funding/Evidence.test.ts +2 -2
  284. package/src/internal/funding/Evidence.ts +4 -9
  285. package/src/internal/funding/Provider.ts +115 -0
  286. package/src/internal/funding/Reconciliation.local.test.ts +7 -0
  287. package/src/internal/funding/Reconciliation.test.ts +1364 -109
  288. package/src/internal/funding/Reconciliation.ts +467 -88
  289. package/src/internal/funding/SourceObservation.test.ts +301 -0
  290. package/src/internal/funding/SourceObservation.ts +267 -0
  291. package/src/internal/funding/Subsidy.ts +2 -2
  292. package/src/internal/funding/index.test.ts +1 -0
  293. package/src/internal/funding/index.ts +1 -0
  294. package/src/internal/funding/providers/relay.test.ts +94 -4
  295. package/src/internal/funding/providers/relay.ts +533 -27
  296. package/dist/apps/data/routes/funding.d.ts.map +0 -1
  297. package/dist/apps/data/routes/funding.js +0 -1557
  298. package/dist/apps/data/routes/funding.js.map +0 -1
  299. package/src/apps/data/routes/funding.test.ts +0 -2994
  300. package/src/apps/data/routes/funding.ts +0 -1821
@@ -255,9 +255,18 @@ export declare namespace schema {
255
255
  export declare function blocks(): import("hono/hono-base").HonoBase<App.Environment, {
256
256
  "/v1/blocks": {
257
257
  $get: {
258
- output: null;
259
- outputFormat: "body";
260
- status: 402;
258
+ output: {
259
+ data: {
260
+ hash: `0x${string}`;
261
+ id: `0x${string}`;
262
+ number: number;
263
+ timestamp: string;
264
+ transactionCount: number;
265
+ }[];
266
+ nextCursor: string | null;
267
+ };
268
+ outputFormat: "json";
269
+ status: 200;
261
270
  input: {
262
271
  query?: {
263
272
  chainId?: string | string[];
@@ -270,14 +279,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
270
279
  } | {
271
280
  output: {
272
281
  error: {
273
- code: "upstream_error";
282
+ code: "api_key_malformed";
274
283
  details?: readonly Response.error.Detail[] | undefined;
275
284
  message: string;
276
285
  };
277
286
  requestId: string;
278
287
  };
279
288
  outputFormat: "json";
280
- status: 502;
289
+ status: 400;
281
290
  input: {
282
291
  query?: {
283
292
  chainId?: string | string[];
@@ -290,7 +299,7 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
290
299
  } | {
291
300
  output: {
292
301
  error: {
293
- code: "api_key_malformed";
302
+ code: "query_invalid";
294
303
  details?: readonly Response.error.Detail[] | undefined;
295
304
  message: string;
296
305
  };
@@ -328,16 +337,9 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
328
337
  } | undefined;
329
338
  };
330
339
  } | {
331
- output: {
332
- error: {
333
- code: "api_key_forbidden";
334
- details?: readonly Response.error.Detail[] | undefined;
335
- message: string;
336
- };
337
- requestId: string;
338
- };
339
- outputFormat: "json";
340
- status: 403;
340
+ output: null;
341
+ outputFormat: "body";
342
+ status: 402;
341
343
  input: {
342
344
  query?: {
343
345
  chainId?: string | string[];
@@ -350,14 +352,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
350
352
  } | {
351
353
  output: {
352
354
  error: {
353
- code: "payment_required" | "rate_limit_exceeded";
355
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
354
356
  details?: readonly Response.error.Detail[] | undefined;
355
357
  message: string;
356
358
  };
357
359
  requestId: string;
358
360
  };
359
361
  outputFormat: "json";
360
- status: 429;
362
+ status: 403;
361
363
  input: {
362
364
  query?: {
363
365
  chainId?: string | string[];
@@ -370,14 +372,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
370
372
  } | {
371
373
  output: {
372
374
  error: {
373
- code: "query_invalid";
375
+ code: "payment_required" | "rate_limit_exceeded";
374
376
  details?: readonly Response.error.Detail[] | undefined;
375
377
  message: string;
376
378
  };
377
379
  requestId: string;
378
380
  };
379
381
  outputFormat: "json";
380
- status: 400;
382
+ status: 429;
381
383
  input: {
382
384
  query?: {
383
385
  chainId?: string | string[];
@@ -389,17 +391,15 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
389
391
  };
390
392
  } | {
391
393
  output: {
392
- data: {
393
- hash: `0x${string}`;
394
- id: `0x${string}`;
395
- number: number;
396
- timestamp: string;
397
- transactionCount: number;
398
- }[];
399
- nextCursor: string | null;
394
+ error: {
395
+ code: "upstream_error";
396
+ details?: readonly Response.error.Detail[] | undefined;
397
+ message: string;
398
+ };
399
+ requestId: string;
400
400
  };
401
401
  outputFormat: "json";
402
- status: 200;
402
+ status: 502;
403
403
  input: {
404
404
  query?: {
405
405
  chainId?: string | string[];
@@ -414,9 +414,51 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
414
414
  } & {
415
415
  "/v1/blocks/:block": {
416
416
  $get: {
417
- output: null;
418
- outputFormat: "body";
419
- status: 402;
417
+ output: {
418
+ baseFeePerGas: string | null;
419
+ gasLimit: number;
420
+ gasUsed: number;
421
+ hash: `0x${string}`;
422
+ id: `0x${string}`;
423
+ meta: {
424
+ rpc: {
425
+ [x: string]: import("hono/utils/types").JSONValue;
426
+ baseFeePerGas?: `0x${string}` | null | undefined;
427
+ difficulty?: `0x${string}` | undefined;
428
+ extraData?: `0x${string}` | undefined;
429
+ gasLimit: `0x${string}`;
430
+ gasUsed: `0x${string}`;
431
+ hash: `0x${string}` | null;
432
+ logsBloom?: `0x${string}` | null | undefined;
433
+ miner: `0x${string}`;
434
+ mixHash?: `0x${string}` | undefined;
435
+ nonce?: `0x${string}` | null | undefined;
436
+ number: `0x${string}` | null;
437
+ parentHash: `0x${string}`;
438
+ receiptsRoot: `0x${string}`;
439
+ sha3Uncles?: `0x${string}` | undefined;
440
+ size: `0x${string}`;
441
+ stateRoot: `0x${string}`;
442
+ timestamp: `0x${string}`;
443
+ totalDifficulty?: `0x${string}` | undefined;
444
+ transactions: `0x${string}`[];
445
+ transactionsRoot: `0x${string}`;
446
+ uncles?: `0x${string}`[] | undefined;
447
+ withdrawals?: {
448
+ [x: string]: import("hono/utils/types").JSONValue;
449
+ }[] | undefined;
450
+ withdrawalsRoot?: `0x${string}` | undefined;
451
+ };
452
+ };
453
+ miner: `0x${string}`;
454
+ number: number;
455
+ parentHash: `0x${string}`;
456
+ size: number;
457
+ timestamp: string;
458
+ transactionCount: number;
459
+ };
460
+ outputFormat: "json";
461
+ status: 200;
420
462
  input: {
421
463
  param: {
422
464
  block: string;
@@ -429,14 +471,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
429
471
  } | {
430
472
  output: {
431
473
  error: {
432
- code: "upstream_error";
474
+ code: "api_key_malformed";
433
475
  details?: readonly Response.error.Detail[] | undefined;
434
476
  message: string;
435
477
  };
436
478
  requestId: string;
437
479
  };
438
480
  outputFormat: "json";
439
- status: 502;
481
+ status: 400;
440
482
  input: {
441
483
  param: {
442
484
  block: string;
@@ -449,7 +491,7 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
449
491
  } | {
450
492
  output: {
451
493
  error: {
452
- code: "api_key_malformed";
494
+ code: "query_invalid";
453
495
  details?: readonly Response.error.Detail[] | undefined;
454
496
  message: string;
455
497
  };
@@ -469,14 +511,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
469
511
  } | {
470
512
  output: {
471
513
  error: {
472
- code: "api_key_invalid" | "api_key_missing";
514
+ code: "block_invalid";
473
515
  details?: readonly Response.error.Detail[] | undefined;
474
516
  message: string;
475
517
  };
476
518
  requestId: string;
477
519
  };
478
520
  outputFormat: "json";
479
- status: 401;
521
+ status: 400;
480
522
  input: {
481
523
  param: {
482
524
  block: string;
@@ -489,14 +531,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
489
531
  } | {
490
532
  output: {
491
533
  error: {
492
- code: "api_key_forbidden";
534
+ code: "api_key_invalid" | "api_key_missing";
493
535
  details?: readonly Response.error.Detail[] | undefined;
494
536
  message: string;
495
537
  };
496
538
  requestId: string;
497
539
  };
498
540
  outputFormat: "json";
499
- status: 403;
541
+ status: 401;
500
542
  input: {
501
543
  param: {
502
544
  block: string;
@@ -507,16 +549,9 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
507
549
  } | undefined;
508
550
  };
509
551
  } | {
510
- output: {
511
- error: {
512
- code: "payment_required" | "rate_limit_exceeded";
513
- details?: readonly Response.error.Detail[] | undefined;
514
- message: string;
515
- };
516
- requestId: string;
517
- };
518
- outputFormat: "json";
519
- status: 429;
552
+ output: null;
553
+ outputFormat: "body";
554
+ status: 402;
520
555
  input: {
521
556
  param: {
522
557
  block: string;
@@ -529,14 +564,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
529
564
  } | {
530
565
  output: {
531
566
  error: {
532
- code: "query_invalid";
567
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
533
568
  details?: readonly Response.error.Detail[] | undefined;
534
569
  message: string;
535
570
  };
536
571
  requestId: string;
537
572
  };
538
573
  outputFormat: "json";
539
- status: 400;
574
+ status: 403;
540
575
  input: {
541
576
  param: {
542
577
  block: string;
@@ -549,14 +584,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
549
584
  } | {
550
585
  output: {
551
586
  error: {
552
- code: "block_invalid";
587
+ code: "block_not_found";
553
588
  details?: readonly Response.error.Detail[] | undefined;
554
589
  message: string;
555
590
  };
556
591
  requestId: string;
557
592
  };
558
593
  outputFormat: "json";
559
- status: 400;
594
+ status: 404;
560
595
  input: {
561
596
  param: {
562
597
  block: string;
@@ -569,14 +604,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
569
604
  } | {
570
605
  output: {
571
606
  error: {
572
- code: "block_not_found";
607
+ code: "payment_required" | "rate_limit_exceeded";
573
608
  details?: readonly Response.error.Detail[] | undefined;
574
609
  message: string;
575
610
  };
576
611
  requestId: string;
577
612
  };
578
613
  outputFormat: "json";
579
- status: 404;
614
+ status: 429;
580
615
  input: {
581
616
  param: {
582
617
  block: string;
@@ -588,50 +623,15 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
588
623
  };
589
624
  } | {
590
625
  output: {
591
- baseFeePerGas: string | null;
592
- gasLimit: number;
593
- gasUsed: number;
594
- hash: `0x${string}`;
595
- id: `0x${string}`;
596
- meta: {
597
- rpc: {
598
- [x: string]: import("hono/utils/types").JSONValue;
599
- baseFeePerGas?: `0x${string}` | null | undefined;
600
- difficulty?: `0x${string}` | undefined;
601
- extraData?: `0x${string}` | undefined;
602
- gasLimit: `0x${string}`;
603
- gasUsed: `0x${string}`;
604
- hash: `0x${string}` | null;
605
- logsBloom?: `0x${string}` | null | undefined;
606
- miner: `0x${string}`;
607
- mixHash?: `0x${string}` | undefined;
608
- nonce?: `0x${string}` | null | undefined;
609
- number: `0x${string}` | null;
610
- parentHash: `0x${string}`;
611
- receiptsRoot: `0x${string}`;
612
- sha3Uncles?: `0x${string}` | undefined;
613
- size: `0x${string}`;
614
- stateRoot: `0x${string}`;
615
- timestamp: `0x${string}`;
616
- totalDifficulty?: `0x${string}` | undefined;
617
- transactions: `0x${string}`[];
618
- transactionsRoot: `0x${string}`;
619
- uncles?: `0x${string}`[] | undefined;
620
- withdrawals?: {
621
- [x: string]: import("hono/utils/types").JSONValue;
622
- }[] | undefined;
623
- withdrawalsRoot?: `0x${string}` | undefined;
624
- };
626
+ error: {
627
+ code: "upstream_error";
628
+ details?: readonly Response.error.Detail[] | undefined;
629
+ message: string;
625
630
  };
626
- miner: `0x${string}`;
627
- number: number;
628
- parentHash: `0x${string}`;
629
- size: number;
630
- timestamp: string;
631
- transactionCount: number;
631
+ requestId: string;
632
632
  };
633
633
  outputFormat: "json";
634
- status: 200;
634
+ status: 502;
635
635
  input: {
636
636
  param: {
637
637
  block: string;
@@ -659,9 +659,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
659
659
  export declare function blocksByTimestampCompat(): import("hono/hono-base").HonoBase<App.Environment, {
660
660
  "/chains/:chainId/blocks/by-timestamp": {
661
661
  $get: {
662
- output: null;
663
- outputFormat: "body";
664
- status: 402;
662
+ output: {
663
+ block: {
664
+ blockNumber: number;
665
+ blockTimestamp: number;
666
+ };
667
+ };
668
+ outputFormat: "json";
669
+ status: 200;
665
670
  input: {
666
671
  param: {
667
672
  chainId: string;
@@ -675,7 +680,7 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
675
680
  } | {
676
681
  output: {
677
682
  error: {
678
- code: "chain_id_unsupported";
683
+ code: "api_key_malformed";
679
684
  details?: readonly Response.error.Detail[] | undefined;
680
685
  message: string;
681
686
  };
@@ -696,14 +701,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
696
701
  } | {
697
702
  output: {
698
703
  error: {
699
- code: "upstream_error";
704
+ code: "query_invalid";
700
705
  details?: readonly Response.error.Detail[] | undefined;
701
706
  message: string;
702
707
  };
703
708
  requestId: string;
704
709
  };
705
710
  outputFormat: "json";
706
- status: 502;
711
+ status: 400;
707
712
  input: {
708
713
  param: {
709
714
  chainId: string;
@@ -717,7 +722,7 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
717
722
  } | {
718
723
  output: {
719
724
  error: {
720
- code: "api_key_malformed";
725
+ code: "chain_id_unsupported";
721
726
  details?: readonly Response.error.Detail[] | undefined;
722
727
  message: string;
723
728
  };
@@ -757,16 +762,9 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
757
762
  };
758
763
  };
759
764
  } | {
760
- output: {
761
- error: {
762
- code: "api_key_forbidden";
763
- details?: readonly Response.error.Detail[] | undefined;
764
- message: string;
765
- };
766
- requestId: string;
767
- };
768
- outputFormat: "json";
769
- status: 403;
765
+ output: null;
766
+ outputFormat: "body";
767
+ status: 402;
770
768
  input: {
771
769
  param: {
772
770
  chainId: string;
@@ -780,14 +778,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
780
778
  } | {
781
779
  output: {
782
780
  error: {
783
- code: "payment_required" | "rate_limit_exceeded";
781
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
784
782
  details?: readonly Response.error.Detail[] | undefined;
785
783
  message: string;
786
784
  };
787
785
  requestId: string;
788
786
  };
789
787
  outputFormat: "json";
790
- status: 429;
788
+ status: 403;
791
789
  input: {
792
790
  param: {
793
791
  chainId: string;
@@ -801,14 +799,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
801
799
  } | {
802
800
  output: {
803
801
  error: {
804
- code: "query_invalid";
802
+ code: "block_not_found";
805
803
  details?: readonly Response.error.Detail[] | undefined;
806
804
  message: string;
807
805
  };
808
806
  requestId: string;
809
807
  };
810
808
  outputFormat: "json";
811
- status: 400;
809
+ status: 404;
812
810
  input: {
813
811
  param: {
814
812
  chainId: string;
@@ -822,14 +820,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
822
820
  } | {
823
821
  output: {
824
822
  error: {
825
- code: "block_not_found";
823
+ code: "payment_required" | "rate_limit_exceeded";
826
824
  details?: readonly Response.error.Detail[] | undefined;
827
825
  message: string;
828
826
  };
829
827
  requestId: string;
830
828
  };
831
829
  outputFormat: "json";
832
- status: 404;
830
+ status: 429;
833
831
  input: {
834
832
  param: {
835
833
  chainId: string;
@@ -842,13 +840,15 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
842
840
  };
843
841
  } | {
844
842
  output: {
845
- block: {
846
- blockNumber: number;
847
- blockTimestamp: number;
843
+ error: {
844
+ code: "upstream_error";
845
+ details?: readonly Response.error.Detail[] | undefined;
846
+ message: string;
848
847
  };
848
+ requestId: string;
849
849
  };
850
850
  outputFormat: "json";
851
- status: 200;
851
+ status: 502;
852
852
  input: {
853
853
  param: {
854
854
  chainId: string;