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