tapimo 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +20434 -19484
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +62 -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 +168 -168
- 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 +10305 -12785
- 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 +24 -24
- package/dist/apps/data/routes/addresses.d.ts +288 -288
- package/dist/apps/data/routes/balances.d.ts +6 -6
- package/dist/apps/data/routes/blocks.d.ts +39 -39
- package/dist/apps/data/routes/coingecko.d.ts +170 -170
- package/dist/apps/data/routes/earn.d.ts +436 -6
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +631 -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 +1 -1
- 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 +6 -6
- package/dist/apps/data/routes/transactions.d.ts +2 -2
- package/dist/apps/data/routes/transfers.d.ts +1 -1
- 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} +1717 -3035
- package/dist/apps/funding/App.d.ts.map +1 -0
- package/dist/apps/funding/App.js +46 -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 +2388 -0
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -0
- package/dist/apps/funding/routes/deposit-addresses.js +860 -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 +48 -48
- 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 +37 -37
- 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 +18 -18
- 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 +2 -2
- 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 +37 -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 +57 -1
- package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
- package/dist/db/tables/fundingDeposits.js +82 -0
- package/dist/db/tables/fundingDeposits.js.map +1 -1
- package/dist/internal/Auth.d.ts +11 -11
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +41 -15
- 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 +257 -48
- 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 +434 -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 +23 -5
- package/src/App.ts +76 -5
- package/src/Client.test-d.ts +171 -19
- 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 +100 -2
- package/src/apps/data/App.test.ts +0 -12
- package/src/apps/data/App.ts +4 -8
- package/src/apps/data/routes/earn.test.ts +283 -0
- package/src/apps/data/routes/earn.ts +800 -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 +63 -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 +1628 -0
- package/src/apps/funding/routes/deposit-addresses.ts +1015 -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 +1255 -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 +62 -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 +138 -0
- package/src/db/tables/fundingDeposits.ts +145 -1
- package/src/internal/Auth.test.ts +177 -5
- package/src/internal/Auth.ts +48 -18
- 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 +1052 -35
- package/src/internal/funding/Reconciliation.ts +328 -56
- 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 +528 -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
|
@@ -527,111 +527,9 @@ export declare namespace schema {
|
|
|
527
527
|
export declare function receipts(options?: receipts.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
528
528
|
"/v1/transactions/receipts": {
|
|
529
529
|
$get: {
|
|
530
|
-
output:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
blockNumber: number;
|
|
534
|
-
contractAddress: `0x${string}` | null;
|
|
535
|
-
cumulativeGasUsed: number;
|
|
536
|
-
effectiveGasPrice: string;
|
|
537
|
-
feeAmount: {
|
|
538
|
-
baseUnits: string;
|
|
539
|
-
currency: string;
|
|
540
|
-
decimals: number;
|
|
541
|
-
formatted: string;
|
|
542
|
-
valuation?: {
|
|
543
|
-
amount: string;
|
|
544
|
-
currency: string;
|
|
545
|
-
} | null | undefined;
|
|
546
|
-
};
|
|
547
|
-
feePayer?: `0x${string}` | undefined;
|
|
548
|
-
feeToken?: {
|
|
549
|
-
address: `0x${string}`;
|
|
550
|
-
currency: string;
|
|
551
|
-
decimals: number;
|
|
552
|
-
logoUri?: string | undefined;
|
|
553
|
-
name: string;
|
|
554
|
-
symbol: string;
|
|
555
|
-
verified?: boolean | undefined;
|
|
556
|
-
} | undefined;
|
|
557
|
-
gasUsed: number;
|
|
558
|
-
id: `0x${string}`;
|
|
559
|
-
logs: {
|
|
560
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
561
|
-
address: `0x${string}`;
|
|
562
|
-
blockHash: `0x${string}` | null;
|
|
563
|
-
blockNumber: `0x${string}` | null;
|
|
564
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
565
|
-
data: `0x${string}`;
|
|
566
|
-
logIndex: `0x${string}` | null;
|
|
567
|
-
removed: boolean;
|
|
568
|
-
topics: `0x${string}`[];
|
|
569
|
-
transactionHash: `0x${string}` | null;
|
|
570
|
-
transactionIndex: `0x${string}` | null;
|
|
571
|
-
}[];
|
|
572
|
-
meta: {
|
|
573
|
-
valuation?: {
|
|
574
|
-
asOf: string;
|
|
575
|
-
basis: "nominal";
|
|
576
|
-
source: string;
|
|
577
|
-
} | undefined;
|
|
578
|
-
rpc: {
|
|
579
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
580
|
-
blobGasPrice?: `0x${string}` | undefined;
|
|
581
|
-
blobGasUsed?: `0x${string}` | undefined;
|
|
582
|
-
blockHash: `0x${string}` | null;
|
|
583
|
-
blockNumber: `0x${string}`;
|
|
584
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
585
|
-
contractAddress?: `0x${string}` | null | undefined;
|
|
586
|
-
cumulativeGasUsed: `0x${string}`;
|
|
587
|
-
effectiveGasPrice: `0x${string}`;
|
|
588
|
-
feePayer?: `0x${string}` | null | undefined;
|
|
589
|
-
feeToken?: `0x${string}` | null | undefined;
|
|
590
|
-
from: `0x${string}`;
|
|
591
|
-
gasUsed: `0x${string}`;
|
|
592
|
-
logs: {
|
|
593
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
594
|
-
address: `0x${string}`;
|
|
595
|
-
blockHash: `0x${string}` | null;
|
|
596
|
-
blockNumber: `0x${string}` | null;
|
|
597
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
598
|
-
data: `0x${string}`;
|
|
599
|
-
logIndex: `0x${string}` | null;
|
|
600
|
-
removed: boolean;
|
|
601
|
-
topics: `0x${string}`[];
|
|
602
|
-
transactionHash: `0x${string}` | null;
|
|
603
|
-
transactionIndex: `0x${string}` | null;
|
|
604
|
-
}[];
|
|
605
|
-
logsBloom?: `0x${string}` | undefined;
|
|
606
|
-
root?: `0x${string}` | undefined;
|
|
607
|
-
status: `0x${string}`;
|
|
608
|
-
to: `0x${string}` | null;
|
|
609
|
-
transactionHash: `0x${string}`;
|
|
610
|
-
transactionIndex: `0x${string}`;
|
|
611
|
-
type: `0x${string}`;
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
recipient: `0x${string}` | null;
|
|
615
|
-
sender: `0x${string}`;
|
|
616
|
-
status: "reverted" | "success";
|
|
617
|
-
timestamp: string | null;
|
|
618
|
-
transactionHash: `0x${string}`;
|
|
619
|
-
transactionIndex: number;
|
|
620
|
-
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
621
|
-
}[];
|
|
622
|
-
meta?: {
|
|
623
|
-
valuation?: {
|
|
624
|
-
asOf: string;
|
|
625
|
-
basis: "nominal";
|
|
626
|
-
source: string;
|
|
627
|
-
} | undefined;
|
|
628
|
-
totalCount?: number | undefined;
|
|
629
|
-
totalCountCapped?: boolean | undefined;
|
|
630
|
-
} | undefined;
|
|
631
|
-
nextCursor: string | null;
|
|
632
|
-
};
|
|
633
|
-
outputFormat: "json";
|
|
634
|
-
status: 200;
|
|
530
|
+
output: null;
|
|
531
|
+
outputFormat: "body";
|
|
532
|
+
status: 402;
|
|
635
533
|
input: {
|
|
636
534
|
query?: {
|
|
637
535
|
address?: string | string[];
|
|
@@ -688,14 +586,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
688
586
|
} | {
|
|
689
587
|
output: {
|
|
690
588
|
error: {
|
|
691
|
-
code: "
|
|
589
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
692
590
|
details?: readonly Response.error.Detail[] | undefined;
|
|
693
591
|
message: string;
|
|
694
592
|
};
|
|
695
593
|
requestId: string;
|
|
696
594
|
};
|
|
697
595
|
outputFormat: "json";
|
|
698
|
-
status:
|
|
596
|
+
status: 401;
|
|
699
597
|
input: {
|
|
700
598
|
query?: {
|
|
701
599
|
address?: string | string[];
|
|
@@ -720,14 +618,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
720
618
|
} | {
|
|
721
619
|
output: {
|
|
722
620
|
error: {
|
|
723
|
-
code: "
|
|
621
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
724
622
|
details?: readonly Response.error.Detail[] | undefined;
|
|
725
623
|
message: string;
|
|
726
624
|
};
|
|
727
625
|
requestId: string;
|
|
728
626
|
};
|
|
729
627
|
outputFormat: "json";
|
|
730
|
-
status:
|
|
628
|
+
status: 403;
|
|
731
629
|
input: {
|
|
732
630
|
query?: {
|
|
733
631
|
address?: string | string[];
|
|
@@ -750,9 +648,16 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
750
648
|
} | undefined;
|
|
751
649
|
};
|
|
752
650
|
} | {
|
|
753
|
-
output:
|
|
754
|
-
|
|
755
|
-
|
|
651
|
+
output: {
|
|
652
|
+
error: {
|
|
653
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
654
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
655
|
+
message: string;
|
|
656
|
+
};
|
|
657
|
+
requestId: string;
|
|
658
|
+
};
|
|
659
|
+
outputFormat: "json";
|
|
660
|
+
status: 429;
|
|
756
661
|
input: {
|
|
757
662
|
query?: {
|
|
758
663
|
address?: string | string[];
|
|
@@ -777,14 +682,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
777
682
|
} | {
|
|
778
683
|
output: {
|
|
779
684
|
error: {
|
|
780
|
-
code: "
|
|
685
|
+
code: "query_invalid";
|
|
781
686
|
details?: readonly Response.error.Detail[] | undefined;
|
|
782
687
|
message: string;
|
|
783
688
|
};
|
|
784
689
|
requestId: string;
|
|
785
690
|
};
|
|
786
691
|
outputFormat: "json";
|
|
787
|
-
status:
|
|
692
|
+
status: 400;
|
|
788
693
|
input: {
|
|
789
694
|
query?: {
|
|
790
695
|
address?: string | string[];
|
|
@@ -808,15 +713,110 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
808
713
|
};
|
|
809
714
|
} | {
|
|
810
715
|
output: {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
716
|
+
data: {
|
|
717
|
+
blockHash: `0x${string}` | null;
|
|
718
|
+
blockNumber: number;
|
|
719
|
+
contractAddress: `0x${string}` | null;
|
|
720
|
+
cumulativeGasUsed: number;
|
|
721
|
+
effectiveGasPrice: string;
|
|
722
|
+
feeAmount: {
|
|
723
|
+
baseUnits: string;
|
|
724
|
+
currency: string;
|
|
725
|
+
decimals: number;
|
|
726
|
+
formatted: string;
|
|
727
|
+
valuation?: {
|
|
728
|
+
amount: string;
|
|
729
|
+
currency: string;
|
|
730
|
+
} | null | undefined;
|
|
731
|
+
};
|
|
732
|
+
feePayer?: `0x${string}` | undefined;
|
|
733
|
+
feeToken?: {
|
|
734
|
+
address: `0x${string}`;
|
|
735
|
+
currency: string;
|
|
736
|
+
decimals: number;
|
|
737
|
+
logoUri?: string | undefined;
|
|
738
|
+
name: string;
|
|
739
|
+
symbol: string;
|
|
740
|
+
verified?: boolean | undefined;
|
|
741
|
+
} | undefined;
|
|
742
|
+
gasUsed: number;
|
|
743
|
+
id: `0x${string}`;
|
|
744
|
+
logs: {
|
|
745
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
746
|
+
address: `0x${string}`;
|
|
747
|
+
blockHash: `0x${string}` | null;
|
|
748
|
+
blockNumber: `0x${string}` | null;
|
|
749
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
750
|
+
data: `0x${string}`;
|
|
751
|
+
logIndex: `0x${string}` | null;
|
|
752
|
+
removed: boolean;
|
|
753
|
+
topics: `0x${string}`[];
|
|
754
|
+
transactionHash: `0x${string}` | null;
|
|
755
|
+
transactionIndex: `0x${string}` | null;
|
|
756
|
+
}[];
|
|
757
|
+
meta: {
|
|
758
|
+
valuation?: {
|
|
759
|
+
asOf: string;
|
|
760
|
+
basis: "nominal";
|
|
761
|
+
source: string;
|
|
762
|
+
} | undefined;
|
|
763
|
+
rpc: {
|
|
764
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
765
|
+
blobGasPrice?: `0x${string}` | undefined;
|
|
766
|
+
blobGasUsed?: `0x${string}` | undefined;
|
|
767
|
+
blockHash: `0x${string}` | null;
|
|
768
|
+
blockNumber: `0x${string}`;
|
|
769
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
770
|
+
contractAddress?: `0x${string}` | null | undefined;
|
|
771
|
+
cumulativeGasUsed: `0x${string}`;
|
|
772
|
+
effectiveGasPrice: `0x${string}`;
|
|
773
|
+
feePayer?: `0x${string}` | null | undefined;
|
|
774
|
+
feeToken?: `0x${string}` | null | undefined;
|
|
775
|
+
from: `0x${string}`;
|
|
776
|
+
gasUsed: `0x${string}`;
|
|
777
|
+
logs: {
|
|
778
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
779
|
+
address: `0x${string}`;
|
|
780
|
+
blockHash: `0x${string}` | null;
|
|
781
|
+
blockNumber: `0x${string}` | null;
|
|
782
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
783
|
+
data: `0x${string}`;
|
|
784
|
+
logIndex: `0x${string}` | null;
|
|
785
|
+
removed: boolean;
|
|
786
|
+
topics: `0x${string}`[];
|
|
787
|
+
transactionHash: `0x${string}` | null;
|
|
788
|
+
transactionIndex: `0x${string}` | null;
|
|
789
|
+
}[];
|
|
790
|
+
logsBloom?: `0x${string}` | undefined;
|
|
791
|
+
root?: `0x${string}` | undefined;
|
|
792
|
+
status: `0x${string}`;
|
|
793
|
+
to: `0x${string}` | null;
|
|
794
|
+
transactionHash: `0x${string}`;
|
|
795
|
+
transactionIndex: `0x${string}`;
|
|
796
|
+
type: `0x${string}`;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
recipient: `0x${string}` | null;
|
|
800
|
+
sender: `0x${string}`;
|
|
801
|
+
status: "reverted" | "success";
|
|
802
|
+
timestamp: string | null;
|
|
803
|
+
transactionHash: `0x${string}`;
|
|
804
|
+
transactionIndex: number;
|
|
805
|
+
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
806
|
+
}[];
|
|
807
|
+
meta?: {
|
|
808
|
+
valuation?: {
|
|
809
|
+
asOf: string;
|
|
810
|
+
basis: "nominal";
|
|
811
|
+
source: string;
|
|
812
|
+
} | undefined;
|
|
813
|
+
totalCount?: number | undefined;
|
|
814
|
+
totalCountCapped?: boolean | undefined;
|
|
815
|
+
} | undefined;
|
|
816
|
+
nextCursor: string | null;
|
|
817
817
|
};
|
|
818
818
|
outputFormat: "json";
|
|
819
|
-
status:
|
|
819
|
+
status: 200;
|
|
820
820
|
input: {
|
|
821
821
|
query?: {
|
|
822
822
|
address?: string | string[];
|
|
@@ -875,99 +875,9 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
875
875
|
} & {
|
|
876
876
|
"/v1/transactions/:transactionHash/receipt": {
|
|
877
877
|
$get: {
|
|
878
|
-
output:
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
contractAddress: `0x${string}` | null;
|
|
882
|
-
cumulativeGasUsed: number;
|
|
883
|
-
effectiveGasPrice: string;
|
|
884
|
-
feeAmount: {
|
|
885
|
-
baseUnits: string;
|
|
886
|
-
currency: string;
|
|
887
|
-
decimals: number;
|
|
888
|
-
formatted: string;
|
|
889
|
-
valuation?: {
|
|
890
|
-
amount: string;
|
|
891
|
-
currency: string;
|
|
892
|
-
} | null | undefined;
|
|
893
|
-
};
|
|
894
|
-
feePayer?: `0x${string}` | undefined;
|
|
895
|
-
feeToken?: {
|
|
896
|
-
address: `0x${string}`;
|
|
897
|
-
currency: string;
|
|
898
|
-
decimals: number;
|
|
899
|
-
logoUri?: string | undefined;
|
|
900
|
-
name: string;
|
|
901
|
-
symbol: string;
|
|
902
|
-
verified?: boolean | undefined;
|
|
903
|
-
} | undefined;
|
|
904
|
-
gasUsed: number;
|
|
905
|
-
id: `0x${string}`;
|
|
906
|
-
logs: {
|
|
907
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
908
|
-
address: `0x${string}`;
|
|
909
|
-
blockHash: `0x${string}` | null;
|
|
910
|
-
blockNumber: `0x${string}` | null;
|
|
911
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
912
|
-
data: `0x${string}`;
|
|
913
|
-
logIndex: `0x${string}` | null;
|
|
914
|
-
removed: boolean;
|
|
915
|
-
topics: `0x${string}`[];
|
|
916
|
-
transactionHash: `0x${string}` | null;
|
|
917
|
-
transactionIndex: `0x${string}` | null;
|
|
918
|
-
}[];
|
|
919
|
-
meta: {
|
|
920
|
-
valuation?: {
|
|
921
|
-
asOf: string;
|
|
922
|
-
basis: "nominal";
|
|
923
|
-
source: string;
|
|
924
|
-
} | undefined;
|
|
925
|
-
rpc: {
|
|
926
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
927
|
-
blobGasPrice?: `0x${string}` | undefined;
|
|
928
|
-
blobGasUsed?: `0x${string}` | undefined;
|
|
929
|
-
blockHash: `0x${string}` | null;
|
|
930
|
-
blockNumber: `0x${string}`;
|
|
931
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
932
|
-
contractAddress?: `0x${string}` | null | undefined;
|
|
933
|
-
cumulativeGasUsed: `0x${string}`;
|
|
934
|
-
effectiveGasPrice: `0x${string}`;
|
|
935
|
-
feePayer?: `0x${string}` | null | undefined;
|
|
936
|
-
feeToken?: `0x${string}` | null | undefined;
|
|
937
|
-
from: `0x${string}`;
|
|
938
|
-
gasUsed: `0x${string}`;
|
|
939
|
-
logs: {
|
|
940
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
941
|
-
address: `0x${string}`;
|
|
942
|
-
blockHash: `0x${string}` | null;
|
|
943
|
-
blockNumber: `0x${string}` | null;
|
|
944
|
-
blockTimestamp?: `0x${string}` | null | undefined;
|
|
945
|
-
data: `0x${string}`;
|
|
946
|
-
logIndex: `0x${string}` | null;
|
|
947
|
-
removed: boolean;
|
|
948
|
-
topics: `0x${string}`[];
|
|
949
|
-
transactionHash: `0x${string}` | null;
|
|
950
|
-
transactionIndex: `0x${string}` | null;
|
|
951
|
-
}[];
|
|
952
|
-
logsBloom?: `0x${string}` | undefined;
|
|
953
|
-
root?: `0x${string}` | undefined;
|
|
954
|
-
status: `0x${string}`;
|
|
955
|
-
to: `0x${string}` | null;
|
|
956
|
-
transactionHash: `0x${string}`;
|
|
957
|
-
transactionIndex: `0x${string}`;
|
|
958
|
-
type: `0x${string}`;
|
|
959
|
-
};
|
|
960
|
-
};
|
|
961
|
-
recipient: `0x${string}` | null;
|
|
962
|
-
sender: `0x${string}`;
|
|
963
|
-
status: "reverted" | "success";
|
|
964
|
-
timestamp: string | null;
|
|
965
|
-
transactionHash: `0x${string}`;
|
|
966
|
-
transactionIndex: number;
|
|
967
|
-
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
968
|
-
};
|
|
969
|
-
outputFormat: "json";
|
|
970
|
-
status: 200;
|
|
878
|
+
output: null;
|
|
879
|
+
outputFormat: "body";
|
|
880
|
+
status: 402;
|
|
971
881
|
input: {
|
|
972
882
|
param: {
|
|
973
883
|
transactionHash: `0x${string}`;
|
|
@@ -1004,14 +914,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1004
914
|
} | {
|
|
1005
915
|
output: {
|
|
1006
916
|
error: {
|
|
1007
|
-
code: "
|
|
917
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1008
918
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1009
919
|
message: string;
|
|
1010
920
|
};
|
|
1011
921
|
requestId: string;
|
|
1012
922
|
};
|
|
1013
923
|
outputFormat: "json";
|
|
1014
|
-
status:
|
|
924
|
+
status: 401;
|
|
1015
925
|
input: {
|
|
1016
926
|
param: {
|
|
1017
927
|
transactionHash: `0x${string}`;
|
|
@@ -1026,14 +936,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1026
936
|
} | {
|
|
1027
937
|
output: {
|
|
1028
938
|
error: {
|
|
1029
|
-
code: "
|
|
939
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1030
940
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1031
941
|
message: string;
|
|
1032
942
|
};
|
|
1033
943
|
requestId: string;
|
|
1034
944
|
};
|
|
1035
945
|
outputFormat: "json";
|
|
1036
|
-
status:
|
|
946
|
+
status: 403;
|
|
1037
947
|
input: {
|
|
1038
948
|
param: {
|
|
1039
949
|
transactionHash: `0x${string}`;
|
|
@@ -1048,14 +958,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1048
958
|
} | {
|
|
1049
959
|
output: {
|
|
1050
960
|
error: {
|
|
1051
|
-
code: "
|
|
961
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1052
962
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1053
963
|
message: string;
|
|
1054
964
|
};
|
|
1055
965
|
requestId: string;
|
|
1056
966
|
};
|
|
1057
967
|
outputFormat: "json";
|
|
1058
|
-
status:
|
|
968
|
+
status: 429;
|
|
1059
969
|
input: {
|
|
1060
970
|
param: {
|
|
1061
971
|
transactionHash: `0x${string}`;
|
|
@@ -1068,9 +978,16 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1068
978
|
} | undefined;
|
|
1069
979
|
};
|
|
1070
980
|
} | {
|
|
1071
|
-
output:
|
|
1072
|
-
|
|
1073
|
-
|
|
981
|
+
output: {
|
|
982
|
+
error: {
|
|
983
|
+
code: "query_invalid";
|
|
984
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
985
|
+
message: string;
|
|
986
|
+
};
|
|
987
|
+
requestId: string;
|
|
988
|
+
};
|
|
989
|
+
outputFormat: "json";
|
|
990
|
+
status: 400;
|
|
1074
991
|
input: {
|
|
1075
992
|
param: {
|
|
1076
993
|
transactionHash: `0x${string}`;
|
|
@@ -1085,14 +1002,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1085
1002
|
} | {
|
|
1086
1003
|
output: {
|
|
1087
1004
|
error: {
|
|
1088
|
-
code: "
|
|
1005
|
+
code: "upstream_error";
|
|
1089
1006
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1090
1007
|
message: string;
|
|
1091
1008
|
};
|
|
1092
1009
|
requestId: string;
|
|
1093
1010
|
};
|
|
1094
1011
|
outputFormat: "json";
|
|
1095
|
-
status:
|
|
1012
|
+
status: 502;
|
|
1096
1013
|
input: {
|
|
1097
1014
|
param: {
|
|
1098
1015
|
transactionHash: `0x${string}`;
|
|
@@ -1107,14 +1024,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1107
1024
|
} | {
|
|
1108
1025
|
output: {
|
|
1109
1026
|
error: {
|
|
1110
|
-
code: "
|
|
1027
|
+
code: "transaction_invalid";
|
|
1111
1028
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1112
1029
|
message: string;
|
|
1113
1030
|
};
|
|
1114
1031
|
requestId: string;
|
|
1115
1032
|
};
|
|
1116
1033
|
outputFormat: "json";
|
|
1117
|
-
status:
|
|
1034
|
+
status: 400;
|
|
1118
1035
|
input: {
|
|
1119
1036
|
param: {
|
|
1120
1037
|
transactionHash: `0x${string}`;
|
|
@@ -1129,14 +1046,14 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1129
1046
|
} | {
|
|
1130
1047
|
output: {
|
|
1131
1048
|
error: {
|
|
1132
|
-
code: "
|
|
1049
|
+
code: "receipt_not_found";
|
|
1133
1050
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1134
1051
|
message: string;
|
|
1135
1052
|
};
|
|
1136
1053
|
requestId: string;
|
|
1137
1054
|
};
|
|
1138
1055
|
outputFormat: "json";
|
|
1139
|
-
status:
|
|
1056
|
+
status: 404;
|
|
1140
1057
|
input: {
|
|
1141
1058
|
param: {
|
|
1142
1059
|
transactionHash: `0x${string}`;
|
|
@@ -1150,15 +1067,98 @@ export declare function receipts(options?: receipts.Options): import("hono/hono-
|
|
|
1150
1067
|
};
|
|
1151
1068
|
} | {
|
|
1152
1069
|
output: {
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1070
|
+
blockHash: `0x${string}` | null;
|
|
1071
|
+
blockNumber: number;
|
|
1072
|
+
contractAddress: `0x${string}` | null;
|
|
1073
|
+
cumulativeGasUsed: number;
|
|
1074
|
+
effectiveGasPrice: string;
|
|
1075
|
+
feeAmount: {
|
|
1076
|
+
baseUnits: string;
|
|
1077
|
+
currency: string;
|
|
1078
|
+
decimals: number;
|
|
1079
|
+
formatted: string;
|
|
1080
|
+
valuation?: {
|
|
1081
|
+
amount: string;
|
|
1082
|
+
currency: string;
|
|
1083
|
+
} | null | undefined;
|
|
1157
1084
|
};
|
|
1158
|
-
|
|
1085
|
+
feePayer?: `0x${string}` | undefined;
|
|
1086
|
+
feeToken?: {
|
|
1087
|
+
address: `0x${string}`;
|
|
1088
|
+
currency: string;
|
|
1089
|
+
decimals: number;
|
|
1090
|
+
logoUri?: string | undefined;
|
|
1091
|
+
name: string;
|
|
1092
|
+
symbol: string;
|
|
1093
|
+
verified?: boolean | undefined;
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
gasUsed: number;
|
|
1096
|
+
id: `0x${string}`;
|
|
1097
|
+
logs: {
|
|
1098
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1099
|
+
address: `0x${string}`;
|
|
1100
|
+
blockHash: `0x${string}` | null;
|
|
1101
|
+
blockNumber: `0x${string}` | null;
|
|
1102
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1103
|
+
data: `0x${string}`;
|
|
1104
|
+
logIndex: `0x${string}` | null;
|
|
1105
|
+
removed: boolean;
|
|
1106
|
+
topics: `0x${string}`[];
|
|
1107
|
+
transactionHash: `0x${string}` | null;
|
|
1108
|
+
transactionIndex: `0x${string}` | null;
|
|
1109
|
+
}[];
|
|
1110
|
+
meta: {
|
|
1111
|
+
valuation?: {
|
|
1112
|
+
asOf: string;
|
|
1113
|
+
basis: "nominal";
|
|
1114
|
+
source: string;
|
|
1115
|
+
} | undefined;
|
|
1116
|
+
rpc: {
|
|
1117
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1118
|
+
blobGasPrice?: `0x${string}` | undefined;
|
|
1119
|
+
blobGasUsed?: `0x${string}` | undefined;
|
|
1120
|
+
blockHash: `0x${string}` | null;
|
|
1121
|
+
blockNumber: `0x${string}`;
|
|
1122
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1123
|
+
contractAddress?: `0x${string}` | null | undefined;
|
|
1124
|
+
cumulativeGasUsed: `0x${string}`;
|
|
1125
|
+
effectiveGasPrice: `0x${string}`;
|
|
1126
|
+
feePayer?: `0x${string}` | null | undefined;
|
|
1127
|
+
feeToken?: `0x${string}` | null | undefined;
|
|
1128
|
+
from: `0x${string}`;
|
|
1129
|
+
gasUsed: `0x${string}`;
|
|
1130
|
+
logs: {
|
|
1131
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1132
|
+
address: `0x${string}`;
|
|
1133
|
+
blockHash: `0x${string}` | null;
|
|
1134
|
+
blockNumber: `0x${string}` | null;
|
|
1135
|
+
blockTimestamp?: `0x${string}` | null | undefined;
|
|
1136
|
+
data: `0x${string}`;
|
|
1137
|
+
logIndex: `0x${string}` | null;
|
|
1138
|
+
removed: boolean;
|
|
1139
|
+
topics: `0x${string}`[];
|
|
1140
|
+
transactionHash: `0x${string}` | null;
|
|
1141
|
+
transactionIndex: `0x${string}` | null;
|
|
1142
|
+
}[];
|
|
1143
|
+
logsBloom?: `0x${string}` | undefined;
|
|
1144
|
+
root?: `0x${string}` | undefined;
|
|
1145
|
+
status: `0x${string}`;
|
|
1146
|
+
to: `0x${string}` | null;
|
|
1147
|
+
transactionHash: `0x${string}`;
|
|
1148
|
+
transactionIndex: `0x${string}`;
|
|
1149
|
+
type: `0x${string}`;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
recipient: `0x${string}` | null;
|
|
1153
|
+
sender: `0x${string}`;
|
|
1154
|
+
status: "reverted" | "success";
|
|
1155
|
+
timestamp: string | null;
|
|
1156
|
+
transactionHash: `0x${string}`;
|
|
1157
|
+
transactionIndex: number;
|
|
1158
|
+
type: "eip1559" | "eip2930" | "eip4844" | "eip7702" | "legacy" | "tempo" | "unknown";
|
|
1159
1159
|
};
|
|
1160
1160
|
outputFormat: "json";
|
|
1161
|
-
status:
|
|
1161
|
+
status: 200;
|
|
1162
1162
|
input: {
|
|
1163
1163
|
param: {
|
|
1164
1164
|
transactionHash: `0x${string}`;
|
|
@@ -96,7 +96,7 @@ export declare function rpc(): import("hono/hono-base").HonoBase<App.Environment
|
|
|
96
96
|
} | {
|
|
97
97
|
output: {
|
|
98
98
|
error: {
|
|
99
|
-
code: "api_key_forbidden";
|
|
99
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
100
100
|
details?: readonly Response.error.Detail[] | undefined;
|
|
101
101
|
message: string;
|
|
102
102
|
};
|
|
@@ -310,7 +310,7 @@ async function passthrough(c, chainId, options) {
|
|
|
310
310
|
const upstream_rpc = !zone && principal?.type === 'public' && typeof rpc !== 'function' ? undefined : rpc;
|
|
311
311
|
// Anonymous callers use the built-in public RPC unless a resolver chooses a
|
|
312
312
|
// different public upstream.
|
|
313
|
-
const { basicAuth, bearerAuth, publicZoneUrl, url: resolvedUrl, } = Viem.resolveRpc(upstream_rpc, { chainId, principal, zone });
|
|
313
|
+
const { basicAuth, bearerAuth, publicZoneUrl, zoneHeaders, url: resolvedUrl, } = Viem.resolveRpc(upstream_rpc, { chainId, principal, zone });
|
|
314
314
|
const usePublicZoneUrl = Boolean(zone && zoneToken);
|
|
315
315
|
const url = usePublicZoneUrl ? publicZoneUrl : resolvedUrl;
|
|
316
316
|
// The chain id is syntactically valid but this deployment has no RPC upstream
|
|
@@ -326,6 +326,9 @@ async function passthrough(c, chainId, options) {
|
|
|
326
326
|
for (const [name, value] of c.req.raw.headers)
|
|
327
327
|
if (!strippedHeaders.has(name.toLowerCase()))
|
|
328
328
|
headers.set(name, value);
|
|
329
|
+
if (zoneHeaders)
|
|
330
|
+
for (const [name, value] of new Headers(zoneHeaders))
|
|
331
|
+
headers.set(name, value);
|
|
329
332
|
// Public Zone endpoints authenticate with the caller's token, never internal RPC credentials.
|
|
330
333
|
if (!usePublicZoneUrl && basicAuth)
|
|
331
334
|
headers.set('authorization', `Basic ${btoa(basicAuth)}`);
|