tapimo 0.5.0 → 0.5.2

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 (197) hide show
  1. package/dist/App.d.ts +4854 -4829
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +20 -2
  4. package/dist/App.js.map +1 -1
  5. package/dist/Assets.js +3 -3
  6. package/dist/Assets.js.map +1 -1
  7. package/dist/Scope.d.ts.map +1 -1
  8. package/dist/Scope.js +1 -2
  9. package/dist/Scope.js.map +1 -1
  10. package/dist/Webhooks.d.ts +1 -1
  11. package/dist/Webhooks.d.ts.map +1 -1
  12. package/dist/Webhooks.js +5 -10
  13. package/dist/Webhooks.js.map +1 -1
  14. package/dist/admin/App.d.ts +6 -34
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +3 -3
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +4 -1
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/scopes.d.ts +6 -34
  21. package/dist/admin/apps/scopes.d.ts.map +1 -1
  22. package/dist/admin/apps/scopes.js +2 -2
  23. package/dist/admin/apps/scopes.js.map +1 -1
  24. package/dist/admin/apps/verified-tokens.d.ts +2 -2
  25. package/dist/admin/ui.generated.d.ts +1 -1
  26. package/dist/admin/ui.generated.js +33 -33
  27. package/dist/admin/ui.generated.js.map +1 -1
  28. package/dist/apps/data/App.d.ts +1398 -1405
  29. package/dist/apps/data/App.d.ts.map +1 -1
  30. package/dist/apps/data/App.js +25 -38
  31. package/dist/apps/data/App.js.map +1 -1
  32. package/dist/apps/data/FundingQuoteProviders.d.ts +108 -3
  33. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  34. package/dist/apps/data/FundingQuoteProviders.js +409 -2
  35. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  36. package/dist/apps/data/routes/activities.d.ts +245 -245
  37. package/dist/apps/data/routes/blocks.d.ts +123 -123
  38. package/dist/apps/data/routes/funding.d.ts +236 -146
  39. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  40. package/dist/apps/data/routes/funding.js +23 -12
  41. package/dist/apps/data/routes/funding.js.map +1 -1
  42. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  43. package/dist/apps/data/routes/indexer.js +9 -2
  44. package/dist/apps/data/routes/indexer.js.map +1 -1
  45. package/dist/apps/data/routes/rpc.d.ts +31 -31
  46. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  47. package/dist/apps/data/routes/transactions.d.ts +281 -281
  48. package/dist/apps/data/routes/transfers.d.ts +66 -73
  49. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  50. package/dist/apps/data/routes/transfers.js +21 -27
  51. package/dist/apps/data/routes/transfers.js.map +1 -1
  52. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  53. package/dist/apps/data/routes/webhooks.d.ts +35 -35
  54. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  55. package/dist/apps/data/routes/webhooks.js +176 -42
  56. package/dist/apps/data/routes/webhooks.js.map +1 -1
  57. package/dist/apps/management/App.d.ts +520 -504
  58. package/dist/apps/management/App.d.ts.map +1 -1
  59. package/dist/apps/management/Billing.d.ts.map +1 -1
  60. package/dist/apps/management/Billing.js +5 -4
  61. package/dist/apps/management/Billing.js.map +1 -1
  62. package/dist/apps/management/routes/api-keys.d.ts +120 -120
  63. package/dist/apps/management/routes/billing.d.ts +211 -211
  64. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  65. package/dist/apps/management/routes/billing.js +1 -1
  66. package/dist/apps/management/routes/billing.js.map +1 -1
  67. package/dist/apps/management/routes/invitations.d.ts +72 -72
  68. package/dist/apps/management/routes/invite-links.d.ts +159 -159
  69. package/dist/apps/management/routes/me.d.ts +17 -17
  70. package/dist/apps/management/routes/members.d.ts +80 -80
  71. package/dist/apps/management/routes/orgs.d.ts +59 -43
  72. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  73. package/dist/apps/management/routes/orgs.js +18 -1
  74. package/dist/apps/management/routes/orgs.js.map +1 -1
  75. package/dist/apps/management/routes/projects.d.ts +109 -109
  76. package/dist/apps/management/routes/scopes.d.ts +11 -11
  77. package/dist/apps/management/routes/usage.d.ts +79 -79
  78. package/dist/apps/mcp.js +2 -2
  79. package/dist/apps/mcp.js.map +1 -1
  80. package/dist/apps/relay/App.d.ts +2 -2
  81. package/dist/apps/relay/App.js +2 -2
  82. package/dist/apps/relay/Sponsorships.d.ts +3 -0
  83. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  84. package/dist/apps/relay/Sponsorships.js +15 -1
  85. package/dist/apps/relay/Sponsorships.js.map +1 -1
  86. package/dist/db/Db.d.ts.map +1 -1
  87. package/dist/db/Db.js +4 -0
  88. package/dist/db/Db.js.map +1 -1
  89. package/dist/db/Schema.js +1 -1
  90. package/dist/db/Schema.js.map +1 -1
  91. package/dist/db/tables/organizations.d.ts +6 -0
  92. package/dist/db/tables/organizations.d.ts.map +1 -1
  93. package/dist/db/tables/organizations.js +26 -0
  94. package/dist/db/tables/organizations.js.map +1 -1
  95. package/dist/db/tables/requestUsage.d.ts +2 -11
  96. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  97. package/dist/db/tables/requestUsage.js +1 -20
  98. package/dist/db/tables/requestUsage.js.map +1 -1
  99. package/dist/db/tables/sponsoredTransactions.d.ts +2 -1
  100. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  101. package/dist/db/tables/sponsoredTransactions.js +52 -10
  102. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  103. package/dist/internal/Auth.d.ts +4 -0
  104. package/dist/internal/Auth.d.ts.map +1 -1
  105. package/dist/internal/Auth.js +15 -8
  106. package/dist/internal/Auth.js.map +1 -1
  107. package/dist/internal/Cache.d.ts.map +1 -1
  108. package/dist/internal/Cache.js +9 -1
  109. package/dist/internal/Cache.js.map +1 -1
  110. package/dist/internal/EdgeCache.d.ts.map +1 -1
  111. package/dist/internal/EdgeCache.js +12 -3
  112. package/dist/internal/EdgeCache.js.map +1 -1
  113. package/dist/internal/FundingQuotes.d.ts +176 -56
  114. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  115. package/dist/internal/FundingQuotes.js +100 -5
  116. package/dist/internal/FundingQuotes.js.map +1 -1
  117. package/dist/internal/Log.d.ts +18 -12
  118. package/dist/internal/Log.d.ts.map +1 -1
  119. package/dist/internal/Log.js +2 -0
  120. package/dist/internal/Log.js.map +1 -1
  121. package/dist/internal/RateLimit.d.ts +2 -0
  122. package/dist/internal/RateLimit.d.ts.map +1 -1
  123. package/dist/internal/RateLimit.js +4 -4
  124. package/dist/internal/RateLimit.js.map +1 -1
  125. package/dist/internal/Tidx.d.ts +9 -3
  126. package/dist/internal/Tidx.d.ts.map +1 -1
  127. package/dist/internal/Tidx.js +13 -7
  128. package/dist/internal/Tidx.js.map +1 -1
  129. package/dist/internal/Viem.d.ts +14 -1
  130. package/dist/internal/Viem.d.ts.map +1 -1
  131. package/dist/internal/Viem.js +19 -1
  132. package/dist/internal/Viem.js.map +1 -1
  133. package/package.json +7 -2
  134. package/src/ApiKeys.test.ts +2 -0
  135. package/src/App.test.ts +15 -4
  136. package/src/App.ts +31 -5
  137. package/src/Assets.ts +3 -3
  138. package/src/Client.test-d.ts +30 -3
  139. package/src/Scope.ts +4 -2
  140. package/src/Webhooks.ts +5 -10
  141. package/src/admin/apps/api-keys.test.ts +27 -0
  142. package/src/admin/apps/api-keys.ts +8 -1
  143. package/src/admin/apps/scopes.test.ts +7 -2
  144. package/src/admin/apps/scopes.ts +2 -2
  145. package/src/admin/ui/src/components/Dialog.tsx +8 -2
  146. package/src/admin/ui/src/lib/scopes.test.ts +19 -0
  147. package/src/admin/ui/src/lib/scopes.ts +12 -0
  148. package/src/admin/ui/src/routes/api-keys.tsx +128 -27
  149. package/src/admin/ui.generated.ts +33 -33
  150. package/src/apps/composition.test.ts +77 -0
  151. package/src/apps/data/App.ts +25 -45
  152. package/src/apps/data/FundingQuoteProviders.test.ts +615 -5
  153. package/src/apps/data/FundingQuoteProviders.ts +570 -4
  154. package/src/apps/data/routes/funding.test.ts +181 -7
  155. package/src/apps/data/routes/funding.ts +27 -12
  156. package/src/apps/data/routes/indexer.test.ts +82 -20
  157. package/src/apps/data/routes/indexer.ts +8 -2
  158. package/src/apps/data/routes/tokens.test.ts +54 -0
  159. package/src/apps/data/routes/transfers.test.ts +73 -1
  160. package/src/apps/data/routes/transfers.ts +24 -30
  161. package/src/apps/data/routes/webhooks.test.ts +203 -0
  162. package/src/apps/data/routes/webhooks.ts +191 -54
  163. package/src/apps/management/Billing.test.ts +52 -3
  164. package/src/apps/management/Billing.ts +5 -4
  165. package/src/apps/management/routes/billing.ts +6 -1
  166. package/src/apps/management/routes/orgs.ts +19 -1
  167. package/src/apps/mcp.test.ts +18 -0
  168. package/src/apps/mcp.ts +2 -2
  169. package/src/apps/relay/App.test.ts +6 -5
  170. package/src/apps/relay/App.ts +2 -2
  171. package/src/apps/relay/Sponsorships.test.ts +2 -2
  172. package/src/apps/relay/Sponsorships.ts +24 -1
  173. package/src/db/Db.test.ts +5 -5
  174. package/src/db/Db.ts +4 -0
  175. package/src/db/Schema.ts +1 -1
  176. package/src/db/tables/billingSettings.test.ts +2 -2
  177. package/src/db/tables/organizations.test.ts +32 -2
  178. package/src/db/tables/organizations.ts +28 -0
  179. package/src/db/tables/requestUsage.ts +3 -23
  180. package/src/db/tables/sponsoredTransactions.test.ts +60 -2
  181. package/src/db/tables/sponsoredTransactions.ts +67 -21
  182. package/src/db/tables/stripeCustomers.test.ts +2 -2
  183. package/src/internal/Auth.test.ts +63 -10
  184. package/src/internal/Auth.ts +21 -9
  185. package/src/internal/Cache.test.ts +19 -0
  186. package/src/internal/Cache.ts +13 -1
  187. package/src/internal/EdgeCache.test.ts +40 -0
  188. package/src/internal/EdgeCache.ts +11 -3
  189. package/src/internal/FundingQuotes.test.ts +130 -3
  190. package/src/internal/FundingQuotes.ts +113 -6
  191. package/src/internal/Log.ts +21 -14
  192. package/src/internal/RateLimit.test.ts +12 -0
  193. package/src/internal/RateLimit.ts +4 -4
  194. package/src/internal/Tidx.test.ts +48 -0
  195. package/src/internal/Tidx.ts +21 -7
  196. package/src/internal/Viem.test.ts +46 -0
  197. package/src/internal/Viem.ts +34 -1
@@ -255,18 +255,9 @@ 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: {
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;
258
+ output: null;
259
+ outputFormat: "body";
260
+ status: 402;
270
261
  input: {
271
262
  query?: {
272
263
  chainId?: string | string[];
@@ -299,14 +290,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
299
290
  } | {
300
291
  output: {
301
292
  error: {
302
- code: "query_invalid";
293
+ code: "api_key_invalid" | "api_key_missing";
303
294
  details?: readonly Response.error.Detail[] | undefined;
304
295
  message: string;
305
296
  };
306
297
  requestId: string;
307
298
  };
308
299
  outputFormat: "json";
309
- status: 400;
300
+ status: 401;
310
301
  input: {
311
302
  query?: {
312
303
  chainId?: string | string[];
@@ -319,14 +310,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
319
310
  } | {
320
311
  output: {
321
312
  error: {
322
- code: "api_key_invalid" | "api_key_missing";
313
+ code: "api_key_forbidden";
323
314
  details?: readonly Response.error.Detail[] | undefined;
324
315
  message: string;
325
316
  };
326
317
  requestId: string;
327
318
  };
328
319
  outputFormat: "json";
329
- status: 401;
320
+ status: 403;
330
321
  input: {
331
322
  query?: {
332
323
  chainId?: string | string[];
@@ -337,9 +328,16 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
337
328
  } | undefined;
338
329
  };
339
330
  } | {
340
- output: null;
341
- outputFormat: "body";
342
- status: 402;
331
+ output: {
332
+ error: {
333
+ code: "payment_required" | "rate_limit_exceeded";
334
+ details?: readonly Response.error.Detail[] | undefined;
335
+ message: string;
336
+ };
337
+ requestId: string;
338
+ };
339
+ outputFormat: "json";
340
+ status: 429;
343
341
  input: {
344
342
  query?: {
345
343
  chainId?: string | string[];
@@ -352,14 +350,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
352
350
  } | {
353
351
  output: {
354
352
  error: {
355
- code: "api_key_forbidden";
353
+ code: "query_invalid";
356
354
  details?: readonly Response.error.Detail[] | undefined;
357
355
  message: string;
358
356
  };
359
357
  requestId: string;
360
358
  };
361
359
  outputFormat: "json";
362
- status: 403;
360
+ status: 400;
363
361
  input: {
364
362
  query?: {
365
363
  chainId?: string | string[];
@@ -372,14 +370,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
372
370
  } | {
373
371
  output: {
374
372
  error: {
375
- code: "payment_required" | "rate_limit_exceeded";
373
+ code: "upstream_error";
376
374
  details?: readonly Response.error.Detail[] | undefined;
377
375
  message: string;
378
376
  };
379
377
  requestId: string;
380
378
  };
381
379
  outputFormat: "json";
382
- status: 429;
380
+ status: 502;
383
381
  input: {
384
382
  query?: {
385
383
  chainId?: string | string[];
@@ -391,15 +389,17 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
391
389
  };
392
390
  } | {
393
391
  output: {
394
- error: {
395
- code: "upstream_error";
396
- details?: readonly Response.error.Detail[] | undefined;
397
- message: string;
398
- };
399
- requestId: string;
392
+ data: {
393
+ hash: `0x${string}`;
394
+ id: `0x${string}`;
395
+ number: number;
396
+ timestamp: string;
397
+ transactionCount: number;
398
+ }[];
399
+ nextCursor: string | null;
400
400
  };
401
401
  outputFormat: "json";
402
- status: 502;
402
+ status: 200;
403
403
  input: {
404
404
  query?: {
405
405
  chainId?: string | string[];
@@ -414,51 +414,9 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
414
414
  } & {
415
415
  "/v1/blocks/:block": {
416
416
  $get: {
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;
417
+ output: null;
418
+ outputFormat: "body";
419
+ status: 402;
462
420
  input: {
463
421
  param: {
464
422
  block: string;
@@ -491,14 +449,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
491
449
  } | {
492
450
  output: {
493
451
  error: {
494
- code: "query_invalid";
452
+ code: "api_key_invalid" | "api_key_missing";
495
453
  details?: readonly Response.error.Detail[] | undefined;
496
454
  message: string;
497
455
  };
498
456
  requestId: string;
499
457
  };
500
458
  outputFormat: "json";
501
- status: 400;
459
+ status: 401;
502
460
  input: {
503
461
  param: {
504
462
  block: string;
@@ -511,14 +469,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
511
469
  } | {
512
470
  output: {
513
471
  error: {
514
- code: "block_invalid";
472
+ code: "api_key_forbidden";
515
473
  details?: readonly Response.error.Detail[] | undefined;
516
474
  message: string;
517
475
  };
518
476
  requestId: string;
519
477
  };
520
478
  outputFormat: "json";
521
- status: 400;
479
+ status: 403;
522
480
  input: {
523
481
  param: {
524
482
  block: string;
@@ -531,14 +489,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
531
489
  } | {
532
490
  output: {
533
491
  error: {
534
- code: "api_key_invalid" | "api_key_missing";
492
+ code: "payment_required" | "rate_limit_exceeded";
535
493
  details?: readonly Response.error.Detail[] | undefined;
536
494
  message: string;
537
495
  };
538
496
  requestId: string;
539
497
  };
540
498
  outputFormat: "json";
541
- status: 401;
499
+ status: 429;
542
500
  input: {
543
501
  param: {
544
502
  block: string;
@@ -549,9 +507,16 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
549
507
  } | undefined;
550
508
  };
551
509
  } | {
552
- output: null;
553
- outputFormat: "body";
554
- status: 402;
510
+ output: {
511
+ error: {
512
+ code: "query_invalid";
513
+ details?: readonly Response.error.Detail[] | undefined;
514
+ message: string;
515
+ };
516
+ requestId: string;
517
+ };
518
+ outputFormat: "json";
519
+ status: 400;
555
520
  input: {
556
521
  param: {
557
522
  block: string;
@@ -564,14 +529,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
564
529
  } | {
565
530
  output: {
566
531
  error: {
567
- code: "api_key_forbidden";
532
+ code: "upstream_error";
568
533
  details?: readonly Response.error.Detail[] | undefined;
569
534
  message: string;
570
535
  };
571
536
  requestId: string;
572
537
  };
573
538
  outputFormat: "json";
574
- status: 403;
539
+ status: 502;
575
540
  input: {
576
541
  param: {
577
542
  block: string;
@@ -584,14 +549,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
584
549
  } | {
585
550
  output: {
586
551
  error: {
587
- code: "block_not_found";
552
+ code: "block_invalid";
588
553
  details?: readonly Response.error.Detail[] | undefined;
589
554
  message: string;
590
555
  };
591
556
  requestId: string;
592
557
  };
593
558
  outputFormat: "json";
594
- status: 404;
559
+ status: 400;
595
560
  input: {
596
561
  param: {
597
562
  block: string;
@@ -604,14 +569,14 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
604
569
  } | {
605
570
  output: {
606
571
  error: {
607
- code: "payment_required" | "rate_limit_exceeded";
572
+ code: "block_not_found";
608
573
  details?: readonly Response.error.Detail[] | undefined;
609
574
  message: string;
610
575
  };
611
576
  requestId: string;
612
577
  };
613
578
  outputFormat: "json";
614
- status: 429;
579
+ status: 404;
615
580
  input: {
616
581
  param: {
617
582
  block: string;
@@ -623,15 +588,50 @@ export declare function blocks(): import("hono/hono-base").HonoBase<App.Environm
623
588
  };
624
589
  } | {
625
590
  output: {
626
- error: {
627
- code: "upstream_error";
628
- details?: readonly Response.error.Detail[] | undefined;
629
- message: string;
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
+ };
630
625
  };
631
- requestId: string;
626
+ miner: `0x${string}`;
627
+ number: number;
628
+ parentHash: `0x${string}`;
629
+ size: number;
630
+ timestamp: string;
631
+ transactionCount: number;
632
632
  };
633
633
  outputFormat: "json";
634
- status: 502;
634
+ status: 200;
635
635
  input: {
636
636
  param: {
637
637
  block: string;
@@ -659,14 +659,9 @@ 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: {
663
- block: {
664
- blockNumber: number;
665
- blockTimestamp: number;
666
- };
667
- };
668
- outputFormat: "json";
669
- status: 200;
662
+ output: null;
663
+ outputFormat: "body";
664
+ status: 402;
670
665
  input: {
671
666
  param: {
672
667
  chainId: string;
@@ -701,14 +696,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
701
696
  } | {
702
697
  output: {
703
698
  error: {
704
- code: "query_invalid";
699
+ code: "api_key_invalid" | "api_key_missing";
705
700
  details?: readonly Response.error.Detail[] | undefined;
706
701
  message: string;
707
702
  };
708
703
  requestId: string;
709
704
  };
710
705
  outputFormat: "json";
711
- status: 400;
706
+ status: 401;
712
707
  input: {
713
708
  param: {
714
709
  chainId: string;
@@ -722,14 +717,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
722
717
  } | {
723
718
  output: {
724
719
  error: {
725
- code: "chain_id_unsupported";
720
+ code: "api_key_forbidden";
726
721
  details?: readonly Response.error.Detail[] | undefined;
727
722
  message: string;
728
723
  };
729
724
  requestId: string;
730
725
  };
731
726
  outputFormat: "json";
732
- status: 400;
727
+ status: 403;
733
728
  input: {
734
729
  param: {
735
730
  chainId: string;
@@ -743,14 +738,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
743
738
  } | {
744
739
  output: {
745
740
  error: {
746
- code: "api_key_invalid" | "api_key_missing";
741
+ code: "payment_required" | "rate_limit_exceeded";
747
742
  details?: readonly Response.error.Detail[] | undefined;
748
743
  message: string;
749
744
  };
750
745
  requestId: string;
751
746
  };
752
747
  outputFormat: "json";
753
- status: 401;
748
+ status: 429;
754
749
  input: {
755
750
  param: {
756
751
  chainId: string;
@@ -762,9 +757,16 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
762
757
  };
763
758
  };
764
759
  } | {
765
- output: null;
766
- outputFormat: "body";
767
- status: 402;
760
+ output: {
761
+ error: {
762
+ code: "query_invalid";
763
+ details?: readonly Response.error.Detail[] | undefined;
764
+ message: string;
765
+ };
766
+ requestId: string;
767
+ };
768
+ outputFormat: "json";
769
+ status: 400;
768
770
  input: {
769
771
  param: {
770
772
  chainId: string;
@@ -778,14 +780,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
778
780
  } | {
779
781
  output: {
780
782
  error: {
781
- code: "api_key_forbidden";
783
+ code: "upstream_error";
782
784
  details?: readonly Response.error.Detail[] | undefined;
783
785
  message: string;
784
786
  };
785
787
  requestId: string;
786
788
  };
787
789
  outputFormat: "json";
788
- status: 403;
790
+ status: 502;
789
791
  input: {
790
792
  param: {
791
793
  chainId: string;
@@ -820,14 +822,14 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
820
822
  } | {
821
823
  output: {
822
824
  error: {
823
- code: "payment_required" | "rate_limit_exceeded";
825
+ code: "chain_id_unsupported";
824
826
  details?: readonly Response.error.Detail[] | undefined;
825
827
  message: string;
826
828
  };
827
829
  requestId: string;
828
830
  };
829
831
  outputFormat: "json";
830
- status: 429;
832
+ status: 400;
831
833
  input: {
832
834
  param: {
833
835
  chainId: string;
@@ -840,15 +842,13 @@ export declare function blocksByTimestampCompat(): import("hono/hono-base").Hono
840
842
  };
841
843
  } | {
842
844
  output: {
843
- error: {
844
- code: "upstream_error";
845
- details?: readonly Response.error.Detail[] | undefined;
846
- message: string;
845
+ block: {
846
+ blockNumber: number;
847
+ blockTimestamp: number;
847
848
  };
848
- requestId: string;
849
849
  };
850
850
  outputFormat: "json";
851
- status: 502;
851
+ status: 200;
852
852
  input: {
853
853
  param: {
854
854
  chainId: string;