tapimo 0.5.2 → 0.6.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 (299) hide show
  1. package/dist/App.d.ts +13987 -5755
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/admin/App.d.ts +910 -412
  5. package/dist/admin/App.d.ts.map +1 -1
  6. package/dist/admin/App.js +4 -0
  7. package/dist/admin/App.js.map +1 -1
  8. package/dist/admin/apps/early-access.d.ts +148 -0
  9. package/dist/admin/apps/early-access.d.ts.map +1 -0
  10. package/dist/admin/apps/early-access.js +133 -0
  11. package/dist/admin/apps/early-access.js.map +1 -0
  12. package/dist/admin/apps/verified-tokens.d.ts +643 -118
  13. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  14. package/dist/admin/apps/verified-tokens.js +214 -1
  15. package/dist/admin/apps/verified-tokens.js.map +1 -1
  16. package/dist/admin/ui.generated.d.ts +1 -1
  17. package/dist/admin/ui.generated.d.ts.map +1 -1
  18. package/dist/admin/ui.generated.js +45 -33
  19. package/dist/admin/ui.generated.js.map +1 -1
  20. package/dist/apps/data/App.d.ts +3733 -2428
  21. package/dist/apps/data/App.d.ts.map +1 -1
  22. package/dist/apps/data/App.js +11 -6
  23. package/dist/apps/data/App.js.map +1 -1
  24. package/dist/apps/data/FundingQuoteProviders.d.ts +34 -1
  25. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  26. package/dist/apps/data/FundingQuoteProviders.js +193 -2
  27. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  28. package/dist/apps/data/FxOracle.d.ts +71 -0
  29. package/dist/apps/data/FxOracle.d.ts.map +1 -0
  30. package/dist/apps/data/FxOracle.js +97 -0
  31. package/dist/apps/data/FxOracle.js.map +1 -0
  32. package/dist/apps/data/index.d.ts +1 -0
  33. package/dist/apps/data/index.d.ts.map +1 -1
  34. package/dist/apps/data/index.js +1 -0
  35. package/dist/apps/data/index.js.map +1 -1
  36. package/dist/apps/data/routes/activities.d.ts +3575 -1358
  37. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  38. package/dist/apps/data/routes/activities.js +230 -88
  39. package/dist/apps/data/routes/activities.js.map +1 -1
  40. package/dist/apps/data/routes/addresses.d.ts +963 -342
  41. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  42. package/dist/apps/data/routes/addresses.js +11 -9
  43. package/dist/apps/data/routes/addresses.js.map +1 -1
  44. package/dist/apps/data/routes/balances.d.ts +108 -57
  45. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  46. package/dist/apps/data/routes/balances.js +88 -45
  47. package/dist/apps/data/routes/balances.js.map +1 -1
  48. package/dist/apps/data/routes/coingecko.d.ts +169 -169
  49. package/dist/apps/data/routes/exchanges.d.ts +952 -201
  50. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  51. package/dist/apps/data/routes/exchanges.js +518 -76
  52. package/dist/apps/data/routes/exchanges.js.map +1 -1
  53. package/dist/apps/data/routes/fee-amm.d.ts +24 -24
  54. package/dist/apps/data/routes/funding.d.ts +8 -2
  55. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  56. package/dist/apps/data/routes/funding.js +32 -6
  57. package/dist/apps/data/routes/funding.js.map +1 -1
  58. package/dist/apps/data/routes/indexer.d.ts +5 -5
  59. package/dist/apps/data/routes/receipts.d.ts +392 -315
  60. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  61. package/dist/apps/data/routes/receipts.js +152 -77
  62. package/dist/apps/data/routes/receipts.js.map +1 -1
  63. package/dist/apps/data/routes/tokens.d.ts +166 -173
  64. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  65. package/dist/apps/data/routes/tokens.js +14 -12
  66. package/dist/apps/data/routes/tokens.js.map +1 -1
  67. package/dist/apps/data/routes/transactions.d.ts +277 -536
  68. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  69. package/dist/apps/data/routes/transactions.js +96 -77
  70. package/dist/apps/data/routes/transactions.js.map +1 -1
  71. package/dist/apps/data/routes/transfers.d.ts +82 -17
  72. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  73. package/dist/apps/data/routes/transfers.js +70 -13
  74. package/dist/apps/data/routes/transfers.js.map +1 -1
  75. package/dist/apps/data/routes/valuation.d.ts +307 -0
  76. package/dist/apps/data/routes/valuation.d.ts.map +1 -0
  77. package/dist/apps/data/routes/valuation.js +292 -0
  78. package/dist/apps/data/routes/valuation.js.map +1 -0
  79. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  80. package/dist/apps/data/routes/verified-tokens.js +7 -5
  81. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  82. package/dist/apps/data/routes/webhooks.d.ts +459 -479
  83. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  84. package/dist/apps/data/routes/webhooks.js +124 -25
  85. package/dist/apps/data/routes/webhooks.js.map +1 -1
  86. package/dist/apps/index.d.ts +1 -1
  87. package/dist/apps/index.d.ts.map +1 -1
  88. package/dist/apps/index.js +1 -1
  89. package/dist/apps/index.js.map +1 -1
  90. package/dist/apps/management/App.d.ts +8606 -1681
  91. package/dist/apps/management/App.d.ts.map +1 -1
  92. package/dist/apps/management/App.js +12 -1
  93. package/dist/apps/management/App.js.map +1 -1
  94. package/dist/apps/management/routes/api-keys.d.ts +23 -0
  95. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  96. package/dist/apps/management/routes/api-keys.js +5 -3
  97. package/dist/apps/management/routes/api-keys.js.map +1 -1
  98. package/dist/apps/management/routes/billing.d.ts +88 -48
  99. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  100. package/dist/apps/management/routes/billing.js +10 -2
  101. package/dist/apps/management/routes/billing.js.map +1 -1
  102. package/dist/apps/management/routes/faucet.d.ts +218 -0
  103. package/dist/apps/management/routes/faucet.d.ts.map +1 -0
  104. package/dist/apps/management/routes/faucet.js +139 -0
  105. package/dist/apps/management/routes/faucet.js.map +1 -0
  106. package/dist/apps/management/routes/invitations.d.ts +121 -121
  107. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  108. package/dist/apps/management/routes/invitations.js +3 -0
  109. package/dist/apps/management/routes/invitations.js.map +1 -1
  110. package/dist/apps/management/routes/invite-links.d.ts +197 -168
  111. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  112. package/dist/apps/management/routes/invite-links.js +26 -1
  113. package/dist/apps/management/routes/invite-links.js.map +1 -1
  114. package/dist/apps/management/routes/me.d.ts +2 -0
  115. package/dist/apps/management/routes/me.d.ts.map +1 -1
  116. package/dist/apps/management/routes/me.js +4 -0
  117. package/dist/apps/management/routes/me.js.map +1 -1
  118. package/dist/apps/management/routes/members.d.ts +49 -49
  119. package/dist/apps/management/routes/orgs.d.ts +91 -91
  120. package/dist/apps/management/routes/projects.d.ts +115 -115
  121. package/dist/apps/management/routes/usage.d.ts +35 -32
  122. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  123. package/dist/apps/management/routes/usage.js +4 -0
  124. package/dist/apps/management/routes/usage.js.map +1 -1
  125. package/dist/apps/management/routes/verified-token-requests.d.ts +697 -0
  126. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -0
  127. package/dist/apps/management/routes/verified-token-requests.js +271 -0
  128. package/dist/apps/management/routes/verified-token-requests.js.map +1 -0
  129. package/dist/apps/management/routes/webhooks.d.ts +6977 -0
  130. package/dist/apps/management/routes/webhooks.d.ts.map +1 -0
  131. package/dist/apps/management/routes/webhooks.js +573 -0
  132. package/dist/apps/management/routes/webhooks.js.map +1 -0
  133. package/dist/apps/mcp.d.ts +9 -2
  134. package/dist/apps/mcp.d.ts.map +1 -1
  135. package/dist/apps/mcp.js +9 -4
  136. package/dist/apps/mcp.js.map +1 -1
  137. package/dist/cli/Cli.d.ts.map +1 -1
  138. package/dist/cli/Cli.js +7 -2
  139. package/dist/cli/Cli.js.map +1 -1
  140. package/dist/db/Db.d.ts +4 -0
  141. package/dist/db/Db.d.ts.map +1 -1
  142. package/dist/db/Db.js +83 -0
  143. package/dist/db/Db.js.map +1 -1
  144. package/dist/db/Schema.d.ts +41 -0
  145. package/dist/db/Schema.d.ts.map +1 -1
  146. package/dist/db/Schema.js +45 -0
  147. package/dist/db/Schema.js.map +1 -1
  148. package/dist/db/tables/earlyAccess.d.ts +50 -0
  149. package/dist/db/tables/earlyAccess.d.ts.map +1 -0
  150. package/dist/db/tables/earlyAccess.js +63 -0
  151. package/dist/db/tables/earlyAccess.js.map +1 -0
  152. package/dist/db/tables/invitations.d.ts +12 -1
  153. package/dist/db/tables/invitations.d.ts.map +1 -1
  154. package/dist/db/tables/invitations.js +23 -0
  155. package/dist/db/tables/invitations.js.map +1 -1
  156. package/dist/db/tables/inviteLinks.d.ts +10 -2
  157. package/dist/db/tables/inviteLinks.d.ts.map +1 -1
  158. package/dist/db/tables/inviteLinks.js +10 -1
  159. package/dist/db/tables/inviteLinks.js.map +1 -1
  160. package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
  161. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  162. package/dist/db/tables/sponsoredTransactions.js +2 -0
  163. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  164. package/dist/db/tables/verifiedTokenRequests.d.ts +94 -0
  165. package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -0
  166. package/dist/db/tables/verifiedTokenRequests.js +120 -0
  167. package/dist/db/tables/verifiedTokenRequests.js.map +1 -0
  168. package/dist/db/tables/webhookSubscriptions.d.ts +14 -0
  169. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  170. package/dist/db/tables/webhookSubscriptions.js +16 -0
  171. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  172. package/dist/internal/Auth.d.ts +43 -2
  173. package/dist/internal/Auth.d.ts.map +1 -1
  174. package/dist/internal/Auth.js +60 -45
  175. package/dist/internal/Auth.js.map +1 -1
  176. package/dist/internal/FundingQuotes.d.ts +69 -15
  177. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  178. package/dist/internal/FundingQuotes.js +74 -25
  179. package/dist/internal/FundingQuotes.js.map +1 -1
  180. package/dist/internal/Log.d.ts +19 -1
  181. package/dist/internal/Log.d.ts.map +1 -1
  182. package/dist/internal/Log.js +2 -0
  183. package/dist/internal/Log.js.map +1 -1
  184. package/dist/internal/MetricSink.d.ts.map +1 -1
  185. package/dist/internal/MetricSink.js +9 -0
  186. package/dist/internal/MetricSink.js.map +1 -1
  187. package/dist/internal/OpenApi.d.ts +2 -2
  188. package/dist/internal/OpenApi.d.ts.map +1 -1
  189. package/dist/internal/OpenApi.js +3 -0
  190. package/dist/internal/OpenApi.js.map +1 -1
  191. package/dist/internal/Schema.d.ts +14 -5
  192. package/dist/internal/Schema.d.ts.map +1 -1
  193. package/dist/internal/Schema.js +23 -5
  194. package/dist/internal/Schema.js.map +1 -1
  195. package/dist/internal/Value.d.ts +18 -0
  196. package/dist/internal/Value.d.ts.map +1 -1
  197. package/dist/internal/Value.js +11 -1
  198. package/dist/internal/Value.js.map +1 -1
  199. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  200. package/dist/internal/VerifiedTokens.js +10 -1
  201. package/dist/internal/VerifiedTokens.js.map +1 -1
  202. package/dist/internal/Viem.d.ts +1 -1
  203. package/dist/internal/Webhooks.d.ts +24 -3
  204. package/dist/internal/Webhooks.d.ts.map +1 -1
  205. package/dist/internal/Webhooks.js +34 -8
  206. package/dist/internal/Webhooks.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/App.ts +9 -1
  209. package/src/Client.test-d.ts +638 -6
  210. package/src/admin/App.ts +4 -0
  211. package/src/admin/apps/early-access.test.ts +125 -0
  212. package/src/admin/apps/early-access.ts +175 -0
  213. package/src/admin/apps/verified-tokens.test.ts +201 -0
  214. package/src/admin/apps/verified-tokens.ts +532 -286
  215. package/src/admin/ui/plugin.ts +2 -1
  216. package/src/admin/ui/src/lib/early-access.ts +63 -0
  217. package/src/admin/ui/src/lib/verified-tokens.ts +79 -0
  218. package/src/admin/ui/src/routeTree.gen.ts +33 -2
  219. package/src/admin/ui/src/routes/__root.tsx +2 -1
  220. package/src/admin/ui/src/routes/early-access.tsx +157 -0
  221. package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
  222. package/src/admin/ui.generated.ts +48 -33
  223. package/src/apps/data/App.ts +22 -14
  224. package/src/apps/data/FundingQuoteProviders.test.ts +298 -0
  225. package/src/apps/data/FundingQuoteProviders.ts +257 -4
  226. package/src/apps/data/FxOracle.test.ts +118 -0
  227. package/src/apps/data/FxOracle.ts +153 -0
  228. package/src/apps/data/index.ts +1 -0
  229. package/src/apps/data/routes/activities.test.ts +173 -3
  230. package/src/apps/data/routes/activities.ts +403 -132
  231. package/src/apps/data/routes/addresses.ts +19 -9
  232. package/src/apps/data/routes/balances.test.ts +144 -11
  233. package/src/apps/data/routes/balances.ts +140 -51
  234. package/src/apps/data/routes/exchanges.test.ts +540 -9
  235. package/src/apps/data/routes/exchanges.ts +690 -103
  236. package/src/apps/data/routes/funding.test.ts +84 -0
  237. package/src/apps/data/routes/funding.ts +38 -6
  238. package/src/apps/data/routes/receipts.test.ts +125 -23
  239. package/src/apps/data/routes/receipts.ts +205 -100
  240. package/src/apps/data/routes/tokens.test.ts +43 -0
  241. package/src/apps/data/routes/tokens.ts +27 -12
  242. package/src/apps/data/routes/transactions.test.ts +72 -19
  243. package/src/apps/data/routes/transactions.ts +162 -92
  244. package/src/apps/data/routes/transfers.test.ts +146 -4
  245. package/src/apps/data/routes/transfers.ts +91 -13
  246. package/src/apps/data/routes/valuation.test.ts +422 -0
  247. package/src/apps/data/routes/valuation.ts +423 -0
  248. package/src/apps/data/routes/verified-tokens.ts +14 -2
  249. package/src/apps/data/routes/webhooks.test.ts +56 -8
  250. package/src/apps/data/routes/webhooks.ts +144 -27
  251. package/src/apps/index.ts +1 -1
  252. package/src/apps/management/App.ts +13 -0
  253. package/src/apps/management/routes/api-keys.test.ts +87 -0
  254. package/src/apps/management/routes/api-keys.ts +4 -3
  255. package/src/apps/management/routes/billing.test.ts +112 -1
  256. package/src/apps/management/routes/billing.ts +7 -2
  257. package/src/apps/management/routes/faucet.test.ts +79 -0
  258. package/src/apps/management/routes/faucet.ts +185 -0
  259. package/src/apps/management/routes/invitations.test.ts +172 -0
  260. package/src/apps/management/routes/invitations.ts +3 -0
  261. package/src/apps/management/routes/invite-links.test.ts +117 -0
  262. package/src/apps/management/routes/invite-links.ts +43 -1
  263. package/src/apps/management/routes/me.test.ts +140 -88
  264. package/src/apps/management/routes/me.ts +6 -0
  265. package/src/apps/management/routes/usage.test.ts +6 -0
  266. package/src/apps/management/routes/usage.ts +7 -0
  267. package/src/apps/management/routes/verified-token-requests.test.ts +377 -0
  268. package/src/apps/management/routes/verified-token-requests.ts +397 -0
  269. package/src/apps/management/routes/webhooks.test.ts +426 -0
  270. package/src/apps/management/routes/webhooks.ts +672 -0
  271. package/src/apps/mcp.test.ts +13 -0
  272. package/src/apps/mcp.ts +18 -5
  273. package/src/cli/Cli.test.ts +36 -0
  274. package/src/cli/Cli.ts +7 -2
  275. package/src/db/Db.test.ts +19 -0
  276. package/src/db/Db.ts +95 -0
  277. package/src/db/Schema.ts +53 -0
  278. package/src/db/tables/earlyAccess.ts +86 -0
  279. package/src/db/tables/invitations.ts +26 -1
  280. package/src/db/tables/inviteLinks.ts +22 -3
  281. package/src/db/tables/sponsoredTransactions.ts +4 -0
  282. package/src/db/tables/verifiedTokenRequests.test.ts +200 -0
  283. package/src/db/tables/verifiedTokenRequests.ts +182 -0
  284. package/src/db/tables/webhookSubscriptions.ts +31 -0
  285. package/src/internal/Auth.ts +73 -45
  286. package/src/internal/FundingQuotes.test.ts +143 -1
  287. package/src/internal/FundingQuotes.ts +95 -28
  288. package/src/internal/Log.test-d.ts +21 -0
  289. package/src/internal/Log.test.ts +50 -0
  290. package/src/internal/Log.ts +24 -1
  291. package/src/internal/MetricSink.test.ts +160 -0
  292. package/src/internal/MetricSink.ts +10 -0
  293. package/src/internal/OpenApi.ts +3 -0
  294. package/src/internal/Schema.ts +50 -5
  295. package/src/internal/Value.test.ts +20 -0
  296. package/src/internal/Value.ts +24 -1
  297. package/src/internal/VerifiedTokens.ts +9 -1
  298. package/src/internal/Webhooks.test.ts +140 -0
  299. package/src/internal/Webhooks.ts +53 -9
@@ -4,6 +4,8 @@ import * as z from 'zod/mini';
4
4
  import type * as App from '../../../App.js';
5
5
  import * as Response from '../../../internal/Response.js';
6
6
  import * as Schema from '../../../internal/Schema.js';
7
+ import * as Transactions from './transactions.js';
8
+ import * as Valuation from './valuation.js';
7
9
  /** Zod schemas owned by the receipt handlers. */
8
10
  export declare namespace schema {
9
11
  /** One event log emitted by a transaction (RPC format). */
@@ -56,31 +58,13 @@ export declare namespace schema {
56
58
  type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
57
59
  }, z.core.$loose>;
58
60
  }
59
- /**
60
- * Metadata for a receipt: the verbatim JSON-RPC receipt (always present) plus
61
- * resources embedded on demand via `include`.
62
- */
61
+ /** Receipt metadata containing valuation provenance and the verbatim JSON-RPC receipt. */
63
62
  const ReceiptMeta: z.ZodMiniObject<{
64
- feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
65
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
66
- admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
67
- currency: z.ZodMiniString<string>;
68
- createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
69
- decimals: z.ZodMiniNumber<number>;
70
- holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
71
- id: z.ZodMiniString<string>;
72
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
73
- name: z.ZodMiniString<string>;
74
- quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
75
- symbol: z.ZodMiniString<string>;
76
- totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
77
- transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
78
- count: z.ZodMiniNumber<number>;
79
- firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
80
- lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
81
- }, z.core.$strip>>;
82
- verified: z.ZodMiniBoolean<boolean>;
83
- }, z.core.$strip>>>;
63
+ pricing: z.ZodMiniOptional<z.ZodMiniObject<{
64
+ asOf: z.ZodMiniString<string>;
65
+ basis: z.ZodMiniLiteral<"nominal">;
66
+ source: z.ZodMiniString<string>;
67
+ }, z.core.$strip>>;
84
68
  rpc: z.ZodMiniObject<{
85
69
  blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
86
70
  blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
@@ -115,11 +99,21 @@ export declare namespace schema {
115
99
  type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
116
100
  }, z.core.$loose>;
117
101
  }, z.core.$strip>;
102
+ /** The fee charged to the fee payer, carrying its value in the requested denomination. */
103
+ const FeeAmount: z.ZodMiniObject<{
104
+ baseUnits: z.ZodMiniString<string>;
105
+ currency: z.ZodMiniString<string>;
106
+ decimals: z.ZodMiniNumber<number>;
107
+ formatted: z.ZodMiniString<string>;
108
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
109
+ amount: z.ZodMiniString<string>;
110
+ currency: z.ZodMiniString<string>;
111
+ }, z.core.$strip>>>;
112
+ }, z.core.$strip>;
118
113
  /**
119
114
  * A humanized transaction receipt: decoded `status`/`type`, plain-number gas
120
- * and block fields, and decimal-string fee/price values. The raw event logs
121
- * are surfaced verbatim under `logs`, and the full JSON-RPC receipt under
122
- * `meta.rpc`.
115
+ * and block fields, a structured fee amount, and a decimal-string gas price.
116
+ * The raw event logs are surfaced under `logs`, and the RPC receipt under `meta.rpc`.
123
117
  */
124
118
  const Receipt: z.ZodMiniObject<{
125
119
  blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
@@ -127,9 +121,26 @@ export declare namespace schema {
127
121
  contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
128
122
  cumulativeGasUsed: z.ZodMiniNumber<number>;
129
123
  effectiveGasPrice: z.ZodMiniString<string>;
130
- feeAmount: z.ZodMiniString<string>;
124
+ feeAmount: z.ZodMiniObject<{
125
+ baseUnits: z.ZodMiniString<string>;
126
+ currency: z.ZodMiniString<string>;
127
+ decimals: z.ZodMiniNumber<number>;
128
+ formatted: z.ZodMiniString<string>;
129
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
130
+ amount: z.ZodMiniString<string>;
131
+ currency: z.ZodMiniString<string>;
132
+ }, z.core.$strip>>>;
133
+ }, z.core.$strip>;
131
134
  feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
132
- feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
135
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
136
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
137
+ currency: z.ZodMiniString<string>;
138
+ decimals: z.ZodMiniNumber<number>;
139
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
140
+ name: z.ZodMiniString<string>;
141
+ symbol: z.ZodMiniString<string>;
142
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
143
+ }, z.core.$strip>>>;
133
144
  gasUsed: z.ZodMiniNumber<number>;
134
145
  id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
135
146
  logs: z.ZodMiniArray<z.ZodMiniObject<{
@@ -145,26 +156,11 @@ export declare namespace schema {
145
156
  transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
146
157
  }, z.core.$loose>>;
147
158
  meta: z.ZodMiniObject<{
148
- feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
149
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
150
- admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
151
- currency: z.ZodMiniString<string>;
152
- createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
153
- decimals: z.ZodMiniNumber<number>;
154
- holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
155
- id: z.ZodMiniString<string>;
156
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
157
- name: z.ZodMiniString<string>;
158
- quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
159
- symbol: z.ZodMiniString<string>;
160
- totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
161
- transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
162
- count: z.ZodMiniNumber<number>;
163
- firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
164
- lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
165
- }, z.core.$strip>>;
166
- verified: z.ZodMiniBoolean<boolean>;
167
- }, z.core.$strip>>>;
159
+ pricing: z.ZodMiniOptional<z.ZodMiniObject<{
160
+ asOf: z.ZodMiniString<string>;
161
+ basis: z.ZodMiniLiteral<"nominal">;
162
+ source: z.ZodMiniString<string>;
163
+ }, z.core.$strip>>;
168
164
  rpc: z.ZodMiniObject<{
169
165
  blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
170
166
  blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
@@ -224,17 +220,18 @@ export declare namespace schema {
224
220
  const Params: z.ZodMiniObject<{
225
221
  transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
226
222
  }, z.core.$strip>;
227
- /** Optional related resource that callers opt into via `include`. */
223
+ /** Optional curated token fields that callers opt into via `include`. */
228
224
  const Include: z.ZodMiniEnum<{
229
- feeToken: "feeToken";
225
+ "feeToken.logoUri": "feeToken.logoUri";
226
+ "feeToken.verified": "feeToken.verified";
230
227
  }>;
231
228
  /**
232
229
  * Parses a comma-separated `include` query value into a list of optional
233
- * resources to embed. Extra lookups (e.g. fee-token metadata) only run when
234
- * explicitly requested, keeping the base receipt response fast.
230
+ * token fields to embed. Curated lookups only run when explicitly requested.
235
231
  */
236
232
  const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
237
- feeToken: "feeToken";
233
+ "feeToken.logoUri": "feeToken.logoUri";
234
+ "feeToken.verified": "feeToken.verified";
238
235
  }>>>;
239
236
  /** Query parameters for receipt requests. */
240
237
  const Query: z.ZodMiniObject<{
@@ -242,8 +239,10 @@ export declare namespace schema {
242
239
  mainnet: "mainnet";
243
240
  testnet: "testnet";
244
241
  }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
242
+ denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
245
243
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
246
- feeToken: "feeToken";
244
+ "feeToken.logoUri": "feeToken.logoUri";
245
+ "feeToken.verified": "feeToken.verified";
247
246
  }>>>;
248
247
  }, z.core.$strict>;
249
248
  /** A humanized receipt, with the verbatim JSON-RPC payload under `meta.rpc`. */
@@ -253,9 +252,26 @@ export declare namespace schema {
253
252
  contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
254
253
  cumulativeGasUsed: z.ZodMiniNumber<number>;
255
254
  effectiveGasPrice: z.ZodMiniString<string>;
256
- feeAmount: z.ZodMiniString<string>;
255
+ feeAmount: z.ZodMiniObject<{
256
+ baseUnits: z.ZodMiniString<string>;
257
+ currency: z.ZodMiniString<string>;
258
+ decimals: z.ZodMiniNumber<number>;
259
+ formatted: z.ZodMiniString<string>;
260
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
261
+ amount: z.ZodMiniString<string>;
262
+ currency: z.ZodMiniString<string>;
263
+ }, z.core.$strip>>>;
264
+ }, z.core.$strip>;
257
265
  feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
258
- feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
266
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
267
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
268
+ currency: z.ZodMiniString<string>;
269
+ decimals: z.ZodMiniNumber<number>;
270
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
271
+ name: z.ZodMiniString<string>;
272
+ symbol: z.ZodMiniString<string>;
273
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
274
+ }, z.core.$strip>>>;
259
275
  gasUsed: z.ZodMiniNumber<number>;
260
276
  id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
261
277
  logs: z.ZodMiniArray<z.ZodMiniObject<{
@@ -271,26 +287,11 @@ export declare namespace schema {
271
287
  transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
272
288
  }, z.core.$loose>>;
273
289
  meta: z.ZodMiniObject<{
274
- feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
275
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
276
- admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
277
- currency: z.ZodMiniString<string>;
278
- createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
279
- decimals: z.ZodMiniNumber<number>;
280
- holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
281
- id: z.ZodMiniString<string>;
282
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
283
- name: z.ZodMiniString<string>;
284
- quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
285
- symbol: z.ZodMiniString<string>;
286
- totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
287
- transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
288
- count: z.ZodMiniNumber<number>;
289
- firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
290
- lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
291
- }, z.core.$strip>>;
292
- verified: z.ZodMiniBoolean<boolean>;
293
- }, z.core.$strip>>>;
290
+ pricing: z.ZodMiniOptional<z.ZodMiniObject<{
291
+ asOf: z.ZodMiniString<string>;
292
+ basis: z.ZodMiniLiteral<"nominal">;
293
+ source: z.ZodMiniString<string>;
294
+ }, z.core.$strip>>;
294
295
  rpc: z.ZodMiniObject<{
295
296
  blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
296
297
  blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
@@ -347,18 +348,16 @@ export declare namespace schema {
347
348
  }
348
349
  /** Schemas for the getReceipts (list) operation. */
349
350
  namespace getReceipts {
350
- /**
351
- * Optional resources for the receipt list: the per-row `feeToken` embed
352
- * plus the response-wide capped `totalCount`. The detail route keeps its
353
- * own `feeToken`-only {@link getReceipt.Include}.
354
- */
351
+ /** Optional fee-token fields and response-wide count metadata. */
355
352
  const Include: z.ZodMiniEnum<{
356
- feeToken: "feeToken";
353
+ "feeToken.logoUri": "feeToken.logoUri";
354
+ "feeToken.verified": "feeToken.verified";
357
355
  totalCount: "totalCount";
358
356
  }>;
359
357
  /** Parses the comma-separated `include` value for the receipt list. */
360
358
  const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
361
- feeToken: "feeToken";
359
+ "feeToken.logoUri": "feeToken.logoUri";
360
+ "feeToken.verified": "feeToken.verified";
362
361
  totalCount: "totalCount";
363
362
  }>>>;
364
363
  /** Query parameters for receipt list requests. */
@@ -371,10 +370,12 @@ export declare namespace schema {
371
370
  testnet: "testnet";
372
371
  }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
373
372
  cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
373
+ denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
374
374
  feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
375
375
  feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
376
376
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
377
- feeToken: "feeToken";
377
+ "feeToken.logoUri": "feeToken.logoUri";
378
+ "feeToken.verified": "feeToken.verified";
378
379
  totalCount: "totalCount";
379
380
  }>>>;
380
381
  limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
@@ -399,6 +400,16 @@ export declare namespace schema {
399
400
  * which stores neither the block hash nor the event logs, so those fields are
400
401
  * `null`/empty in the list `meta.rpc` payload.
401
402
  */
403
+ /** Page-level resources: opt-in counts plus valuation rate provenance. */
404
+ const Meta: z.ZodMiniObject<{
405
+ pricing: z.ZodMiniOptional<z.ZodMiniObject<{
406
+ asOf: z.ZodMiniString<string>;
407
+ basis: z.ZodMiniLiteral<"nominal">;
408
+ source: z.ZodMiniString<string>;
409
+ }, z.core.$strip>>;
410
+ totalCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
411
+ totalCountCapped: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
412
+ }, z.core.$strip>;
402
413
  const Response: z.ZodMiniObject<{
403
414
  data: z.ZodMiniArray<z.ZodMiniObject<{
404
415
  blockHash: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
@@ -406,9 +417,26 @@ export declare namespace schema {
406
417
  contractAddress: z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
407
418
  cumulativeGasUsed: z.ZodMiniNumber<number>;
408
419
  effectiveGasPrice: z.ZodMiniString<string>;
409
- feeAmount: z.ZodMiniString<string>;
420
+ feeAmount: z.ZodMiniObject<{
421
+ baseUnits: z.ZodMiniString<string>;
422
+ currency: z.ZodMiniString<string>;
423
+ decimals: z.ZodMiniNumber<number>;
424
+ formatted: z.ZodMiniString<string>;
425
+ valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
426
+ amount: z.ZodMiniString<string>;
427
+ currency: z.ZodMiniString<string>;
428
+ }, z.core.$strip>>>;
429
+ }, z.core.$strip>;
410
430
  feePayer: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
411
- feeToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
431
+ feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
432
+ address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
433
+ currency: z.ZodMiniString<string>;
434
+ decimals: z.ZodMiniNumber<number>;
435
+ logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
436
+ name: z.ZodMiniString<string>;
437
+ symbol: z.ZodMiniString<string>;
438
+ verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
439
+ }, z.core.$strip>>>;
412
440
  gasUsed: z.ZodMiniNumber<number>;
413
441
  id: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
414
442
  logs: z.ZodMiniArray<z.ZodMiniObject<{
@@ -424,26 +452,11 @@ export declare namespace schema {
424
452
  transactionIndex: z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>;
425
453
  }, z.core.$loose>>;
426
454
  meta: z.ZodMiniObject<{
427
- feeToken: z.ZodMiniOptional<z.ZodMiniLazy<z.ZodMiniObject<{
428
- address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
429
- admin: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
430
- currency: z.ZodMiniString<string>;
431
- createdAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
432
- decimals: z.ZodMiniNumber<number>;
433
- holderCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
434
- id: z.ZodMiniString<string>;
435
- logoUri: z.ZodMiniOptional<z.ZodMiniString<string>>;
436
- name: z.ZodMiniString<string>;
437
- quoteToken: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
438
- symbol: z.ZodMiniString<string>;
439
- totalSupply: z.ZodMiniOptional<z.ZodMiniString<string>>;
440
- transferStats: z.ZodMiniOptional<z.ZodMiniObject<{
441
- count: z.ZodMiniNumber<number>;
442
- firstAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
443
- lastAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
444
- }, z.core.$strip>>;
445
- verified: z.ZodMiniBoolean<boolean>;
446
- }, z.core.$strip>>>;
455
+ pricing: z.ZodMiniOptional<z.ZodMiniObject<{
456
+ asOf: z.ZodMiniString<string>;
457
+ basis: z.ZodMiniLiteral<"nominal">;
458
+ source: z.ZodMiniString<string>;
459
+ }, z.core.$strip>>;
447
460
  rpc: z.ZodMiniObject<{
448
461
  blobGasPrice: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
449
462
  blobGasUsed: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
@@ -498,15 +511,20 @@ export declare namespace schema {
498
511
  }>>;
499
512
  }, z.core.$strip>>;
500
513
  meta: z.ZodMiniOptional<z.ZodMiniObject<{
501
- totalCountCapped: z.ZodMiniBoolean<boolean>;
502
- totalCount: z.ZodMiniNumber<number>;
514
+ pricing: z.ZodMiniOptional<z.ZodMiniObject<{
515
+ asOf: z.ZodMiniString<string>;
516
+ basis: z.ZodMiniLiteral<"nominal">;
517
+ source: z.ZodMiniString<string>;
518
+ }, z.core.$strip>>;
519
+ totalCount: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
520
+ totalCountCapped: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
503
521
  }, z.core.$strip>>;
504
522
  nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
505
523
  }, z.core.$strip>;
506
524
  }
507
525
  }
508
526
  /** Creates receipt handlers. */
509
- export declare function receipts(): import("hono/hono-base").HonoBase<App.Environment, {
527
+ export declare function receipts(options?: receipts.Options): import("hono/hono-base").HonoBase<App.Environment, {
510
528
  "/v1/transactions/receipts": {
511
529
  $get: {
512
530
  output: null;
@@ -519,37 +537,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
519
537
  'blockNumber.to'?: string | string[];
520
538
  chainId?: string | string[];
521
539
  cursor?: string | string[];
522
- feePayer?: string | string[];
523
- feeToken?: string | string[];
524
- include?: string | string[];
525
- limit?: string | string[];
526
- order?: string | string[];
527
- page?: string | string[];
528
- recipient?: string | string[];
529
- sender?: string | string[];
530
- status?: string | string[];
531
- 'timestamp.from'?: string | string[];
532
- 'timestamp.to'?: string | string[];
533
- } | undefined;
534
- };
535
- } | {
536
- output: {
537
- error: {
538
- code: "upstream_error";
539
- details?: readonly Response.error.Detail[] | undefined;
540
- message: string;
541
- };
542
- requestId: string;
543
- };
544
- outputFormat: "json";
545
- status: 502;
546
- input: {
547
- query?: {
548
- address?: string | string[];
549
- 'blockNumber.from'?: string | string[];
550
- 'blockNumber.to'?: string | string[];
551
- chainId?: string | string[];
552
- cursor?: string | string[];
540
+ denomination?: string | string[];
553
541
  feePayer?: string | string[];
554
542
  feeToken?: string | string[];
555
543
  include?: string | string[];
@@ -581,6 +569,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
581
569
  'blockNumber.to'?: string | string[];
582
570
  chainId?: string | string[];
583
571
  cursor?: string | string[];
572
+ denomination?: string | string[];
584
573
  feePayer?: string | string[];
585
574
  feeToken?: string | string[];
586
575
  include?: string | string[];
@@ -612,6 +601,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
612
601
  'blockNumber.to'?: string | string[];
613
602
  chainId?: string | string[];
614
603
  cursor?: string | string[];
604
+ denomination?: string | string[];
615
605
  feePayer?: string | string[];
616
606
  feeToken?: string | string[];
617
607
  include?: string | string[];
@@ -643,6 +633,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
643
633
  'blockNumber.to'?: string | string[];
644
634
  chainId?: string | string[];
645
635
  cursor?: string | string[];
636
+ denomination?: string | string[];
646
637
  feePayer?: string | string[];
647
638
  feeToken?: string | string[];
648
639
  include?: string | string[];
@@ -674,6 +665,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
674
665
  'blockNumber.to'?: string | string[];
675
666
  chainId?: string | string[];
676
667
  cursor?: string | string[];
668
+ denomination?: string | string[];
677
669
  feePayer?: string | string[];
678
670
  feeToken?: string | string[];
679
671
  include?: string | string[];
@@ -705,6 +697,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
705
697
  'blockNumber.to'?: string | string[];
706
698
  chainId?: string | string[];
707
699
  cursor?: string | string[];
700
+ denomination?: string | string[];
708
701
  feePayer?: string | string[];
709
702
  feeToken?: string | string[];
710
703
  include?: string | string[];
@@ -726,9 +719,26 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
726
719
  contractAddress: `0x${string}` | null;
727
720
  cumulativeGasUsed: number;
728
721
  effectiveGasPrice: string;
729
- feeAmount: 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
+ };
730
732
  feePayer?: `0x${string}` | undefined;
731
- feeToken?: `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;
732
742
  gasUsed: number;
733
743
  id: `0x${string}`;
734
744
  logs: {
@@ -745,25 +755,10 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
745
755
  transactionIndex: `0x${string}` | null;
746
756
  }[];
747
757
  meta: {
748
- feeToken?: {
749
- address: `0x${string}`;
750
- admin?: `0x${string}` | undefined;
751
- currency: string;
752
- createdAt?: string | undefined;
753
- decimals: number;
754
- holderCount?: number | undefined;
755
- id: string;
756
- logoUri?: string | undefined;
757
- name: string;
758
- quoteToken?: `0x${string}` | undefined;
759
- symbol: string;
760
- totalSupply?: string | undefined;
761
- transferStats?: {
762
- count: number;
763
- firstAt: string | null;
764
- lastAt: string | null;
765
- } | undefined;
766
- verified: boolean;
758
+ pricing?: {
759
+ asOf: string;
760
+ basis: "nominal";
761
+ source: string;
767
762
  } | undefined;
768
763
  rpc: {
769
764
  [x: string]: import("hono/utils/types").JSONValue;
@@ -810,8 +805,13 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
810
805
  type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
811
806
  }[];
812
807
  meta?: {
813
- totalCountCapped: boolean;
814
- totalCount: number;
808
+ pricing?: {
809
+ asOf: string;
810
+ basis: "nominal";
811
+ source: string;
812
+ } | undefined;
813
+ totalCount?: number | undefined;
814
+ totalCountCapped?: boolean | undefined;
815
815
  } | undefined;
816
816
  nextCursor: string | null;
817
817
  };
@@ -824,6 +824,39 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
824
824
  'blockNumber.to'?: string | string[];
825
825
  chainId?: string | string[];
826
826
  cursor?: string | string[];
827
+ denomination?: string | string[];
828
+ feePayer?: string | string[];
829
+ feeToken?: string | string[];
830
+ include?: string | string[];
831
+ limit?: string | string[];
832
+ order?: string | string[];
833
+ page?: string | string[];
834
+ recipient?: string | string[];
835
+ sender?: string | string[];
836
+ status?: string | string[];
837
+ 'timestamp.from'?: string | string[];
838
+ 'timestamp.to'?: string | string[];
839
+ } | undefined;
840
+ };
841
+ } | {
842
+ output: {
843
+ error: {
844
+ code: "upstream_error";
845
+ details?: readonly Response.error.Detail[] | undefined;
846
+ message: string;
847
+ };
848
+ requestId: string;
849
+ };
850
+ outputFormat: "json";
851
+ status: 502;
852
+ input: {
853
+ query?: {
854
+ address?: string | string[];
855
+ 'blockNumber.from'?: string | string[];
856
+ 'blockNumber.to'?: string | string[];
857
+ chainId?: string | string[];
858
+ cursor?: string | string[];
859
+ denomination?: string | string[];
827
860
  feePayer?: string | string[];
828
861
  feeToken?: string | string[];
829
862
  include?: string | string[];
@@ -852,20 +885,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
852
885
  } & {
853
886
  query?: {
854
887
  chainId?: string | string[];
888
+ denomination?: string | string[];
855
889
  include?: string | string[];
856
890
  } | undefined;
857
891
  };
858
892
  } | {
859
893
  output: {
860
894
  error: {
861
- code: "upstream_error";
895
+ code: "api_key_malformed";
862
896
  details?: readonly Response.error.Detail[] | undefined;
863
897
  message: string;
864
898
  };
865
899
  requestId: string;
866
900
  };
867
901
  outputFormat: "json";
868
- status: 502;
902
+ status: 400;
869
903
  input: {
870
904
  param: {
871
905
  transactionHash: `0x${string}`;
@@ -873,20 +907,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
873
907
  } & {
874
908
  query?: {
875
909
  chainId?: string | string[];
910
+ denomination?: string | string[];
876
911
  include?: string | string[];
877
912
  } | undefined;
878
913
  };
879
914
  } | {
880
915
  output: {
881
916
  error: {
882
- code: "api_key_malformed";
917
+ code: "api_key_invalid" | "api_key_missing";
883
918
  details?: readonly Response.error.Detail[] | undefined;
884
919
  message: string;
885
920
  };
886
921
  requestId: string;
887
922
  };
888
923
  outputFormat: "json";
889
- status: 400;
924
+ status: 401;
890
925
  input: {
891
926
  param: {
892
927
  transactionHash: `0x${string}`;
@@ -894,20 +929,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
894
929
  } & {
895
930
  query?: {
896
931
  chainId?: string | string[];
932
+ denomination?: string | string[];
897
933
  include?: string | string[];
898
934
  } | undefined;
899
935
  };
900
936
  } | {
901
937
  output: {
902
938
  error: {
903
- code: "api_key_invalid" | "api_key_missing";
939
+ code: "api_key_forbidden";
904
940
  details?: readonly Response.error.Detail[] | undefined;
905
941
  message: string;
906
942
  };
907
943
  requestId: string;
908
944
  };
909
945
  outputFormat: "json";
910
- status: 401;
946
+ status: 403;
911
947
  input: {
912
948
  param: {
913
949
  transactionHash: `0x${string}`;
@@ -915,20 +951,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
915
951
  } & {
916
952
  query?: {
917
953
  chainId?: string | string[];
954
+ denomination?: string | string[];
918
955
  include?: string | string[];
919
956
  } | undefined;
920
957
  };
921
958
  } | {
922
959
  output: {
923
960
  error: {
924
- code: "api_key_forbidden";
961
+ code: "payment_required" | "rate_limit_exceeded";
925
962
  details?: readonly Response.error.Detail[] | undefined;
926
963
  message: string;
927
964
  };
928
965
  requestId: string;
929
966
  };
930
967
  outputFormat: "json";
931
- status: 403;
968
+ status: 429;
932
969
  input: {
933
970
  param: {
934
971
  transactionHash: `0x${string}`;
@@ -936,20 +973,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
936
973
  } & {
937
974
  query?: {
938
975
  chainId?: string | string[];
976
+ denomination?: string | string[];
939
977
  include?: string | string[];
940
978
  } | undefined;
941
979
  };
942
980
  } | {
943
981
  output: {
944
982
  error: {
945
- code: "payment_required" | "rate_limit_exceeded";
983
+ code: "query_invalid";
946
984
  details?: readonly Response.error.Detail[] | undefined;
947
985
  message: string;
948
986
  };
949
987
  requestId: string;
950
988
  };
951
989
  outputFormat: "json";
952
- status: 429;
990
+ status: 400;
953
991
  input: {
954
992
  param: {
955
993
  transactionHash: `0x${string}`;
@@ -957,20 +995,21 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
957
995
  } & {
958
996
  query?: {
959
997
  chainId?: string | string[];
998
+ denomination?: string | string[];
960
999
  include?: string | string[];
961
1000
  } | undefined;
962
1001
  };
963
1002
  } | {
964
1003
  output: {
965
1004
  error: {
966
- code: "query_invalid";
1005
+ code: "upstream_error";
967
1006
  details?: readonly Response.error.Detail[] | undefined;
968
1007
  message: string;
969
1008
  };
970
1009
  requestId: string;
971
1010
  };
972
1011
  outputFormat: "json";
973
- status: 400;
1012
+ status: 502;
974
1013
  input: {
975
1014
  param: {
976
1015
  transactionHash: `0x${string}`;
@@ -978,6 +1017,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
978
1017
  } & {
979
1018
  query?: {
980
1019
  chainId?: string | string[];
1020
+ denomination?: string | string[];
981
1021
  include?: string | string[];
982
1022
  } | undefined;
983
1023
  };
@@ -999,6 +1039,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
999
1039
  } & {
1000
1040
  query?: {
1001
1041
  chainId?: string | string[];
1042
+ denomination?: string | string[];
1002
1043
  include?: string | string[];
1003
1044
  } | undefined;
1004
1045
  };
@@ -1020,6 +1061,7 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
1020
1061
  } & {
1021
1062
  query?: {
1022
1063
  chainId?: string | string[];
1064
+ denomination?: string | string[];
1023
1065
  include?: string | string[];
1024
1066
  } | undefined;
1025
1067
  };
@@ -1030,9 +1072,26 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
1030
1072
  contractAddress: `0x${string}` | null;
1031
1073
  cumulativeGasUsed: number;
1032
1074
  effectiveGasPrice: string;
1033
- feeAmount: 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;
1084
+ };
1034
1085
  feePayer?: `0x${string}` | undefined;
1035
- feeToken?: `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;
1036
1095
  gasUsed: number;
1037
1096
  id: `0x${string}`;
1038
1097
  logs: {
@@ -1049,25 +1108,10 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
1049
1108
  transactionIndex: `0x${string}` | null;
1050
1109
  }[];
1051
1110
  meta: {
1052
- feeToken?: {
1053
- address: `0x${string}`;
1054
- admin?: `0x${string}` | undefined;
1055
- currency: string;
1056
- createdAt?: string | undefined;
1057
- decimals: number;
1058
- holderCount?: number | undefined;
1059
- id: string;
1060
- logoUri?: string | undefined;
1061
- name: string;
1062
- quoteToken?: `0x${string}` | undefined;
1063
- symbol: string;
1064
- totalSupply?: string | undefined;
1065
- transferStats?: {
1066
- count: number;
1067
- firstAt: string | null;
1068
- lastAt: string | null;
1069
- } | undefined;
1070
- verified: boolean;
1111
+ pricing?: {
1112
+ asOf: string;
1113
+ basis: "nominal";
1114
+ source: string;
1071
1115
  } | undefined;
1072
1116
  rpc: {
1073
1117
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1122,26 +1166,50 @@ export declare function receipts(): import("hono/hono-base").HonoBase<App.Enviro
1122
1166
  } & {
1123
1167
  query?: {
1124
1168
  chainId?: string | string[];
1169
+ denomination?: string | string[];
1125
1170
  include?: string | string[];
1126
1171
  } | undefined;
1127
1172
  };
1128
1173
  };
1129
1174
  };
1130
1175
  }, "/", "/v1/transactions/:transactionHash/receipt">;
1176
+ export declare namespace receipts {
1177
+ /** Options for the receipt handlers. */
1178
+ type Options = {
1179
+ /** FX configuration backing fee valuation. */
1180
+ fx?: Valuation.addresses.Fx | undefined;
1181
+ };
1182
+ }
1131
1183
  /**
1132
- * Lists humanized receipts and embeds opt-in `include` resources (currently
1133
- * `feeToken`).
1184
+ * Lists humanized receipts with required fee-token metadata and optional curated fields.
1134
1185
  */
1135
1186
  export declare function listReceipts(c: Context<App.Environment>, options: listReceipts.Options): Promise<{
1136
- data: {
1187
+ data: Transactions.enrichFeeTokens.Output<Omit<{
1137
1188
  blockHash: `0x${string}` | null;
1138
1189
  blockNumber: number;
1139
1190
  contractAddress: `0x${string}` | null;
1140
1191
  cumulativeGasUsed: number;
1141
1192
  effectiveGasPrice: string;
1142
- feeAmount: string;
1193
+ feeAmount: {
1194
+ baseUnits: string;
1195
+ currency: string;
1196
+ decimals: number;
1197
+ formatted: string;
1198
+ valuation?: {
1199
+ amount: string;
1200
+ currency: string;
1201
+ } | null | undefined;
1202
+ };
1143
1203
  feePayer?: `0x${string}` | undefined;
1144
- feeToken?: `0x${string}` | undefined;
1204
+ feeToken?: {
1205
+ address: `0x${string}`;
1206
+ currency: string;
1207
+ decimals: number;
1208
+ logoUri?: string | undefined;
1209
+ name: string;
1210
+ symbol: string;
1211
+ verified?: boolean | undefined;
1212
+ } | undefined;
1145
1213
  gasUsed: number;
1146
1214
  id: `0x${string}`;
1147
1215
  logs: {
@@ -1158,25 +1226,10 @@ export declare function listReceipts(c: Context<App.Environment>, options: listR
1158
1226
  transactionIndex: `0x${string}` | null;
1159
1227
  }[];
1160
1228
  meta: {
1161
- feeToken?: {
1162
- address: `0x${string}`;
1163
- admin?: `0x${string}` | undefined;
1164
- currency: string;
1165
- createdAt?: string | undefined;
1166
- decimals: number;
1167
- holderCount?: number | undefined;
1168
- id: string;
1169
- logoUri?: string | undefined;
1170
- name: string;
1171
- quoteToken?: `0x${string}` | undefined;
1172
- symbol: string;
1173
- totalSupply?: string | undefined;
1174
- transferStats?: {
1175
- count: number;
1176
- firstAt: string | null;
1177
- lastAt: string | null;
1178
- } | undefined;
1179
- verified: boolean;
1229
+ pricing?: {
1230
+ asOf: string;
1231
+ basis: "nominal";
1232
+ source: string;
1180
1233
  } | undefined;
1181
1234
  rpc: {
1182
1235
  [x: string]: unknown;
@@ -1221,105 +1274,17 @@ export declare function listReceipts(c: Context<App.Environment>, options: listR
1221
1274
  transactionHash: `0x${string}`;
1222
1275
  transactionIndex: number;
1223
1276
  type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1224
- }[];
1277
+ }, "feeToken">>[];
1225
1278
  nextCursor: string | null;
1226
1279
  }>;
1227
1280
  export declare namespace listReceipts {
1228
1281
  type Options = getReceipts.Options & {
1229
- /** Optional related resources to embed (e.g. `feeToken`). */
1282
+ /** Optional curated fee-token fields to embed. */
1230
1283
  include: readonly z.output<typeof schema.getReceipt.Include>[];
1231
1284
  };
1232
1285
  }
1233
1286
  export declare function getReceipts(c: Context<App.Environment>, options: getReceipts.Options): Promise<{
1234
- data: {
1235
- blockHash: `0x${string}` | null;
1236
- blockNumber: number;
1237
- contractAddress: `0x${string}` | null;
1238
- cumulativeGasUsed: number;
1239
- effectiveGasPrice: string;
1240
- feeAmount: string;
1241
- feePayer?: `0x${string}` | undefined;
1242
- feeToken?: `0x${string}` | undefined;
1243
- gasUsed: number;
1244
- id: `0x${string}`;
1245
- logs: {
1246
- [x: string]: unknown;
1247
- address: `0x${string}`;
1248
- blockHash: `0x${string}` | null;
1249
- blockNumber: `0x${string}` | null;
1250
- blockTimestamp?: `0x${string}` | null | undefined;
1251
- data: `0x${string}`;
1252
- logIndex: `0x${string}` | null;
1253
- removed: boolean;
1254
- topics: `0x${string}`[];
1255
- transactionHash: `0x${string}` | null;
1256
- transactionIndex: `0x${string}` | null;
1257
- }[];
1258
- meta: {
1259
- feeToken?: {
1260
- address: `0x${string}`;
1261
- admin?: `0x${string}` | undefined;
1262
- currency: string;
1263
- createdAt?: string | undefined;
1264
- decimals: number;
1265
- holderCount?: number | undefined;
1266
- id: string;
1267
- logoUri?: string | undefined;
1268
- name: string;
1269
- quoteToken?: `0x${string}` | undefined;
1270
- symbol: string;
1271
- totalSupply?: string | undefined;
1272
- transferStats?: {
1273
- count: number;
1274
- firstAt: string | null;
1275
- lastAt: string | null;
1276
- } | undefined;
1277
- verified: boolean;
1278
- } | undefined;
1279
- rpc: {
1280
- [x: string]: unknown;
1281
- blobGasPrice?: `0x${string}` | undefined;
1282
- blobGasUsed?: `0x${string}` | undefined;
1283
- blockHash: `0x${string}` | null;
1284
- blockNumber: `0x${string}`;
1285
- blockTimestamp?: `0x${string}` | null | undefined;
1286
- contractAddress?: `0x${string}` | null | undefined;
1287
- cumulativeGasUsed: `0x${string}`;
1288
- effectiveGasPrice: `0x${string}`;
1289
- feePayer?: `0x${string}` | null | undefined;
1290
- feeToken?: `0x${string}` | null | undefined;
1291
- from: `0x${string}`;
1292
- gasUsed: `0x${string}`;
1293
- logs: {
1294
- [x: string]: unknown;
1295
- address: `0x${string}`;
1296
- blockHash: `0x${string}` | null;
1297
- blockNumber: `0x${string}` | null;
1298
- blockTimestamp?: `0x${string}` | null | undefined;
1299
- data: `0x${string}`;
1300
- logIndex: `0x${string}` | null;
1301
- removed: boolean;
1302
- topics: `0x${string}`[];
1303
- transactionHash: `0x${string}` | null;
1304
- transactionIndex: `0x${string}` | null;
1305
- }[];
1306
- logsBloom?: `0x${string}` | undefined;
1307
- root?: `0x${string}` | undefined;
1308
- status: `0x${string}`;
1309
- to: `0x${string}` | null;
1310
- transactionHash: `0x${string}`;
1311
- transactionIndex: `0x${string}`;
1312
- type: `0x${string}`;
1313
- };
1314
- };
1315
- recipient: `0x${string}` | null;
1316
- sender: `0x${string}`;
1317
- status: "reverted" | "success";
1318
- timestamp: string | null;
1319
- transactionHash: `0x${string}`;
1320
- transactionIndex: number;
1321
- type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1322
- }[];
1287
+ data: humanizeReceipt.Output[];
1323
1288
  nextCursor: string | null;
1324
1289
  }>;
1325
1290
  export declare namespace getReceipts {
@@ -1373,12 +1338,14 @@ export declare namespace embedReceipts {
1373
1338
  type Options = {
1374
1339
  /** Target chain id. */
1375
1340
  chainId: z.output<typeof Schema.ChainId>;
1341
+ /** Optional curated fee-token fields to embed. */
1342
+ include: readonly string[];
1376
1343
  /**
1377
1344
  * Pre-fetched humanized receipts for the page (the `status`-filtered
1378
1345
  * transactions path). When provided, the receipts query is skipped and only
1379
1346
  * the page's event logs are fetched and reattached.
1380
1347
  */
1381
- receipts?: readonly z.output<typeof schema.Receipt>[] | undefined;
1348
+ receipts?: readonly humanizeReceipt.Output[] | undefined;
1382
1349
  /**
1383
1350
  * The page's humanized transaction rows. Typed structurally (rather than as
1384
1351
  * the transactions schema output) so this module never touches the
@@ -1400,16 +1367,126 @@ export declare namespace embedReceipts {
1400
1367
  }[];
1401
1368
  };
1402
1369
  }
1370
+ /** Resolves required RPC fee-token metadata and optional curated fields for receipts. */
1371
+ export declare function enrichReceipts(c: Context<App.Environment>, options: enrichReceipts.Options): Promise<Transactions.enrichFeeTokens.Output<Omit<{
1372
+ blockHash: `0x${string}` | null;
1373
+ blockNumber: number;
1374
+ contractAddress: `0x${string}` | null;
1375
+ cumulativeGasUsed: number;
1376
+ effectiveGasPrice: string;
1377
+ feeAmount: {
1378
+ baseUnits: string;
1379
+ currency: string;
1380
+ decimals: number;
1381
+ formatted: string;
1382
+ valuation?: {
1383
+ amount: string;
1384
+ currency: string;
1385
+ } | null | undefined;
1386
+ };
1387
+ feePayer?: `0x${string}` | undefined;
1388
+ feeToken?: {
1389
+ address: `0x${string}`;
1390
+ currency: string;
1391
+ decimals: number;
1392
+ logoUri?: string | undefined;
1393
+ name: string;
1394
+ symbol: string;
1395
+ verified?: boolean | undefined;
1396
+ } | undefined;
1397
+ gasUsed: number;
1398
+ id: `0x${string}`;
1399
+ logs: {
1400
+ [x: string]: unknown;
1401
+ address: `0x${string}`;
1402
+ blockHash: `0x${string}` | null;
1403
+ blockNumber: `0x${string}` | null;
1404
+ blockTimestamp?: `0x${string}` | null | undefined;
1405
+ data: `0x${string}`;
1406
+ logIndex: `0x${string}` | null;
1407
+ removed: boolean;
1408
+ topics: `0x${string}`[];
1409
+ transactionHash: `0x${string}` | null;
1410
+ transactionIndex: `0x${string}` | null;
1411
+ }[];
1412
+ meta: {
1413
+ pricing?: {
1414
+ asOf: string;
1415
+ basis: "nominal";
1416
+ source: string;
1417
+ } | undefined;
1418
+ rpc: {
1419
+ [x: string]: unknown;
1420
+ blobGasPrice?: `0x${string}` | undefined;
1421
+ blobGasUsed?: `0x${string}` | undefined;
1422
+ blockHash: `0x${string}` | null;
1423
+ blockNumber: `0x${string}`;
1424
+ blockTimestamp?: `0x${string}` | null | undefined;
1425
+ contractAddress?: `0x${string}` | null | undefined;
1426
+ cumulativeGasUsed: `0x${string}`;
1427
+ effectiveGasPrice: `0x${string}`;
1428
+ feePayer?: `0x${string}` | null | undefined;
1429
+ feeToken?: `0x${string}` | null | undefined;
1430
+ from: `0x${string}`;
1431
+ gasUsed: `0x${string}`;
1432
+ logs: {
1433
+ [x: string]: unknown;
1434
+ address: `0x${string}`;
1435
+ blockHash: `0x${string}` | null;
1436
+ blockNumber: `0x${string}` | null;
1437
+ blockTimestamp?: `0x${string}` | null | undefined;
1438
+ data: `0x${string}`;
1439
+ logIndex: `0x${string}` | null;
1440
+ removed: boolean;
1441
+ topics: `0x${string}`[];
1442
+ transactionHash: `0x${string}` | null;
1443
+ transactionIndex: `0x${string}` | null;
1444
+ }[];
1445
+ logsBloom?: `0x${string}` | undefined;
1446
+ root?: `0x${string}` | undefined;
1447
+ status: `0x${string}`;
1448
+ to: `0x${string}` | null;
1449
+ transactionHash: `0x${string}`;
1450
+ transactionIndex: `0x${string}`;
1451
+ type: `0x${string}`;
1452
+ };
1453
+ };
1454
+ recipient: `0x${string}` | null;
1455
+ sender: `0x${string}`;
1456
+ status: "reverted" | "success";
1457
+ timestamp: string | null;
1458
+ transactionHash: `0x${string}`;
1459
+ transactionIndex: number;
1460
+ type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
1461
+ }, "feeToken">>[]>;
1462
+ export declare namespace enrichReceipts {
1463
+ /** Inputs for enriching humanized receipts. */
1464
+ type Options = {
1465
+ /** Target chain id. */
1466
+ chainId: z.output<typeof Schema.ChainId>;
1467
+ /** Optional curated fee-token fields to embed. */
1468
+ include: readonly string[];
1469
+ /** Humanized receipts whose fee token is still an address. */
1470
+ receipts: readonly humanizeReceipt.Output[];
1471
+ };
1472
+ }
1403
1473
  /**
1404
1474
  * Humanizes a JSON-RPC transaction receipt: decodes `status`/`type`, converts
1405
- * hex quantities to decimal strings and block fields to numbers, and derives the
1475
+ * gas price and fee values, converts block fields to numbers, and derives the
1406
1476
  * block `timestamp` from the top-level `blockTimestamp` (present when
1407
1477
  * reconstructed from the index) or the (shared) per-log timestamp — `null` when
1408
1478
  * neither is available. The verbatim payload is preserved under `meta.rpc` and
1409
1479
  * the raw logs under `logs`. Shared by the receipt detail (RPC source) and list
1410
1480
  * (reconstructed from the indexer) endpoints, so both expose an identical shape.
1411
1481
  */
1412
- export declare function humanizeReceipt(rpc: z.output<typeof schema.Rpc.Receipt>): z.output<typeof schema.Receipt>;
1482
+ export declare function humanizeReceipt(rpc: z.output<typeof schema.Rpc.Receipt>): humanizeReceipt.Output;
1483
+ export declare namespace humanizeReceipt {
1484
+ /** Humanized receipt before its fee-token address is resolved to metadata. */
1485
+ type Output = Omit<z.output<typeof schema.Receipt>, 'feeToken'> & {
1486
+ /** Address of the token used to pay the fee. */
1487
+ feeToken?: z.output<typeof Schema.Address> | undefined;
1488
+ };
1489
+ }
1413
1490
  /**
1414
1491
  * Re-encodes a TIDX `receipts` row (joined to `txs`) into the JSON-RPC receipt
1415
1492
  * shape, which becomes the `rpc` payload the list endpoint humanizes through the