tapimo 0.7.2 → 0.8.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 (294) 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 +20434 -19484
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +62 -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 +168 -168
  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 +10305 -12785
  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 +24 -24
  35. package/dist/apps/data/routes/addresses.d.ts +288 -288
  36. package/dist/apps/data/routes/balances.d.ts +6 -6
  37. package/dist/apps/data/routes/blocks.d.ts +39 -39
  38. package/dist/apps/data/routes/coingecko.d.ts +170 -170
  39. package/dist/apps/data/routes/earn.d.ts +436 -6
  40. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  41. package/dist/apps/data/routes/earn.js +631 -4
  42. package/dist/apps/data/routes/earn.js.map +1 -1
  43. package/dist/apps/data/routes/exchanges.d.ts +10 -10
  44. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  45. package/dist/apps/data/routes/indexer.d.ts +6 -6
  46. package/dist/apps/data/routes/indexer.js +4 -1
  47. package/dist/apps/data/routes/indexer.js.map +1 -1
  48. package/dist/apps/data/routes/receipts.d.ts +235 -235
  49. package/dist/apps/data/routes/rpc.d.ts +1 -1
  50. package/dist/apps/data/routes/rpc.js +4 -1
  51. package/dist/apps/data/routes/rpc.js.map +1 -1
  52. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  53. package/dist/apps/data/routes/tokens.d.ts +6 -6
  54. package/dist/apps/data/routes/transactions.d.ts +2 -2
  55. package/dist/apps/data/routes/transfers.d.ts +1 -1
  56. package/dist/apps/data/routes/valuation.d.ts +1 -1
  57. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  58. package/dist/apps/data/routes/webhooks.d.ts +9 -9
  59. package/dist/apps/data/routes/zones.d.ts +14 -14
  60. package/dist/apps/funding/Access.d.ts +16 -0
  61. package/dist/apps/funding/Access.d.ts.map +1 -0
  62. package/dist/apps/funding/Access.js +22 -0
  63. package/dist/apps/funding/Access.js.map +1 -0
  64. package/dist/apps/{data/routes/funding.d.ts → funding/App.d.ts} +1717 -3035
  65. package/dist/apps/funding/App.d.ts.map +1 -0
  66. package/dist/apps/funding/App.js +46 -0
  67. package/dist/apps/funding/App.js.map +1 -0
  68. package/dist/apps/funding/Inventory.d.ts +5 -0
  69. package/dist/apps/funding/Inventory.d.ts.map +1 -0
  70. package/dist/apps/funding/Inventory.js +25 -0
  71. package/dist/apps/funding/Inventory.js.map +1 -0
  72. package/dist/apps/funding/ProviderAttempts.d.ts +5 -0
  73. package/dist/apps/funding/ProviderAttempts.d.ts.map +1 -0
  74. package/dist/apps/funding/ProviderAttempts.js +24 -0
  75. package/dist/apps/funding/ProviderAttempts.js.map +1 -0
  76. package/dist/apps/funding/index.d.ts +2 -0
  77. package/dist/apps/funding/index.d.ts.map +1 -0
  78. package/dist/apps/funding/index.js +2 -0
  79. package/dist/apps/funding/index.js.map +1 -0
  80. package/dist/apps/funding/routes/chains.d.ts +169 -0
  81. package/dist/apps/funding/routes/chains.d.ts.map +1 -0
  82. package/dist/apps/funding/routes/chains.js +80 -0
  83. package/dist/apps/funding/routes/chains.js.map +1 -0
  84. package/dist/apps/funding/routes/deposit-addresses.d.ts +2388 -0
  85. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -0
  86. package/dist/apps/funding/routes/deposit-addresses.js +860 -0
  87. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -0
  88. package/dist/apps/funding/routes/providers.d.ts +91 -0
  89. package/dist/apps/funding/routes/providers.d.ts.map +1 -0
  90. package/dist/apps/funding/routes/providers.js +56 -0
  91. package/dist/apps/funding/routes/providers.js.map +1 -0
  92. package/dist/apps/funding/routes/quotes.d.ts +426 -0
  93. package/dist/apps/funding/routes/quotes.d.ts.map +1 -0
  94. package/dist/apps/funding/routes/quotes.js +188 -0
  95. package/dist/apps/funding/routes/quotes.js.map +1 -0
  96. package/dist/apps/funding/routes/transfers.d.ts +1999 -0
  97. package/dist/apps/funding/routes/transfers.d.ts.map +1 -0
  98. package/dist/apps/funding/routes/transfers.js +614 -0
  99. package/dist/apps/funding/routes/transfers.js.map +1 -0
  100. package/dist/apps/index.d.ts +1 -0
  101. package/dist/apps/index.d.ts.map +1 -1
  102. package/dist/apps/index.js +1 -0
  103. package/dist/apps/index.js.map +1 -1
  104. package/dist/apps/management/App.d.ts +430 -165
  105. package/dist/apps/management/App.d.ts.map +1 -1
  106. package/dist/apps/management/routes/api-keys.d.ts +298 -21
  107. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  108. package/dist/apps/management/routes/api-keys.js +75 -1
  109. package/dist/apps/management/routes/api-keys.js.map +1 -1
  110. package/dist/apps/management/routes/billing.d.ts +6 -6
  111. package/dist/apps/management/routes/faucet.d.ts +35 -35
  112. package/dist/apps/management/routes/invitations.d.ts +48 -48
  113. package/dist/apps/management/routes/invite-links.d.ts +38 -38
  114. package/dist/apps/management/routes/members.d.ts +69 -69
  115. package/dist/apps/management/routes/orgs.d.ts +37 -37
  116. package/dist/apps/management/routes/projects.d.ts +25 -25
  117. package/dist/apps/management/routes/scopes.d.ts +1 -1
  118. package/dist/apps/management/routes/usage.d.ts +72 -72
  119. package/dist/apps/management/routes/verified-token-requests.d.ts +18 -18
  120. package/dist/apps/management/routes/webhooks.d.ts +128 -128
  121. package/dist/apps/mcp.d.ts +2 -3
  122. package/dist/apps/mcp.d.ts.map +1 -1
  123. package/dist/apps/mcp.js +16 -14
  124. package/dist/apps/mcp.js.map +1 -1
  125. package/dist/apps/metadata.d.ts +4 -0
  126. package/dist/apps/metadata.d.ts.map +1 -1
  127. package/dist/apps/metadata.js +10 -0
  128. package/dist/apps/metadata.js.map +1 -1
  129. package/dist/apps/mpp/App.d.ts +2 -2
  130. package/dist/cloudflare.d.ts +50 -0
  131. package/dist/cloudflare.d.ts.map +1 -1
  132. package/dist/cloudflare.js +178 -0
  133. package/dist/cloudflare.js.map +1 -1
  134. package/dist/db/Db.d.ts +2 -0
  135. package/dist/db/Db.d.ts.map +1 -1
  136. package/dist/db/Db.js +37 -0
  137. package/dist/db/Db.js.map +1 -1
  138. package/dist/db/Schema.d.ts +12 -0
  139. package/dist/db/Schema.d.ts.map +1 -1
  140. package/dist/db/Schema.js +20 -0
  141. package/dist/db/Schema.js.map +1 -1
  142. package/dist/db/tables/fundingDepositAddresses.d.ts +13 -0
  143. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  144. package/dist/db/tables/fundingDepositAddresses.js +12 -0
  145. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  146. package/dist/db/tables/fundingDepositRequestObservations.d.ts +45 -0
  147. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +1 -0
  148. package/dist/db/tables/fundingDepositRequestObservations.js +46 -0
  149. package/dist/db/tables/fundingDepositRequestObservations.js.map +1 -0
  150. package/dist/db/tables/fundingDeposits.d.ts +57 -1
  151. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  152. package/dist/db/tables/fundingDeposits.js +82 -0
  153. package/dist/db/tables/fundingDeposits.js.map +1 -1
  154. package/dist/internal/Auth.d.ts +11 -11
  155. package/dist/internal/Auth.d.ts.map +1 -1
  156. package/dist/internal/Auth.js +41 -15
  157. package/dist/internal/Auth.js.map +1 -1
  158. package/dist/internal/Cache.js +1 -1
  159. package/dist/internal/Cache.js.map +1 -1
  160. package/dist/internal/EdgeCache.d.ts +2 -2
  161. package/dist/internal/EdgeCache.d.ts.map +1 -1
  162. package/dist/internal/EdgeCache.js +10 -4
  163. package/dist/internal/EdgeCache.js.map +1 -1
  164. package/dist/internal/IpAllowlist.d.ts +15 -0
  165. package/dist/internal/IpAllowlist.d.ts.map +1 -0
  166. package/dist/internal/IpAllowlist.js +27 -0
  167. package/dist/internal/IpAllowlist.js.map +1 -0
  168. package/dist/internal/OpenApi.d.ts +1 -1
  169. package/dist/internal/OpenApi.js +1 -1
  170. package/dist/internal/OpenApi.js.map +1 -1
  171. package/dist/internal/Tidx.d.ts +6 -0
  172. package/dist/internal/Tidx.d.ts.map +1 -1
  173. package/dist/internal/Tidx.js +13 -3
  174. package/dist/internal/Tidx.js.map +1 -1
  175. package/dist/internal/Viem.d.ts +8 -0
  176. package/dist/internal/Viem.d.ts.map +1 -1
  177. package/dist/internal/Viem.js +12 -5
  178. package/dist/internal/Viem.js.map +1 -1
  179. package/dist/internal/funding/Deposit.d.ts +42 -0
  180. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  181. package/dist/internal/funding/Deposit.js +37 -5
  182. package/dist/internal/funding/Deposit.js.map +1 -1
  183. package/dist/internal/funding/Evidence.d.ts +1 -5
  184. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  185. package/dist/internal/funding/Evidence.js +4 -3
  186. package/dist/internal/funding/Evidence.js.map +1 -1
  187. package/dist/internal/funding/Provider.d.ts +102 -0
  188. package/dist/internal/funding/Provider.d.ts.map +1 -1
  189. package/dist/internal/funding/Provider.js +5 -0
  190. package/dist/internal/funding/Provider.js.map +1 -1
  191. package/dist/internal/funding/Reconciliation.d.ts +16 -2
  192. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  193. package/dist/internal/funding/Reconciliation.js +257 -48
  194. package/dist/internal/funding/Reconciliation.js.map +1 -1
  195. package/dist/internal/funding/SourceObservation.d.ts +108 -0
  196. package/dist/internal/funding/SourceObservation.d.ts.map +1 -0
  197. package/dist/internal/funding/SourceObservation.js +143 -0
  198. package/dist/internal/funding/SourceObservation.js.map +1 -0
  199. package/dist/internal/funding/Subsidy.d.ts +2 -2
  200. package/dist/internal/funding/Subsidy.d.ts.map +1 -1
  201. package/dist/internal/funding/Subsidy.js +1 -1
  202. package/dist/internal/funding/Subsidy.js.map +1 -1
  203. package/dist/internal/funding/index.d.ts +1 -0
  204. package/dist/internal/funding/index.d.ts.map +1 -1
  205. package/dist/internal/funding/index.js +1 -0
  206. package/dist/internal/funding/index.js.map +1 -1
  207. package/dist/internal/funding/providers/relay.d.ts +43 -1
  208. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  209. package/dist/internal/funding/providers/relay.js +434 -27
  210. package/dist/internal/funding/providers/relay.js.map +1 -1
  211. package/package.json +3 -3
  212. package/src/ApiKey.test.ts +35 -0
  213. package/src/ApiKey.ts +27 -0
  214. package/src/ApiKeys.test.ts +29 -0
  215. package/src/ApiKeys.ts +11 -3
  216. package/src/App.test.ts +23 -5
  217. package/src/App.ts +76 -5
  218. package/src/Client.test-d.ts +171 -19
  219. package/src/admin/apps/api-keys.test.ts +25 -1
  220. package/src/admin/apps/api-keys.ts +6 -2
  221. package/src/admin/ui.generated.ts +67 -67
  222. package/src/analytics/Analytics.ts +4 -0
  223. package/src/apps/composition.test.ts +100 -2
  224. package/src/apps/data/App.test.ts +0 -12
  225. package/src/apps/data/App.ts +4 -8
  226. package/src/apps/data/routes/earn.test.ts +283 -0
  227. package/src/apps/data/routes/earn.ts +800 -3
  228. package/src/apps/data/routes/indexer.ts +2 -1
  229. package/src/apps/data/routes/rpc.ts +2 -0
  230. package/src/apps/data/routes/tokens.test.ts +6 -8
  231. package/src/apps/funding/Access.ts +26 -0
  232. package/src/apps/funding/App.test.ts +78 -0
  233. package/src/apps/funding/App.ts +63 -0
  234. package/src/apps/funding/Inventory.ts +30 -0
  235. package/src/apps/funding/ProviderAttempts.ts +26 -0
  236. package/src/apps/funding/index.ts +1 -0
  237. package/src/apps/funding/routes/chains.test.ts +78 -0
  238. package/src/apps/funding/routes/chains.ts +101 -0
  239. package/src/apps/funding/routes/deposit-addresses.test.ts +1628 -0
  240. package/src/apps/funding/routes/deposit-addresses.ts +1015 -0
  241. package/src/apps/funding/routes/providers.test.ts +165 -0
  242. package/src/apps/funding/routes/providers.ts +73 -0
  243. package/src/apps/funding/routes/quotes.test.ts +511 -0
  244. package/src/apps/funding/routes/quotes.ts +205 -0
  245. package/src/apps/funding/routes/transfers.test.ts +1255 -0
  246. package/src/apps/funding/routes/transfers.ts +704 -0
  247. package/src/apps/index.ts +1 -0
  248. package/src/apps/management/routes/api-keys.test.ts +98 -0
  249. package/src/apps/management/routes/api-keys.ts +96 -1
  250. package/src/apps/mcp.test.ts +17 -2
  251. package/src/apps/mcp.ts +18 -13
  252. package/src/apps/metadata.ts +12 -0
  253. package/src/apps/mpp/internal/Policy.test.ts +7 -1
  254. package/src/cloudflare.ts +279 -0
  255. package/src/db/Db.ts +62 -0
  256. package/src/db/Schema.ts +24 -0
  257. package/src/db/tables/fundingDepositAddresses.ts +28 -0
  258. package/src/db/tables/fundingDepositRequestObservations.test.ts +106 -0
  259. package/src/db/tables/fundingDepositRequestObservations.ts +99 -0
  260. package/src/db/tables/fundingDeposits.test.ts +138 -0
  261. package/src/db/tables/fundingDeposits.ts +145 -1
  262. package/src/internal/Auth.test.ts +177 -5
  263. package/src/internal/Auth.ts +48 -18
  264. package/src/internal/Cache.test.ts +37 -3
  265. package/src/internal/Cache.ts +1 -1
  266. package/src/internal/EdgeCache.test.ts +7 -7
  267. package/src/internal/EdgeCache.ts +13 -4
  268. package/src/internal/IpAllowlist.test.ts +52 -0
  269. package/src/internal/IpAllowlist.ts +39 -0
  270. package/src/internal/Log.test.ts +7 -1
  271. package/src/internal/OpenApi.ts +1 -1
  272. package/src/internal/Tidx.test.ts +28 -0
  273. package/src/internal/Tidx.ts +19 -3
  274. package/src/internal/Viem.test.ts +28 -0
  275. package/src/internal/Viem.ts +21 -5
  276. package/src/internal/funding/Deposit.ts +74 -5
  277. package/src/internal/funding/Evidence.test.ts +2 -2
  278. package/src/internal/funding/Evidence.ts +4 -9
  279. package/src/internal/funding/Provider.ts +115 -0
  280. package/src/internal/funding/Reconciliation.local.test.ts +7 -0
  281. package/src/internal/funding/Reconciliation.test.ts +1052 -35
  282. package/src/internal/funding/Reconciliation.ts +328 -56
  283. package/src/internal/funding/SourceObservation.test.ts +301 -0
  284. package/src/internal/funding/SourceObservation.ts +267 -0
  285. package/src/internal/funding/Subsidy.ts +2 -2
  286. package/src/internal/funding/index.test.ts +1 -0
  287. package/src/internal/funding/index.ts +1 -0
  288. package/src/internal/funding/providers/relay.test.ts +94 -4
  289. package/src/internal/funding/providers/relay.ts +528 -27
  290. package/dist/apps/data/routes/funding.d.ts.map +0 -1
  291. package/dist/apps/data/routes/funding.js +0 -1557
  292. package/dist/apps/data/routes/funding.js.map +0 -1
  293. package/src/apps/data/routes/funding.test.ts +0 -2994
  294. package/src/apps/data/routes/funding.ts +0 -1821
@@ -527,111 +527,9 @@ export declare namespace schema {
527
527
  export declare function receipts(options?: receipts.Options): import("hono/hono-base").HonoBase<App.Environment, {
528
528
  "/v1/transactions/receipts": {
529
529
  $get: {
530
- output: {
531
- data: {
532
- blockHash: `0x${string}` | null;
533
- blockNumber: number;
534
- contractAddress: `0x${string}` | null;
535
- cumulativeGasUsed: number;
536
- effectiveGasPrice: string;
537
- feeAmount: {
538
- baseUnits: string;
539
- currency: string;
540
- decimals: number;
541
- formatted: string;
542
- valuation?: {
543
- amount: string;
544
- currency: string;
545
- } | null | undefined;
546
- };
547
- feePayer?: `0x${string}` | undefined;
548
- feeToken?: {
549
- address: `0x${string}`;
550
- currency: string;
551
- decimals: number;
552
- logoUri?: string | undefined;
553
- name: string;
554
- symbol: string;
555
- verified?: boolean | undefined;
556
- } | undefined;
557
- gasUsed: number;
558
- id: `0x${string}`;
559
- logs: {
560
- [x: string]: import("hono/utils/types").JSONValue;
561
- address: `0x${string}`;
562
- blockHash: `0x${string}` | null;
563
- blockNumber: `0x${string}` | null;
564
- blockTimestamp?: `0x${string}` | null | undefined;
565
- data: `0x${string}`;
566
- logIndex: `0x${string}` | null;
567
- removed: boolean;
568
- topics: `0x${string}`[];
569
- transactionHash: `0x${string}` | null;
570
- transactionIndex: `0x${string}` | null;
571
- }[];
572
- meta: {
573
- valuation?: {
574
- asOf: string;
575
- basis: "nominal";
576
- source: string;
577
- } | undefined;
578
- rpc: {
579
- [x: string]: import("hono/utils/types").JSONValue;
580
- blobGasPrice?: `0x${string}` | undefined;
581
- blobGasUsed?: `0x${string}` | undefined;
582
- blockHash: `0x${string}` | null;
583
- blockNumber: `0x${string}`;
584
- blockTimestamp?: `0x${string}` | null | undefined;
585
- contractAddress?: `0x${string}` | null | undefined;
586
- cumulativeGasUsed: `0x${string}`;
587
- effectiveGasPrice: `0x${string}`;
588
- feePayer?: `0x${string}` | null | undefined;
589
- feeToken?: `0x${string}` | null | undefined;
590
- from: `0x${string}`;
591
- gasUsed: `0x${string}`;
592
- logs: {
593
- [x: string]: import("hono/utils/types").JSONValue;
594
- address: `0x${string}`;
595
- blockHash: `0x${string}` | null;
596
- blockNumber: `0x${string}` | null;
597
- blockTimestamp?: `0x${string}` | null | undefined;
598
- data: `0x${string}`;
599
- logIndex: `0x${string}` | null;
600
- removed: boolean;
601
- topics: `0x${string}`[];
602
- transactionHash: `0x${string}` | null;
603
- transactionIndex: `0x${string}` | null;
604
- }[];
605
- logsBloom?: `0x${string}` | undefined;
606
- root?: `0x${string}` | undefined;
607
- status: `0x${string}`;
608
- to: `0x${string}` | null;
609
- transactionHash: `0x${string}`;
610
- transactionIndex: `0x${string}`;
611
- type: `0x${string}`;
612
- };
613
- };
614
- recipient: `0x${string}` | null;
615
- sender: `0x${string}`;
616
- status: "reverted" | "success";
617
- timestamp: string | null;
618
- transactionHash: `0x${string}`;
619
- transactionIndex: number;
620
- type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
621
- }[];
622
- meta?: {
623
- valuation?: {
624
- asOf: string;
625
- basis: "nominal";
626
- source: string;
627
- } | undefined;
628
- totalCount?: number | undefined;
629
- totalCountCapped?: boolean | undefined;
630
- } | undefined;
631
- nextCursor: string | null;
632
- };
633
- outputFormat: "json";
634
- status: 200;
530
+ output: null;
531
+ outputFormat: "body";
532
+ status: 402;
635
533
  input: {
636
534
  query?: {
637
535
  address?: string | string[];
@@ -688,14 +586,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
688
586
  } | {
689
587
  output: {
690
588
  error: {
691
- code: "query_invalid";
589
+ code: "api_key_invalid" | "api_key_missing";
692
590
  details?: readonly Response.error.Detail[] | undefined;
693
591
  message: string;
694
592
  };
695
593
  requestId: string;
696
594
  };
697
595
  outputFormat: "json";
698
- status: 400;
596
+ status: 401;
699
597
  input: {
700
598
  query?: {
701
599
  address?: string | string[];
@@ -720,14 +618,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
720
618
  } | {
721
619
  output: {
722
620
  error: {
723
- code: "api_key_invalid" | "api_key_missing";
621
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
724
622
  details?: readonly Response.error.Detail[] | undefined;
725
623
  message: string;
726
624
  };
727
625
  requestId: string;
728
626
  };
729
627
  outputFormat: "json";
730
- status: 401;
628
+ status: 403;
731
629
  input: {
732
630
  query?: {
733
631
  address?: string | string[];
@@ -750,9 +648,16 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
750
648
  } | undefined;
751
649
  };
752
650
  } | {
753
- output: null;
754
- outputFormat: "body";
755
- status: 402;
651
+ output: {
652
+ error: {
653
+ code: "payment_required" | "rate_limit_exceeded";
654
+ details?: readonly Response.error.Detail[] | undefined;
655
+ message: string;
656
+ };
657
+ requestId: string;
658
+ };
659
+ outputFormat: "json";
660
+ status: 429;
756
661
  input: {
757
662
  query?: {
758
663
  address?: string | string[];
@@ -777,14 +682,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
777
682
  } | {
778
683
  output: {
779
684
  error: {
780
- code: "api_key_forbidden";
685
+ code: "query_invalid";
781
686
  details?: readonly Response.error.Detail[] | undefined;
782
687
  message: string;
783
688
  };
784
689
  requestId: string;
785
690
  };
786
691
  outputFormat: "json";
787
- status: 403;
692
+ status: 400;
788
693
  input: {
789
694
  query?: {
790
695
  address?: string | string[];
@@ -808,15 +713,110 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
808
713
  };
809
714
  } | {
810
715
  output: {
811
- error: {
812
- code: "payment_required" | "rate_limit_exceeded";
813
- details?: readonly Response.error.Detail[] | undefined;
814
- message: string;
815
- };
816
- requestId: string;
716
+ data: {
717
+ blockHash: `0x${string}` | null;
718
+ blockNumber: number;
719
+ contractAddress: `0x${string}` | null;
720
+ cumulativeGasUsed: number;
721
+ effectiveGasPrice: string;
722
+ feeAmount: {
723
+ baseUnits: string;
724
+ currency: string;
725
+ decimals: number;
726
+ formatted: string;
727
+ valuation?: {
728
+ amount: string;
729
+ currency: string;
730
+ } | null | undefined;
731
+ };
732
+ feePayer?: `0x${string}` | undefined;
733
+ feeToken?: {
734
+ address: `0x${string}`;
735
+ currency: string;
736
+ decimals: number;
737
+ logoUri?: string | undefined;
738
+ name: string;
739
+ symbol: string;
740
+ verified?: boolean | undefined;
741
+ } | undefined;
742
+ gasUsed: number;
743
+ id: `0x${string}`;
744
+ logs: {
745
+ [x: string]: import("hono/utils/types").JSONValue;
746
+ address: `0x${string}`;
747
+ blockHash: `0x${string}` | null;
748
+ blockNumber: `0x${string}` | null;
749
+ blockTimestamp?: `0x${string}` | null | undefined;
750
+ data: `0x${string}`;
751
+ logIndex: `0x${string}` | null;
752
+ removed: boolean;
753
+ topics: `0x${string}`[];
754
+ transactionHash: `0x${string}` | null;
755
+ transactionIndex: `0x${string}` | null;
756
+ }[];
757
+ meta: {
758
+ valuation?: {
759
+ asOf: string;
760
+ basis: "nominal";
761
+ source: string;
762
+ } | undefined;
763
+ rpc: {
764
+ [x: string]: import("hono/utils/types").JSONValue;
765
+ blobGasPrice?: `0x${string}` | undefined;
766
+ blobGasUsed?: `0x${string}` | undefined;
767
+ blockHash: `0x${string}` | null;
768
+ blockNumber: `0x${string}`;
769
+ blockTimestamp?: `0x${string}` | null | undefined;
770
+ contractAddress?: `0x${string}` | null | undefined;
771
+ cumulativeGasUsed: `0x${string}`;
772
+ effectiveGasPrice: `0x${string}`;
773
+ feePayer?: `0x${string}` | null | undefined;
774
+ feeToken?: `0x${string}` | null | undefined;
775
+ from: `0x${string}`;
776
+ gasUsed: `0x${string}`;
777
+ logs: {
778
+ [x: string]: import("hono/utils/types").JSONValue;
779
+ address: `0x${string}`;
780
+ blockHash: `0x${string}` | null;
781
+ blockNumber: `0x${string}` | null;
782
+ blockTimestamp?: `0x${string}` | null | undefined;
783
+ data: `0x${string}`;
784
+ logIndex: `0x${string}` | null;
785
+ removed: boolean;
786
+ topics: `0x${string}`[];
787
+ transactionHash: `0x${string}` | null;
788
+ transactionIndex: `0x${string}` | null;
789
+ }[];
790
+ logsBloom?: `0x${string}` | undefined;
791
+ root?: `0x${string}` | undefined;
792
+ status: `0x${string}`;
793
+ to: `0x${string}` | null;
794
+ transactionHash: `0x${string}`;
795
+ transactionIndex: `0x${string}`;
796
+ type: `0x${string}`;
797
+ };
798
+ };
799
+ recipient: `0x${string}` | null;
800
+ sender: `0x${string}`;
801
+ status: "reverted" | "success";
802
+ timestamp: string | null;
803
+ transactionHash: `0x${string}`;
804
+ transactionIndex: number;
805
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
806
+ }[];
807
+ meta?: {
808
+ valuation?: {
809
+ asOf: string;
810
+ basis: "nominal";
811
+ source: string;
812
+ } | undefined;
813
+ totalCount?: number | undefined;
814
+ totalCountCapped?: boolean | undefined;
815
+ } | undefined;
816
+ nextCursor: string | null;
817
817
  };
818
818
  outputFormat: "json";
819
- status: 429;
819
+ status: 200;
820
820
  input: {
821
821
  query?: {
822
822
  address?: string | string[];
@@ -875,99 +875,9 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
875
875
  } & {
876
876
  "/v1/transactions/:transactionHash/receipt": {
877
877
  $get: {
878
- output: {
879
- blockHash: `0x${string}` | null;
880
- blockNumber: number;
881
- contractAddress: `0x${string}` | null;
882
- cumulativeGasUsed: number;
883
- effectiveGasPrice: string;
884
- feeAmount: {
885
- baseUnits: string;
886
- currency: string;
887
- decimals: number;
888
- formatted: string;
889
- valuation?: {
890
- amount: string;
891
- currency: string;
892
- } | null | undefined;
893
- };
894
- feePayer?: `0x${string}` | undefined;
895
- feeToken?: {
896
- address: `0x${string}`;
897
- currency: string;
898
- decimals: number;
899
- logoUri?: string | undefined;
900
- name: string;
901
- symbol: string;
902
- verified?: boolean | undefined;
903
- } | undefined;
904
- gasUsed: number;
905
- id: `0x${string}`;
906
- logs: {
907
- [x: string]: import("hono/utils/types").JSONValue;
908
- address: `0x${string}`;
909
- blockHash: `0x${string}` | null;
910
- blockNumber: `0x${string}` | null;
911
- blockTimestamp?: `0x${string}` | null | undefined;
912
- data: `0x${string}`;
913
- logIndex: `0x${string}` | null;
914
- removed: boolean;
915
- topics: `0x${string}`[];
916
- transactionHash: `0x${string}` | null;
917
- transactionIndex: `0x${string}` | null;
918
- }[];
919
- meta: {
920
- valuation?: {
921
- asOf: string;
922
- basis: "nominal";
923
- source: string;
924
- } | undefined;
925
- rpc: {
926
- [x: string]: import("hono/utils/types").JSONValue;
927
- blobGasPrice?: `0x${string}` | undefined;
928
- blobGasUsed?: `0x${string}` | undefined;
929
- blockHash: `0x${string}` | null;
930
- blockNumber: `0x${string}`;
931
- blockTimestamp?: `0x${string}` | null | undefined;
932
- contractAddress?: `0x${string}` | null | undefined;
933
- cumulativeGasUsed: `0x${string}`;
934
- effectiveGasPrice: `0x${string}`;
935
- feePayer?: `0x${string}` | null | undefined;
936
- feeToken?: `0x${string}` | null | undefined;
937
- from: `0x${string}`;
938
- gasUsed: `0x${string}`;
939
- logs: {
940
- [x: string]: import("hono/utils/types").JSONValue;
941
- address: `0x${string}`;
942
- blockHash: `0x${string}` | null;
943
- blockNumber: `0x${string}` | null;
944
- blockTimestamp?: `0x${string}` | null | undefined;
945
- data: `0x${string}`;
946
- logIndex: `0x${string}` | null;
947
- removed: boolean;
948
- topics: `0x${string}`[];
949
- transactionHash: `0x${string}` | null;
950
- transactionIndex: `0x${string}` | null;
951
- }[];
952
- logsBloom?: `0x${string}` | undefined;
953
- root?: `0x${string}` | undefined;
954
- status: `0x${string}`;
955
- to: `0x${string}` | null;
956
- transactionHash: `0x${string}`;
957
- transactionIndex: `0x${string}`;
958
- type: `0x${string}`;
959
- };
960
- };
961
- recipient: `0x${string}` | null;
962
- sender: `0x${string}`;
963
- status: "reverted" | "success";
964
- timestamp: string | null;
965
- transactionHash: `0x${string}`;
966
- transactionIndex: number;
967
- type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
968
- };
969
- outputFormat: "json";
970
- status: 200;
878
+ output: null;
879
+ outputFormat: "body";
880
+ status: 402;
971
881
  input: {
972
882
  param: {
973
883
  transactionHash: `0x${string}`;
@@ -1004,14 +914,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1004
914
  } | {
1005
915
  output: {
1006
916
  error: {
1007
- code: "query_invalid";
917
+ code: "api_key_invalid" | "api_key_missing";
1008
918
  details?: readonly Response.error.Detail[] | undefined;
1009
919
  message: string;
1010
920
  };
1011
921
  requestId: string;
1012
922
  };
1013
923
  outputFormat: "json";
1014
- status: 400;
924
+ status: 401;
1015
925
  input: {
1016
926
  param: {
1017
927
  transactionHash: `0x${string}`;
@@ -1026,14 +936,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1026
936
  } | {
1027
937
  output: {
1028
938
  error: {
1029
- code: "transaction_invalid";
939
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1030
940
  details?: readonly Response.error.Detail[] | undefined;
1031
941
  message: string;
1032
942
  };
1033
943
  requestId: string;
1034
944
  };
1035
945
  outputFormat: "json";
1036
- status: 400;
946
+ status: 403;
1037
947
  input: {
1038
948
  param: {
1039
949
  transactionHash: `0x${string}`;
@@ -1048,14 +958,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1048
958
  } | {
1049
959
  output: {
1050
960
  error: {
1051
- code: "api_key_invalid" | "api_key_missing";
961
+ code: "payment_required" | "rate_limit_exceeded";
1052
962
  details?: readonly Response.error.Detail[] | undefined;
1053
963
  message: string;
1054
964
  };
1055
965
  requestId: string;
1056
966
  };
1057
967
  outputFormat: "json";
1058
- status: 401;
968
+ status: 429;
1059
969
  input: {
1060
970
  param: {
1061
971
  transactionHash: `0x${string}`;
@@ -1068,9 +978,16 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1068
978
  } | undefined;
1069
979
  };
1070
980
  } | {
1071
- output: null;
1072
- outputFormat: "body";
1073
- status: 402;
981
+ output: {
982
+ error: {
983
+ code: "query_invalid";
984
+ details?: readonly Response.error.Detail[] | undefined;
985
+ message: string;
986
+ };
987
+ requestId: string;
988
+ };
989
+ outputFormat: "json";
990
+ status: 400;
1074
991
  input: {
1075
992
  param: {
1076
993
  transactionHash: `0x${string}`;
@@ -1085,14 +1002,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1085
1002
  } | {
1086
1003
  output: {
1087
1004
  error: {
1088
- code: "api_key_forbidden";
1005
+ code: "upstream_error";
1089
1006
  details?: readonly Response.error.Detail[] | undefined;
1090
1007
  message: string;
1091
1008
  };
1092
1009
  requestId: string;
1093
1010
  };
1094
1011
  outputFormat: "json";
1095
- status: 403;
1012
+ status: 502;
1096
1013
  input: {
1097
1014
  param: {
1098
1015
  transactionHash: `0x${string}`;
@@ -1107,14 +1024,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1107
1024
  } | {
1108
1025
  output: {
1109
1026
  error: {
1110
- code: "receipt_not_found";
1027
+ code: "transaction_invalid";
1111
1028
  details?: readonly Response.error.Detail[] | undefined;
1112
1029
  message: string;
1113
1030
  };
1114
1031
  requestId: string;
1115
1032
  };
1116
1033
  outputFormat: "json";
1117
- status: 404;
1034
+ status: 400;
1118
1035
  input: {
1119
1036
  param: {
1120
1037
  transactionHash: `0x${string}`;
@@ -1129,14 +1046,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1129
1046
  } | {
1130
1047
  output: {
1131
1048
  error: {
1132
- code: "payment_required" | "rate_limit_exceeded";
1049
+ code: "receipt_not_found";
1133
1050
  details?: readonly Response.error.Detail[] | undefined;
1134
1051
  message: string;
1135
1052
  };
1136
1053
  requestId: string;
1137
1054
  };
1138
1055
  outputFormat: "json";
1139
- status: 429;
1056
+ status: 404;
1140
1057
  input: {
1141
1058
  param: {
1142
1059
  transactionHash: `0x${string}`;
@@ -1150,15 +1067,98 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
1150
1067
  };
1151
1068
  } | {
1152
1069
  output: {
1153
- error: {
1154
- code: "upstream_error";
1155
- details?: readonly Response.error.Detail[] | undefined;
1156
- message: string;
1070
+ blockHash: `0x${string}` | null;
1071
+ blockNumber: number;
1072
+ contractAddress: `0x${string}` | null;
1073
+ cumulativeGasUsed: number;
1074
+ effectiveGasPrice: string;
1075
+ feeAmount: {
1076
+ baseUnits: string;
1077
+ currency: string;
1078
+ decimals: number;
1079
+ formatted: string;
1080
+ valuation?: {
1081
+ amount: string;
1082
+ currency: string;
1083
+ } | null | undefined;
1157
1084
  };
1158
- requestId: string;
1085
+ feePayer?: `0x${string}` | undefined;
1086
+ feeToken?: {
1087
+ address: `0x${string}`;
1088
+ currency: string;
1089
+ decimals: number;
1090
+ logoUri?: string | undefined;
1091
+ name: string;
1092
+ symbol: string;
1093
+ verified?: boolean | undefined;
1094
+ } | undefined;
1095
+ gasUsed: number;
1096
+ id: `0x${string}`;
1097
+ logs: {
1098
+ [x: string]: import("hono/utils/types").JSONValue;
1099
+ address: `0x${string}`;
1100
+ blockHash: `0x${string}` | null;
1101
+ blockNumber: `0x${string}` | null;
1102
+ blockTimestamp?: `0x${string}` | null | undefined;
1103
+ data: `0x${string}`;
1104
+ logIndex: `0x${string}` | null;
1105
+ removed: boolean;
1106
+ topics: `0x${string}`[];
1107
+ transactionHash: `0x${string}` | null;
1108
+ transactionIndex: `0x${string}` | null;
1109
+ }[];
1110
+ meta: {
1111
+ valuation?: {
1112
+ asOf: string;
1113
+ basis: "nominal";
1114
+ source: string;
1115
+ } | undefined;
1116
+ rpc: {
1117
+ [x: string]: import("hono/utils/types").JSONValue;
1118
+ blobGasPrice?: `0x${string}` | undefined;
1119
+ blobGasUsed?: `0x${string}` | undefined;
1120
+ blockHash: `0x${string}` | null;
1121
+ blockNumber: `0x${string}`;
1122
+ blockTimestamp?: `0x${string}` | null | undefined;
1123
+ contractAddress?: `0x${string}` | null | undefined;
1124
+ cumulativeGasUsed: `0x${string}`;
1125
+ effectiveGasPrice: `0x${string}`;
1126
+ feePayer?: `0x${string}` | null | undefined;
1127
+ feeToken?: `0x${string}` | null | undefined;
1128
+ from: `0x${string}`;
1129
+ gasUsed: `0x${string}`;
1130
+ logs: {
1131
+ [x: string]: import("hono/utils/types").JSONValue;
1132
+ address: `0x${string}`;
1133
+ blockHash: `0x${string}` | null;
1134
+ blockNumber: `0x${string}` | null;
1135
+ blockTimestamp?: `0x${string}` | null | undefined;
1136
+ data: `0x${string}`;
1137
+ logIndex: `0x${string}` | null;
1138
+ removed: boolean;
1139
+ topics: `0x${string}`[];
1140
+ transactionHash: `0x${string}` | null;
1141
+ transactionIndex: `0x${string}` | null;
1142
+ }[];
1143
+ logsBloom?: `0x${string}` | undefined;
1144
+ root?: `0x${string}` | undefined;
1145
+ status: `0x${string}`;
1146
+ to: `0x${string}` | null;
1147
+ transactionHash: `0x${string}`;
1148
+ transactionIndex: `0x${string}`;
1149
+ type: `0x${string}`;
1150
+ };
1151
+ };
1152
+ recipient: `0x${string}` | null;
1153
+ sender: `0x${string}`;
1154
+ status: "reverted" | "success";
1155
+ timestamp: string | null;
1156
+ transactionHash: `0x${string}`;
1157
+ transactionIndex: number;
1158
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1159
1159
  };
1160
1160
  outputFormat: "json";
1161
- status: 502;
1161
+ status: 200;
1162
1162
  input: {
1163
1163
  param: {
1164
1164
  transactionHash: `0x${string}`;
@@ -96,7 +96,7 @@ export declare function rpc(): import("hono/hono-base").HonoBase<App.Environment
96
96
  } | {
97
97
  output: {
98
98
  error: {
99
- code: "api_key_forbidden";
99
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
100
100
  details?: readonly Response.error.Detail[] | undefined;
101
101
  message: string;
102
102
  };
@@ -310,7 +310,7 @@ async function passthrough(c, chainId, options) {
310
310
  const upstream_rpc = !zone && principal?.type === 'public' && typeof rpc !== 'function' ? undefined : rpc;
311
311
  // Anonymous callers use the built-in public RPC unless a resolver chooses a
312
312
  // different public upstream.
313
- const { basicAuth, bearerAuth, publicZoneUrl, url: resolvedUrl, } = Viem.resolveRpc(upstream_rpc, { chainId, principal, zone });
313
+ const { basicAuth, bearerAuth, publicZoneUrl, zoneHeaders, url: resolvedUrl, } = Viem.resolveRpc(upstream_rpc, { chainId, principal, zone });
314
314
  const usePublicZoneUrl = Boolean(zone && zoneToken);
315
315
  const url = usePublicZoneUrl ? publicZoneUrl : resolvedUrl;
316
316
  // The chain id is syntactically valid but this deployment has no RPC upstream
@@ -326,6 +326,9 @@ async function passthrough(c, chainId, options) {
326
326
  for (const [name, value] of c.req.raw.headers)
327
327
  if (!strippedHeaders.has(name.toLowerCase()))
328
328
  headers.set(name, value);
329
+ if (zoneHeaders)
330
+ for (const [name, value] of new Headers(zoneHeaders))
331
+ headers.set(name, value);
329
332
  // Public Zone endpoints authenticate with the caller's token, never internal RPC credentials.
330
333
  if (!usePublicZoneUrl && basicAuth)
331
334
  headers.set('authorization', `Basic ${btoa(basicAuth)}`);