web3-tools-mcp 1.6.0 → 2.0.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 (104) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/README.md +328 -234
  3. package/dist/anvil.d.ts +1 -1
  4. package/dist/anvil.d.ts.map +1 -1
  5. package/dist/anvil.js +11 -9
  6. package/dist/anvil.js.map +1 -1
  7. package/dist/chain-meta.d.ts.map +1 -1
  8. package/dist/chain-meta.js +7 -3
  9. package/dist/chain-meta.js.map +1 -1
  10. package/dist/chains.d.ts +960 -0
  11. package/dist/chains.d.ts.map +1 -0
  12. package/dist/chains.js +108 -0
  13. package/dist/chains.js.map +1 -0
  14. package/dist/client.d.ts +10 -1717
  15. package/dist/client.d.ts.map +1 -1
  16. package/dist/client.js +33 -218
  17. package/dist/client.js.map +1 -1
  18. package/dist/http-server.d.ts +6 -0
  19. package/dist/http-server.d.ts.map +1 -1
  20. package/dist/http-server.js +55 -40
  21. package/dist/http-server.js.map +1 -1
  22. package/dist/index.js +50 -29
  23. package/dist/index.js.map +1 -1
  24. package/dist/oauth.d.ts +31 -0
  25. package/dist/oauth.d.ts.map +1 -0
  26. package/dist/oauth.js +227 -0
  27. package/dist/oauth.js.map +1 -0
  28. package/dist/preview.d.ts.map +1 -1
  29. package/dist/preview.js +2 -2
  30. package/dist/preview.js.map +1 -1
  31. package/dist/tools/advanced.d.ts +4 -4
  32. package/dist/tools/advanced.d.ts.map +1 -1
  33. package/dist/tools/advanced.js +228 -247
  34. package/dist/tools/advanced.js.map +1 -1
  35. package/dist/tools/balance.d.ts +1 -1
  36. package/dist/tools/balance.d.ts.map +1 -1
  37. package/dist/tools/balance.js +97 -103
  38. package/dist/tools/balance.js.map +1 -1
  39. package/dist/tools/contract-info.d.ts +3 -3
  40. package/dist/tools/contract-info.d.ts.map +1 -1
  41. package/dist/tools/contract-info.js +150 -161
  42. package/dist/tools/contract-info.js.map +1 -1
  43. package/dist/tools/contract.d.ts +4 -4
  44. package/dist/tools/contract.d.ts.map +1 -1
  45. package/dist/tools/contract.js +91 -110
  46. package/dist/tools/contract.js.map +1 -1
  47. package/dist/tools/ens.d.ts +6 -6
  48. package/dist/tools/ens.d.ts.map +1 -1
  49. package/dist/tools/ens.js +239 -297
  50. package/dist/tools/ens.js.map +1 -1
  51. package/dist/tools/gas.d.ts +4 -4
  52. package/dist/tools/gas.d.ts.map +1 -1
  53. package/dist/tools/gas.js +90 -138
  54. package/dist/tools/gas.js.map +1 -1
  55. package/dist/tools/index.d.ts +1 -1
  56. package/dist/tools/index.d.ts.map +1 -1
  57. package/dist/tools/logs.d.ts +1 -1
  58. package/dist/tools/logs.d.ts.map +1 -1
  59. package/dist/tools/logs.js +36 -37
  60. package/dist/tools/logs.js.map +1 -1
  61. package/dist/tools/signatures.d.ts.map +1 -1
  62. package/dist/tools/signatures.js +67 -89
  63. package/dist/tools/signatures.js.map +1 -1
  64. package/dist/tools/transactions.d.ts +35 -5
  65. package/dist/tools/transactions.d.ts.map +1 -1
  66. package/dist/tools/transactions.js +148 -74
  67. package/dist/tools/transactions.js.map +1 -1
  68. package/dist/types.d.ts +1 -1
  69. package/dist/types.d.ts.map +1 -1
  70. package/dist/utils.d.ts +1 -1
  71. package/dist/utils.d.ts.map +1 -1
  72. package/dist/utils.js +35 -98
  73. package/dist/utils.js.map +1 -1
  74. package/dist/wallet-client.d.ts +11 -1
  75. package/dist/wallet-client.d.ts.map +1 -1
  76. package/dist/wallet-client.js +27 -9
  77. package/dist/wallet-client.js.map +1 -1
  78. package/dist/walletconnect.d.ts +22 -1
  79. package/dist/walletconnect.d.ts.map +1 -1
  80. package/dist/walletconnect.js +101 -8
  81. package/dist/walletconnect.js.map +1 -1
  82. package/package.json +17 -9
  83. package/src/anvil.ts +15 -18
  84. package/src/chain-meta.ts +8 -4
  85. package/src/chains.ts +145 -0
  86. package/src/client.ts +39 -254
  87. package/src/http-server.ts +67 -44
  88. package/src/index.ts +77 -53
  89. package/src/oauth.ts +270 -0
  90. package/src/preview.ts +3 -12
  91. package/src/tools/advanced.ts +195 -213
  92. package/src/tools/balance.ts +103 -108
  93. package/src/tools/contract-info.ts +163 -184
  94. package/src/tools/contract.ts +123 -144
  95. package/src/tools/ens.ts +290 -345
  96. package/src/tools/gas.ts +122 -170
  97. package/src/tools/index.ts +2 -2
  98. package/src/tools/logs.ts +45 -43
  99. package/src/tools/signatures.ts +68 -86
  100. package/src/tools/transactions.ts +194 -87
  101. package/src/types.ts +1 -15
  102. package/src/utils.ts +52 -110
  103. package/src/wallet-client.ts +31 -9
  104. package/src/walletconnect.ts +119 -7
package/dist/client.d.ts CHANGED
@@ -1,1727 +1,20 @@
1
1
  import { createPublicClient } from 'viem';
2
- import type { ChainName, Config } from './types.js';
3
- export declare const CHAINS: (config: Config) => {
4
- mainnet: {
5
- chain: {
6
- blockExplorers: {
7
- readonly default: {
8
- readonly name: "Etherscan";
9
- readonly url: "https://etherscan.io";
10
- readonly apiUrl: "https://api.etherscan.io/api";
11
- };
12
- };
13
- blockTime?: number | undefined | undefined;
14
- contracts: {
15
- readonly ensRegistry: {
16
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
17
- };
18
- readonly ensUniversalResolver: {
19
- readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
20
- readonly blockCreated: 19258213;
21
- };
22
- readonly multicall3: {
23
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
24
- readonly blockCreated: 14353601;
25
- };
26
- };
27
- ensTlds?: readonly string[] | undefined;
28
- id: 1;
29
- name: "Ethereum";
30
- nativeCurrency: {
31
- readonly name: "Ether";
32
- readonly symbol: "ETH";
33
- readonly decimals: 18;
34
- };
35
- rpcUrls: {
36
- readonly default: {
37
- readonly http: readonly ["https://eth.merkle.io"];
38
- };
39
- };
40
- sourceId?: number | undefined | undefined;
41
- testnet?: boolean | undefined | undefined;
42
- custom?: Record<string, unknown> | undefined;
43
- fees?: import("viem").ChainFees<undefined> | undefined;
44
- formatters?: undefined;
45
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
46
- };
47
- readonly rpc: string;
48
- };
49
- base: {
50
- chain: {
51
- blockExplorers: {
52
- readonly default: {
53
- readonly name: "Basescan";
54
- readonly url: "https://basescan.org";
55
- readonly apiUrl: "https://api.basescan.org/api";
56
- };
57
- };
58
- blockTime: 2000;
59
- contracts: {
60
- readonly disputeGameFactory: {
61
- readonly 1: {
62
- readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
63
- };
64
- };
65
- readonly l2OutputOracle: {
66
- readonly 1: {
67
- readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
68
- };
69
- };
70
- readonly multicall3: {
71
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
72
- readonly blockCreated: 5022;
73
- };
74
- readonly portal: {
75
- readonly 1: {
76
- readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
77
- readonly blockCreated: 17482143;
78
- };
79
- };
80
- readonly l1StandardBridge: {
81
- readonly 1: {
82
- readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
83
- readonly blockCreated: 17482143;
84
- };
85
- };
86
- readonly gasPriceOracle: {
87
- readonly address: "0x420000000000000000000000000000000000000F";
88
- };
89
- readonly l1Block: {
90
- readonly address: "0x4200000000000000000000000000000000000015";
91
- };
92
- readonly l2CrossDomainMessenger: {
93
- readonly address: "0x4200000000000000000000000000000000000007";
94
- };
95
- readonly l2Erc721Bridge: {
96
- readonly address: "0x4200000000000000000000000000000000000014";
97
- };
98
- readonly l2StandardBridge: {
99
- readonly address: "0x4200000000000000000000000000000000000010";
100
- };
101
- readonly l2ToL1MessagePasser: {
102
- readonly address: "0x4200000000000000000000000000000000000016";
103
- };
104
- };
105
- ensTlds?: readonly string[] | undefined;
106
- id: 8453;
107
- name: "Base";
108
- nativeCurrency: {
109
- readonly name: "Ether";
110
- readonly symbol: "ETH";
111
- readonly decimals: 18;
112
- };
113
- rpcUrls: {
114
- readonly default: {
115
- readonly http: readonly ["https://mainnet.base.org"];
116
- };
117
- };
118
- sourceId: 1;
119
- testnet?: boolean | undefined | undefined;
120
- custom?: Record<string, unknown> | undefined;
121
- fees?: import("viem").ChainFees<undefined> | undefined;
122
- formatters: {
123
- readonly block: {
124
- exclude: [] | undefined;
125
- format: (args: import("viem/chains").OpStackRpcBlock) => {
126
- baseFeePerGas: bigint | null;
127
- blobGasUsed: bigint;
128
- difficulty: bigint;
129
- excessBlobGas: bigint;
130
- extraData: import("viem").Hex;
131
- gasLimit: bigint;
132
- gasUsed: bigint;
133
- hash: `0x${string}` | null;
134
- logsBloom: `0x${string}` | null;
135
- miner: import("viem").Address;
136
- mixHash: import("viem").Hash;
137
- nonce: `0x${string}` | null;
138
- number: bigint | null;
139
- parentBeaconBlockRoot?: `0x${string}` | undefined;
140
- parentHash: import("viem").Hash;
141
- receiptsRoot: import("viem").Hex;
142
- sealFields: import("viem").Hex[];
143
- sha3Uncles: import("viem").Hash;
144
- size: bigint;
145
- stateRoot: import("viem").Hash;
146
- timestamp: bigint;
147
- totalDifficulty: bigint | null;
148
- transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
149
- transactionsRoot: import("viem").Hash;
150
- uncles: import("viem").Hash[];
151
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
152
- withdrawalsRoot?: `0x${string}` | undefined;
153
- } & {};
154
- type: "block";
155
- };
156
- readonly transaction: {
157
- exclude: [] | undefined;
158
- format: (args: import("viem/chains").OpStackRpcTransaction) => ({
159
- blockHash: `0x${string}` | null;
160
- blockNumber: bigint | null;
161
- from: import("viem").Address;
162
- gas: bigint;
163
- hash: import("viem").Hash;
164
- input: import("viem").Hex;
165
- nonce: number;
166
- r: import("viem").Hex;
167
- s: import("viem").Hex;
168
- to: import("viem").Address | null;
169
- transactionIndex: number | null;
170
- typeHex: import("viem").Hex | null;
171
- v: bigint;
172
- value: bigint;
173
- yParity: number;
174
- gasPrice?: undefined | undefined;
175
- maxFeePerBlobGas?: undefined | undefined;
176
- maxFeePerGas: bigint;
177
- maxPriorityFeePerGas: bigint;
178
- isSystemTx?: boolean;
179
- mint?: bigint | undefined | undefined;
180
- sourceHash: import("viem").Hex;
181
- type: "deposit";
182
- } | {
183
- r: import("viem").Hex;
184
- s: import("viem").Hex;
185
- v: bigint;
186
- to: import("viem").Address | null;
187
- from: import("viem").Address;
188
- gas: bigint;
189
- nonce: number;
190
- value: bigint;
191
- blockHash: `0x${string}` | null;
192
- blockNumber: bigint | null;
193
- hash: import("viem").Hash;
194
- input: import("viem").Hex;
195
- transactionIndex: number | null;
196
- typeHex: import("viem").Hex | null;
197
- accessList?: undefined | undefined;
198
- authorizationList?: undefined | undefined;
199
- blobVersionedHashes?: undefined | undefined;
200
- chainId?: number | undefined;
201
- yParity?: undefined | undefined;
202
- type: "legacy";
203
- gasPrice: bigint;
204
- maxFeePerBlobGas?: undefined | undefined;
205
- maxFeePerGas?: undefined | undefined;
206
- maxPriorityFeePerGas?: undefined | undefined;
207
- isSystemTx?: undefined | undefined;
208
- mint?: undefined | undefined;
209
- sourceHash?: undefined | undefined;
210
- } | {
211
- blockHash: `0x${string}` | null;
212
- blockNumber: bigint | null;
213
- from: import("viem").Address;
214
- gas: bigint;
215
- hash: import("viem").Hash;
216
- input: import("viem").Hex;
217
- nonce: number;
218
- r: import("viem").Hex;
219
- s: import("viem").Hex;
220
- to: import("viem").Address | null;
221
- transactionIndex: number | null;
222
- typeHex: import("viem").Hex | null;
223
- v: bigint;
224
- value: bigint;
225
- yParity: number;
226
- accessList: import("viem").AccessList;
227
- authorizationList?: undefined | undefined;
228
- blobVersionedHashes?: undefined | undefined;
229
- chainId: number;
230
- type: "eip2930";
231
- gasPrice: bigint;
232
- maxFeePerBlobGas?: undefined | undefined;
233
- maxFeePerGas?: undefined | undefined;
234
- maxPriorityFeePerGas?: undefined | undefined;
235
- isSystemTx?: undefined | undefined;
236
- mint?: undefined | undefined;
237
- sourceHash?: undefined | undefined;
238
- } | {
239
- blockHash: `0x${string}` | null;
240
- blockNumber: bigint | null;
241
- from: import("viem").Address;
242
- gas: bigint;
243
- hash: import("viem").Hash;
244
- input: import("viem").Hex;
245
- nonce: number;
246
- r: import("viem").Hex;
247
- s: import("viem").Hex;
248
- to: import("viem").Address | null;
249
- transactionIndex: number | null;
250
- typeHex: import("viem").Hex | null;
251
- v: bigint;
252
- value: bigint;
253
- yParity: number;
254
- accessList: import("viem").AccessList;
255
- authorizationList?: undefined | undefined;
256
- blobVersionedHashes?: undefined | undefined;
257
- chainId: number;
258
- type: "eip1559";
259
- gasPrice?: undefined | undefined;
260
- maxFeePerBlobGas?: undefined | undefined;
261
- maxFeePerGas: bigint;
262
- maxPriorityFeePerGas: bigint;
263
- isSystemTx?: undefined | undefined;
264
- mint?: undefined | undefined;
265
- sourceHash?: undefined | undefined;
266
- } | {
267
- blockHash: `0x${string}` | null;
268
- blockNumber: bigint | null;
269
- from: import("viem").Address;
270
- gas: bigint;
271
- hash: import("viem").Hash;
272
- input: import("viem").Hex;
273
- nonce: number;
274
- r: import("viem").Hex;
275
- s: import("viem").Hex;
276
- to: import("viem").Address | null;
277
- transactionIndex: number | null;
278
- typeHex: import("viem").Hex | null;
279
- v: bigint;
280
- value: bigint;
281
- yParity: number;
282
- accessList: import("viem").AccessList;
283
- authorizationList?: undefined | undefined;
284
- blobVersionedHashes: readonly import("viem").Hex[];
285
- chainId: number;
286
- type: "eip4844";
287
- gasPrice?: undefined | undefined;
288
- maxFeePerBlobGas: bigint;
289
- maxFeePerGas: bigint;
290
- maxPriorityFeePerGas: bigint;
291
- isSystemTx?: undefined | undefined;
292
- mint?: undefined | undefined;
293
- sourceHash?: undefined | undefined;
294
- } | {
295
- blockHash: `0x${string}` | null;
296
- blockNumber: bigint | null;
297
- from: import("viem").Address;
298
- gas: bigint;
299
- hash: import("viem").Hash;
300
- input: import("viem").Hex;
301
- nonce: number;
302
- r: import("viem").Hex;
303
- s: import("viem").Hex;
304
- to: import("viem").Address | null;
305
- transactionIndex: number | null;
306
- typeHex: import("viem").Hex | null;
307
- v: bigint;
308
- value: bigint;
309
- yParity: number;
310
- accessList: import("viem").AccessList;
311
- authorizationList: import("viem").SignedAuthorizationList;
312
- blobVersionedHashes?: undefined | undefined;
313
- chainId: number;
314
- type: "eip7702";
315
- gasPrice?: undefined | undefined;
316
- maxFeePerBlobGas?: undefined | undefined;
317
- maxFeePerGas: bigint;
318
- maxPriorityFeePerGas: bigint;
319
- isSystemTx?: undefined | undefined;
320
- mint?: undefined | undefined;
321
- sourceHash?: undefined | undefined;
322
- }) & {};
323
- type: "transaction";
324
- };
325
- readonly transactionReceipt: {
326
- exclude: [] | undefined;
327
- format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
328
- blobGasPrice?: bigint | undefined;
329
- blobGasUsed?: bigint | undefined;
330
- blockHash: import("viem").Hash;
331
- blockNumber: bigint;
332
- contractAddress: import("viem").Address | null | undefined;
333
- cumulativeGasUsed: bigint;
334
- effectiveGasPrice: bigint;
335
- from: import("viem").Address;
336
- gasUsed: bigint;
337
- logs: import("viem").Log<bigint, number, false>[];
338
- logsBloom: import("viem").Hex;
339
- root?: `0x${string}` | undefined;
340
- status: "success" | "reverted";
341
- to: import("viem").Address | null;
342
- transactionHash: import("viem").Hash;
343
- transactionIndex: number;
344
- type: import("viem").TransactionType;
345
- l1GasPrice: bigint | null;
346
- l1GasUsed: bigint | null;
347
- l1Fee: bigint | null;
348
- l1FeeScalar: number | null;
349
- } & {};
350
- type: "transactionReceipt";
351
- };
352
- };
353
- serializers: {
354
- readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
355
- };
356
- };
357
- readonly rpc: string;
358
- };
359
- arbitrum: {
360
- chain: {
361
- blockExplorers: {
362
- readonly default: {
363
- readonly name: "Arbiscan";
364
- readonly url: "https://arbiscan.io";
365
- readonly apiUrl: "https://api.arbiscan.io/api";
366
- };
367
- };
368
- blockTime?: number | undefined | undefined;
369
- contracts: {
370
- readonly multicall3: {
371
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
372
- readonly blockCreated: 7654707;
373
- };
374
- };
375
- ensTlds?: readonly string[] | undefined;
376
- id: 42161;
377
- name: "Arbitrum One";
378
- nativeCurrency: {
379
- readonly name: "Ether";
380
- readonly symbol: "ETH";
381
- readonly decimals: 18;
382
- };
383
- rpcUrls: {
384
- readonly default: {
385
- readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
386
- };
387
- };
388
- sourceId?: number | undefined | undefined;
389
- testnet?: boolean | undefined | undefined;
390
- custom?: Record<string, unknown> | undefined;
391
- fees?: import("viem").ChainFees<undefined> | undefined;
392
- formatters?: undefined;
393
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
394
- };
395
- readonly rpc: string;
396
- };
397
- polygon: {
398
- chain: {
399
- blockExplorers: {
400
- readonly default: {
401
- readonly name: "PolygonScan";
402
- readonly url: "https://polygonscan.com";
403
- readonly apiUrl: "https://api.polygonscan.com/api";
404
- };
405
- };
406
- blockTime?: number | undefined | undefined;
407
- contracts: {
408
- readonly multicall3: {
409
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
410
- readonly blockCreated: 25770160;
411
- };
412
- };
413
- ensTlds?: readonly string[] | undefined;
414
- id: 137;
415
- name: "Polygon";
416
- nativeCurrency: {
417
- readonly name: "POL";
418
- readonly symbol: "POL";
419
- readonly decimals: 18;
420
- };
421
- rpcUrls: {
422
- readonly default: {
423
- readonly http: readonly ["https://polygon-rpc.com"];
424
- };
425
- };
426
- sourceId?: number | undefined | undefined;
427
- testnet?: boolean | undefined | undefined;
428
- custom?: Record<string, unknown> | undefined;
429
- fees?: import("viem").ChainFees<undefined> | undefined;
430
- formatters?: undefined;
431
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
432
- };
433
- readonly rpc: string;
434
- };
435
- optimism: {
436
- chain: {
437
- blockExplorers: {
438
- readonly default: {
439
- readonly name: "Optimism Explorer";
440
- readonly url: "https://optimistic.etherscan.io";
441
- readonly apiUrl: "https://api-optimistic.etherscan.io/api";
442
- };
443
- };
444
- blockTime: 2000;
445
- contracts: {
446
- readonly disputeGameFactory: {
447
- readonly 1: {
448
- readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
449
- };
450
- };
451
- readonly l2OutputOracle: {
452
- readonly 1: {
453
- readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
454
- };
455
- };
456
- readonly multicall3: {
457
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
458
- readonly blockCreated: 4286263;
459
- };
460
- readonly portal: {
461
- readonly 1: {
462
- readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
463
- };
464
- };
465
- readonly l1StandardBridge: {
466
- readonly 1: {
467
- readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
468
- };
469
- };
470
- readonly gasPriceOracle: {
471
- readonly address: "0x420000000000000000000000000000000000000F";
472
- };
473
- readonly l1Block: {
474
- readonly address: "0x4200000000000000000000000000000000000015";
475
- };
476
- readonly l2CrossDomainMessenger: {
477
- readonly address: "0x4200000000000000000000000000000000000007";
478
- };
479
- readonly l2Erc721Bridge: {
480
- readonly address: "0x4200000000000000000000000000000000000014";
481
- };
482
- readonly l2StandardBridge: {
483
- readonly address: "0x4200000000000000000000000000000000000010";
484
- };
485
- readonly l2ToL1MessagePasser: {
486
- readonly address: "0x4200000000000000000000000000000000000016";
487
- };
488
- };
489
- ensTlds?: readonly string[] | undefined;
490
- id: 10;
491
- name: "OP Mainnet";
492
- nativeCurrency: {
493
- readonly name: "Ether";
494
- readonly symbol: "ETH";
495
- readonly decimals: 18;
496
- };
497
- rpcUrls: {
498
- readonly default: {
499
- readonly http: readonly ["https://mainnet.optimism.io"];
500
- };
501
- };
502
- sourceId: 1;
503
- testnet?: boolean | undefined | undefined;
504
- custom?: Record<string, unknown> | undefined;
505
- fees?: import("viem").ChainFees<undefined> | undefined;
506
- formatters: {
507
- readonly block: {
508
- exclude: [] | undefined;
509
- format: (args: import("viem/chains").OpStackRpcBlock) => {
510
- baseFeePerGas: bigint | null;
511
- blobGasUsed: bigint;
512
- difficulty: bigint;
513
- excessBlobGas: bigint;
514
- extraData: import("viem").Hex;
515
- gasLimit: bigint;
516
- gasUsed: bigint;
517
- hash: `0x${string}` | null;
518
- logsBloom: `0x${string}` | null;
519
- miner: import("viem").Address;
520
- mixHash: import("viem").Hash;
521
- nonce: `0x${string}` | null;
522
- number: bigint | null;
523
- parentBeaconBlockRoot?: `0x${string}` | undefined;
524
- parentHash: import("viem").Hash;
525
- receiptsRoot: import("viem").Hex;
526
- sealFields: import("viem").Hex[];
527
- sha3Uncles: import("viem").Hash;
528
- size: bigint;
529
- stateRoot: import("viem").Hash;
530
- timestamp: bigint;
531
- totalDifficulty: bigint | null;
532
- transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
533
- transactionsRoot: import("viem").Hash;
534
- uncles: import("viem").Hash[];
535
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
536
- withdrawalsRoot?: `0x${string}` | undefined;
537
- } & {};
538
- type: "block";
539
- };
540
- readonly transaction: {
541
- exclude: [] | undefined;
542
- format: (args: import("viem/chains").OpStackRpcTransaction) => ({
543
- blockHash: `0x${string}` | null;
544
- blockNumber: bigint | null;
545
- from: import("viem").Address;
546
- gas: bigint;
547
- hash: import("viem").Hash;
548
- input: import("viem").Hex;
549
- nonce: number;
550
- r: import("viem").Hex;
551
- s: import("viem").Hex;
552
- to: import("viem").Address | null;
553
- transactionIndex: number | null;
554
- typeHex: import("viem").Hex | null;
555
- v: bigint;
556
- value: bigint;
557
- yParity: number;
558
- gasPrice?: undefined | undefined;
559
- maxFeePerBlobGas?: undefined | undefined;
560
- maxFeePerGas: bigint;
561
- maxPriorityFeePerGas: bigint;
562
- isSystemTx?: boolean;
563
- mint?: bigint | undefined | undefined;
564
- sourceHash: import("viem").Hex;
565
- type: "deposit";
566
- } | {
567
- r: import("viem").Hex;
568
- s: import("viem").Hex;
569
- v: bigint;
570
- to: import("viem").Address | null;
571
- from: import("viem").Address;
572
- gas: bigint;
573
- nonce: number;
574
- value: bigint;
575
- blockHash: `0x${string}` | null;
576
- blockNumber: bigint | null;
577
- hash: import("viem").Hash;
578
- input: import("viem").Hex;
579
- transactionIndex: number | null;
580
- typeHex: import("viem").Hex | null;
581
- accessList?: undefined | undefined;
582
- authorizationList?: undefined | undefined;
583
- blobVersionedHashes?: undefined | undefined;
584
- chainId?: number | undefined;
585
- yParity?: undefined | undefined;
586
- type: "legacy";
587
- gasPrice: bigint;
588
- maxFeePerBlobGas?: undefined | undefined;
589
- maxFeePerGas?: undefined | undefined;
590
- maxPriorityFeePerGas?: undefined | undefined;
591
- isSystemTx?: undefined | undefined;
592
- mint?: undefined | undefined;
593
- sourceHash?: undefined | undefined;
594
- } | {
595
- blockHash: `0x${string}` | null;
596
- blockNumber: bigint | null;
597
- from: import("viem").Address;
598
- gas: bigint;
599
- hash: import("viem").Hash;
600
- input: import("viem").Hex;
601
- nonce: number;
602
- r: import("viem").Hex;
603
- s: import("viem").Hex;
604
- to: import("viem").Address | null;
605
- transactionIndex: number | null;
606
- typeHex: import("viem").Hex | null;
607
- v: bigint;
608
- value: bigint;
609
- yParity: number;
610
- accessList: import("viem").AccessList;
611
- authorizationList?: undefined | undefined;
612
- blobVersionedHashes?: undefined | undefined;
613
- chainId: number;
614
- type: "eip2930";
615
- gasPrice: bigint;
616
- maxFeePerBlobGas?: undefined | undefined;
617
- maxFeePerGas?: undefined | undefined;
618
- maxPriorityFeePerGas?: undefined | undefined;
619
- isSystemTx?: undefined | undefined;
620
- mint?: undefined | undefined;
621
- sourceHash?: undefined | undefined;
622
- } | {
623
- blockHash: `0x${string}` | null;
624
- blockNumber: bigint | null;
625
- from: import("viem").Address;
626
- gas: bigint;
627
- hash: import("viem").Hash;
628
- input: import("viem").Hex;
629
- nonce: number;
630
- r: import("viem").Hex;
631
- s: import("viem").Hex;
632
- to: import("viem").Address | null;
633
- transactionIndex: number | null;
634
- typeHex: import("viem").Hex | null;
635
- v: bigint;
636
- value: bigint;
637
- yParity: number;
638
- accessList: import("viem").AccessList;
639
- authorizationList?: undefined | undefined;
640
- blobVersionedHashes?: undefined | undefined;
641
- chainId: number;
642
- type: "eip1559";
643
- gasPrice?: undefined | undefined;
644
- maxFeePerBlobGas?: undefined | undefined;
645
- maxFeePerGas: bigint;
646
- maxPriorityFeePerGas: bigint;
647
- isSystemTx?: undefined | undefined;
648
- mint?: undefined | undefined;
649
- sourceHash?: undefined | undefined;
650
- } | {
651
- blockHash: `0x${string}` | null;
652
- blockNumber: bigint | null;
653
- from: import("viem").Address;
654
- gas: bigint;
655
- hash: import("viem").Hash;
656
- input: import("viem").Hex;
657
- nonce: number;
658
- r: import("viem").Hex;
659
- s: import("viem").Hex;
660
- to: import("viem").Address | null;
661
- transactionIndex: number | null;
662
- typeHex: import("viem").Hex | null;
663
- v: bigint;
664
- value: bigint;
665
- yParity: number;
666
- accessList: import("viem").AccessList;
667
- authorizationList?: undefined | undefined;
668
- blobVersionedHashes: readonly import("viem").Hex[];
669
- chainId: number;
670
- type: "eip4844";
671
- gasPrice?: undefined | undefined;
672
- maxFeePerBlobGas: bigint;
673
- maxFeePerGas: bigint;
674
- maxPriorityFeePerGas: bigint;
675
- isSystemTx?: undefined | undefined;
676
- mint?: undefined | undefined;
677
- sourceHash?: undefined | undefined;
678
- } | {
679
- blockHash: `0x${string}` | null;
680
- blockNumber: bigint | null;
681
- from: import("viem").Address;
682
- gas: bigint;
683
- hash: import("viem").Hash;
684
- input: import("viem").Hex;
685
- nonce: number;
686
- r: import("viem").Hex;
687
- s: import("viem").Hex;
688
- to: import("viem").Address | null;
689
- transactionIndex: number | null;
690
- typeHex: import("viem").Hex | null;
691
- v: bigint;
692
- value: bigint;
693
- yParity: number;
694
- accessList: import("viem").AccessList;
695
- authorizationList: import("viem").SignedAuthorizationList;
696
- blobVersionedHashes?: undefined | undefined;
697
- chainId: number;
698
- type: "eip7702";
699
- gasPrice?: undefined | undefined;
700
- maxFeePerBlobGas?: undefined | undefined;
701
- maxFeePerGas: bigint;
702
- maxPriorityFeePerGas: bigint;
703
- isSystemTx?: undefined | undefined;
704
- mint?: undefined | undefined;
705
- sourceHash?: undefined | undefined;
706
- }) & {};
707
- type: "transaction";
708
- };
709
- readonly transactionReceipt: {
710
- exclude: [] | undefined;
711
- format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
712
- blobGasPrice?: bigint | undefined;
713
- blobGasUsed?: bigint | undefined;
714
- blockHash: import("viem").Hash;
715
- blockNumber: bigint;
716
- contractAddress: import("viem").Address | null | undefined;
717
- cumulativeGasUsed: bigint;
718
- effectiveGasPrice: bigint;
719
- from: import("viem").Address;
720
- gasUsed: bigint;
721
- logs: import("viem").Log<bigint, number, false>[];
722
- logsBloom: import("viem").Hex;
723
- root?: `0x${string}` | undefined;
724
- status: "success" | "reverted";
725
- to: import("viem").Address | null;
726
- transactionHash: import("viem").Hash;
727
- transactionIndex: number;
728
- type: import("viem").TransactionType;
729
- l1GasPrice: bigint | null;
730
- l1GasUsed: bigint | null;
731
- l1Fee: bigint | null;
732
- l1FeeScalar: number | null;
733
- } & {};
734
- type: "transactionReceipt";
735
- };
736
- };
737
- serializers: {
738
- readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
739
- };
740
- };
741
- readonly rpc: string;
742
- };
743
- avalanche: {
744
- chain: {
745
- blockExplorers: {
746
- readonly default: {
747
- readonly name: "SnowTrace";
748
- readonly url: "https://snowtrace.io";
749
- readonly apiUrl: "https://api.snowtrace.io";
750
- };
751
- };
752
- blockTime?: number | undefined | undefined;
753
- contracts: {
754
- readonly multicall3: {
755
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
756
- readonly blockCreated: 11907934;
757
- };
758
- };
759
- ensTlds?: readonly string[] | undefined;
760
- id: 43114;
761
- name: "Avalanche";
762
- nativeCurrency: {
763
- readonly decimals: 18;
764
- readonly name: "Avalanche";
765
- readonly symbol: "AVAX";
766
- };
767
- rpcUrls: {
768
- readonly default: {
769
- readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
770
- };
771
- };
772
- sourceId?: number | undefined | undefined;
773
- testnet?: boolean | undefined | undefined;
774
- custom?: Record<string, unknown> | undefined;
775
- fees?: import("viem").ChainFees<undefined> | undefined;
776
- formatters?: undefined;
777
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
778
- };
779
- readonly rpc: string;
780
- };
781
- bnb: {
782
- chain: {
783
- blockExplorers: {
784
- readonly default: {
785
- readonly name: "BscScan";
786
- readonly url: "https://bscscan.com";
787
- readonly apiUrl: "https://api.bscscan.com/api";
788
- };
789
- };
790
- blockTime?: number | undefined | undefined;
791
- contracts: {
792
- readonly multicall3: {
793
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
794
- readonly blockCreated: 15921452;
795
- };
796
- };
797
- ensTlds?: readonly string[] | undefined;
798
- id: 56;
799
- name: "BNB Smart Chain";
800
- nativeCurrency: {
801
- readonly decimals: 18;
802
- readonly name: "BNB";
803
- readonly symbol: "BNB";
804
- };
805
- rpcUrls: {
806
- readonly default: {
807
- readonly http: readonly ["https://56.rpc.thirdweb.com"];
808
- };
809
- };
810
- sourceId?: number | undefined | undefined;
811
- testnet?: boolean | undefined | undefined;
812
- custom?: Record<string, unknown> | undefined;
813
- fees?: import("viem").ChainFees<undefined> | undefined;
814
- formatters?: undefined;
815
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
816
- };
817
- readonly rpc: string;
818
- };
819
- gnosis: {
820
- chain: {
821
- blockExplorers: {
822
- readonly default: {
823
- readonly name: "Gnosisscan";
824
- readonly url: "https://gnosisscan.io";
825
- readonly apiUrl: "https://api.gnosisscan.io/api";
826
- };
827
- };
828
- blockTime?: number | undefined | undefined;
829
- contracts: {
830
- readonly multicall3: {
831
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
832
- readonly blockCreated: 21022491;
833
- };
834
- };
835
- ensTlds?: readonly string[] | undefined;
836
- id: 100;
837
- name: "Gnosis";
838
- nativeCurrency: {
839
- readonly decimals: 18;
840
- readonly name: "xDAI";
841
- readonly symbol: "XDAI";
842
- };
843
- rpcUrls: {
844
- readonly default: {
845
- readonly http: readonly ["https://rpc.gnosischain.com"];
846
- readonly webSocket: readonly ["wss://rpc.gnosischain.com/wss"];
847
- };
848
- };
849
- sourceId?: number | undefined | undefined;
850
- testnet?: boolean | undefined | undefined;
851
- custom?: Record<string, unknown> | undefined;
852
- fees?: import("viem").ChainFees<undefined> | undefined;
853
- formatters?: undefined;
854
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
855
- };
856
- readonly rpc: string;
857
- };
858
- sonic: {
859
- chain: {
860
- blockExplorers: {
861
- readonly default: {
862
- readonly name: "Sonic Explorer";
863
- readonly url: "https://sonicscan.org";
864
- };
865
- };
866
- blockTime?: number | undefined | undefined;
867
- contracts: {
868
- readonly multicall3: {
869
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
870
- readonly blockCreated: 60;
871
- };
872
- };
873
- ensTlds?: readonly string[] | undefined;
874
- id: 146;
875
- name: "Sonic";
876
- nativeCurrency: {
877
- readonly decimals: 18;
878
- readonly name: "Sonic";
879
- readonly symbol: "S";
880
- };
881
- rpcUrls: {
882
- readonly default: {
883
- readonly http: readonly ["https://rpc.soniclabs.com"];
884
- };
885
- };
886
- sourceId?: number | undefined | undefined;
887
- testnet: false;
888
- custom?: Record<string, unknown> | undefined;
889
- fees?: import("viem").ChainFees<undefined> | undefined;
890
- formatters?: undefined;
891
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
892
- };
893
- readonly rpc: string;
894
- };
895
- zksync: {
896
- chain: {
897
- blockExplorers: {
898
- readonly default: {
899
- readonly name: "Etherscan";
900
- readonly url: "https://era.zksync.network/";
901
- readonly apiUrl: "https://api-era.zksync.network/api";
902
- };
903
- readonly native: {
904
- readonly name: "ZKsync Explorer";
905
- readonly url: "https://explorer.zksync.io/";
906
- readonly apiUrl: "https://block-explorer-api.mainnet.zksync.io/api";
907
- };
908
- };
909
- blockTime: 1000;
910
- contracts: {
911
- readonly multicall3: {
912
- readonly address: "0xF9cda624FBC7e059355ce98a31693d299FACd963";
913
- };
914
- readonly universalSignatureVerifier: {
915
- readonly address: "0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
916
- readonly blockCreated: 45659388;
917
- };
918
- };
919
- ensTlds?: readonly string[] | undefined;
920
- id: 324;
921
- name: "ZKsync Era";
922
- nativeCurrency: {
923
- readonly decimals: 18;
924
- readonly name: "Ether";
925
- readonly symbol: "ETH";
926
- };
927
- rpcUrls: {
928
- readonly default: {
929
- readonly http: readonly ["https://mainnet.era.zksync.io"];
930
- readonly webSocket: readonly ["wss://mainnet.era.zksync.io/ws"];
931
- };
932
- };
933
- sourceId?: number | undefined | undefined;
934
- testnet?: boolean | undefined | undefined;
935
- custom: {
936
- readonly getEip712Domain: import("viem/zksync").EIP712DomainFn<import("viem/chains").ZkSyncTransactionSerializable, import("viem/chains").ZkSyncEIP712TransactionSignable>;
937
- };
938
- fees?: import("viem").ChainFees<undefined> | undefined;
939
- formatters: {
940
- readonly block: {
941
- exclude: [] | undefined;
942
- format: (args: import("viem/chains").ZkSyncRpcBlock) => {
943
- baseFeePerGas: bigint | null;
944
- blobGasUsed: bigint;
945
- difficulty: bigint;
946
- excessBlobGas: bigint;
947
- extraData: import("viem").Hex;
948
- gasLimit: bigint;
949
- gasUsed: bigint;
950
- hash: `0x${string}` | null;
951
- logsBloom: `0x${string}` | null;
952
- miner: import("viem").Address;
953
- mixHash: import("viem").Hash;
954
- nonce: `0x${string}` | null;
955
- number: bigint | null;
956
- parentBeaconBlockRoot?: `0x${string}` | undefined;
957
- parentHash: import("viem").Hash;
958
- receiptsRoot: import("viem").Hex;
959
- sealFields: import("viem").Hex[];
960
- sha3Uncles: import("viem").Hash;
961
- size: bigint;
962
- stateRoot: import("viem").Hash;
963
- timestamp: bigint;
964
- totalDifficulty: bigint | null;
965
- transactions: `0x${string}`[] | import("viem/chains").ZkSyncTransaction<boolean>[];
966
- transactionsRoot: import("viem").Hash;
967
- uncles: import("viem").Hash[];
968
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
969
- withdrawalsRoot?: `0x${string}` | undefined;
970
- l1BatchNumber: bigint | null;
971
- l1BatchTimestamp: bigint | null;
972
- } & {};
973
- type: "block";
974
- };
975
- readonly transaction: {
976
- exclude: [] | undefined;
977
- format: (args: import("viem/chains").ZkSyncRpcTransaction) => ({
978
- r: import("viem").Hex;
979
- s: import("viem").Hex;
980
- v: bigint;
981
- to: import("viem").Address | null;
982
- from: import("viem").Address;
983
- gas: bigint;
984
- nonce: number;
985
- value: bigint;
986
- blockHash: `0x${string}` | null;
987
- blockNumber: bigint | null;
988
- hash: import("viem").Hash;
989
- input: import("viem").Hex;
990
- transactionIndex: number | null;
991
- typeHex: import("viem").Hex | null;
992
- accessList?: undefined | undefined;
993
- authorizationList?: undefined | undefined;
994
- blobVersionedHashes?: undefined | undefined;
995
- chainId?: number | undefined;
996
- yParity?: undefined | undefined;
997
- type: "legacy";
998
- gasPrice: bigint;
999
- maxFeePerBlobGas?: undefined | undefined;
1000
- maxFeePerGas?: undefined | undefined;
1001
- maxPriorityFeePerGas?: undefined | undefined;
1002
- l1BatchNumber: bigint | null;
1003
- l1BatchTxIndex: bigint | null;
1004
- } | {
1005
- blockHash: `0x${string}` | null;
1006
- blockNumber: bigint | null;
1007
- from: import("viem").Address;
1008
- gas: bigint;
1009
- hash: import("viem").Hash;
1010
- input: import("viem").Hex;
1011
- nonce: number;
1012
- r: import("viem").Hex;
1013
- s: import("viem").Hex;
1014
- to: import("viem").Address | null;
1015
- transactionIndex: number | null;
1016
- typeHex: import("viem").Hex | null;
1017
- v: bigint;
1018
- value: bigint;
1019
- yParity: number;
1020
- accessList: import("viem").AccessList;
1021
- authorizationList?: undefined | undefined;
1022
- blobVersionedHashes?: undefined | undefined;
1023
- chainId: number;
1024
- type: "eip2930";
1025
- gasPrice: bigint;
1026
- maxFeePerBlobGas?: undefined | undefined;
1027
- maxFeePerGas?: undefined | undefined;
1028
- maxPriorityFeePerGas?: undefined | undefined;
1029
- l1BatchNumber: bigint | null;
1030
- l1BatchTxIndex: bigint | null;
1031
- } | {
1032
- blockHash: `0x${string}` | null;
1033
- blockNumber: bigint | null;
1034
- from: import("viem").Address;
1035
- gas: bigint;
1036
- hash: import("viem").Hash;
1037
- input: import("viem").Hex;
1038
- nonce: number;
1039
- r: import("viem").Hex;
1040
- s: import("viem").Hex;
1041
- to: import("viem").Address | null;
1042
- transactionIndex: number | null;
1043
- typeHex: import("viem").Hex | null;
1044
- v: bigint;
1045
- value: bigint;
1046
- yParity: number;
1047
- accessList: import("viem").AccessList;
1048
- authorizationList?: undefined | undefined;
1049
- blobVersionedHashes?: undefined | undefined;
1050
- chainId: number;
1051
- type: "eip1559";
1052
- gasPrice?: undefined | undefined;
1053
- maxFeePerBlobGas?: undefined | undefined;
1054
- maxFeePerGas: bigint;
1055
- maxPriorityFeePerGas: bigint;
1056
- l1BatchNumber: bigint | null;
1057
- l1BatchTxIndex: bigint | null;
1058
- } | {
1059
- blockHash: `0x${string}` | null;
1060
- blockNumber: bigint | null;
1061
- from: import("viem").Address;
1062
- gas: bigint;
1063
- hash: import("viem").Hash;
1064
- input: import("viem").Hex;
1065
- nonce: number;
1066
- r: import("viem").Hex;
1067
- s: import("viem").Hex;
1068
- to: import("viem").Address | null;
1069
- transactionIndex: number | null;
1070
- typeHex: import("viem").Hex | null;
1071
- v: bigint;
1072
- value: bigint;
1073
- yParity: number;
1074
- accessList: import("viem").AccessList;
1075
- authorizationList?: undefined | undefined;
1076
- blobVersionedHashes: readonly import("viem").Hex[];
1077
- chainId: number;
1078
- type: "eip4844";
1079
- gasPrice?: undefined | undefined;
1080
- maxFeePerBlobGas: bigint;
1081
- maxFeePerGas: bigint;
1082
- maxPriorityFeePerGas: bigint;
1083
- l1BatchNumber: bigint | null;
1084
- l1BatchTxIndex: bigint | null;
1085
- } | {
1086
- blockHash: `0x${string}` | null;
1087
- blockNumber: bigint | null;
1088
- from: import("viem").Address;
1089
- gas: bigint;
1090
- hash: import("viem").Hash;
1091
- input: import("viem").Hex;
1092
- nonce: number;
1093
- r: import("viem").Hex;
1094
- s: import("viem").Hex;
1095
- to: import("viem").Address | null;
1096
- transactionIndex: number | null;
1097
- typeHex: import("viem").Hex | null;
1098
- v: bigint;
1099
- value: bigint;
1100
- yParity: number;
1101
- accessList: import("viem").AccessList;
1102
- authorizationList: import("viem").SignedAuthorizationList;
1103
- blobVersionedHashes?: undefined | undefined;
1104
- chainId: number;
1105
- type: "eip7702";
1106
- gasPrice?: undefined | undefined;
1107
- maxFeePerBlobGas?: undefined | undefined;
1108
- maxFeePerGas: bigint;
1109
- maxPriorityFeePerGas: bigint;
1110
- l1BatchNumber: bigint | null;
1111
- l1BatchTxIndex: bigint | null;
1112
- } | {
1113
- blockHash: `0x${string}` | null;
1114
- blockNumber: bigint | null;
1115
- from: import("viem").Address;
1116
- gas: bigint;
1117
- hash: import("viem").Hash;
1118
- input: import("viem").Hex;
1119
- nonce: number;
1120
- r: import("viem").Hex;
1121
- s: import("viem").Hex;
1122
- to: import("viem").Address | null;
1123
- transactionIndex: number | null;
1124
- typeHex: import("viem").Hex | null;
1125
- v: bigint;
1126
- value: bigint;
1127
- yParity: number;
1128
- l1BatchNumber: bigint | null;
1129
- l1BatchTxIndex: bigint | null;
1130
- gasPrice?: undefined | undefined;
1131
- maxFeePerBlobGas?: undefined | undefined;
1132
- maxFeePerGas: bigint;
1133
- maxPriorityFeePerGas: bigint;
1134
- type: "priority";
1135
- } | {
1136
- blockHash: `0x${string}` | null;
1137
- blockNumber: bigint | null;
1138
- from: import("viem").Address;
1139
- gas: bigint;
1140
- hash: import("viem").Hash;
1141
- input: import("viem").Hex;
1142
- nonce: number;
1143
- r: import("viem").Hex;
1144
- s: import("viem").Hex;
1145
- to: import("viem").Address | null;
1146
- transactionIndex: number | null;
1147
- typeHex: import("viem").Hex | null;
1148
- v: bigint;
1149
- value: bigint;
1150
- yParity: number;
1151
- l1BatchNumber: bigint | null;
1152
- l1BatchTxIndex: bigint | null;
1153
- gasPrice?: undefined | undefined;
1154
- maxFeePerBlobGas?: undefined | undefined;
1155
- maxFeePerGas: bigint;
1156
- maxPriorityFeePerGas: bigint;
1157
- type: "eip712" | "priority";
1158
- }) & {};
1159
- type: "transaction";
1160
- };
1161
- readonly transactionReceipt: {
1162
- exclude: [] | undefined;
1163
- format: (args: import("viem/chains").ZkSyncRpcTransactionReceipt) => {
1164
- type: import("viem/chains").ZkSyncTransactionType;
1165
- contractAddress: import("viem").Address | null | undefined;
1166
- to: import("viem").Address | null;
1167
- from: import("viem").Address;
1168
- blockHash: import("viem").Hash;
1169
- blockNumber: bigint;
1170
- transactionIndex: number;
1171
- status: "success" | "reverted";
1172
- logsBloom: import("viem").Hex;
1173
- blobGasUsed?: bigint | undefined;
1174
- gasUsed: bigint;
1175
- transactionHash: import("viem").Hash;
1176
- blobGasPrice?: bigint | undefined;
1177
- cumulativeGasUsed: bigint;
1178
- effectiveGasPrice: bigint;
1179
- root?: `0x${string}` | undefined;
1180
- l1BatchNumber: bigint | null;
1181
- l1BatchTxIndex: bigint | null;
1182
- logs: import("viem/chains").ZkSyncLog[];
1183
- l2ToL1Logs: import("viem/chains").ZkSyncL2ToL1Log[];
1184
- } & {};
1185
- type: "transactionReceipt";
1186
- };
1187
- readonly transactionRequest: {
1188
- exclude: ("paymaster" | "gasPerPubdata" | "factoryDeps" | "paymasterInput" | "customSignature")[] | undefined;
1189
- format: (args: import("viem/chains").ZkSyncTransactionRequest) => ({
1190
- data?: `0x${string}` | undefined;
1191
- from?: `0x${string}` | undefined;
1192
- gas?: `0x${string}` | undefined;
1193
- nonce?: `0x${string}` | undefined;
1194
- to?: `0x${string}` | null | undefined;
1195
- type?: "0x0" | undefined;
1196
- value?: `0x${string}` | undefined;
1197
- gasPrice?: `0x${string}` | undefined;
1198
- maxFeePerBlobGas?: undefined | undefined;
1199
- maxFeePerGas?: undefined | undefined;
1200
- maxPriorityFeePerGas?: undefined | undefined;
1201
- blobs?: undefined;
1202
- accessList?: undefined;
1203
- blobVersionedHashes?: undefined;
1204
- kzg?: undefined;
1205
- sidecars?: undefined;
1206
- authorizationList?: undefined;
1207
- eip712Meta?: undefined | undefined;
1208
- } | {
1209
- data?: `0x${string}` | undefined;
1210
- from?: `0x${string}` | undefined;
1211
- gas?: `0x${string}` | undefined;
1212
- nonce?: `0x${string}` | undefined;
1213
- to?: `0x${string}` | null | undefined;
1214
- type?: "0x1" | undefined;
1215
- value?: `0x${string}` | undefined;
1216
- gasPrice?: `0x${string}` | undefined;
1217
- maxFeePerBlobGas?: undefined | undefined;
1218
- maxFeePerGas?: undefined | undefined;
1219
- maxPriorityFeePerGas?: undefined | undefined;
1220
- accessList?: import("viem").AccessList | undefined;
1221
- blobs?: undefined;
1222
- blobVersionedHashes?: undefined;
1223
- kzg?: undefined;
1224
- sidecars?: undefined;
1225
- authorizationList?: undefined;
1226
- eip712Meta?: undefined | undefined;
1227
- } | {
1228
- data?: `0x${string}` | undefined;
1229
- from?: `0x${string}` | undefined;
1230
- gas?: `0x${string}` | undefined;
1231
- nonce?: `0x${string}` | undefined;
1232
- to?: `0x${string}` | null | undefined;
1233
- type?: "0x2" | undefined;
1234
- value?: `0x${string}` | undefined;
1235
- gasPrice?: undefined | undefined;
1236
- maxFeePerBlobGas?: undefined | undefined;
1237
- maxFeePerGas?: `0x${string}` | undefined;
1238
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1239
- accessList?: import("viem").AccessList | undefined;
1240
- blobs?: undefined;
1241
- blobVersionedHashes?: undefined;
1242
- kzg?: undefined;
1243
- sidecars?: undefined;
1244
- authorizationList?: undefined;
1245
- eip712Meta?: undefined | undefined;
1246
- } | {
1247
- type?: "0x3" | undefined;
1248
- data?: `0x${string}` | undefined;
1249
- from?: `0x${string}` | undefined;
1250
- gas?: `0x${string}` | undefined;
1251
- nonce?: `0x${string}` | undefined;
1252
- value?: `0x${string}` | undefined;
1253
- to: `0x${string}` | null;
1254
- gasPrice?: undefined | undefined;
1255
- maxFeePerGas?: `0x${string}` | undefined;
1256
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1257
- maxFeePerBlobGas: `0x${string}`;
1258
- accessList?: import("viem").AccessList | undefined;
1259
- blobs: readonly import("viem").Hex[] | readonly import("viem").ByteArray[];
1260
- blobVersionedHashes?: readonly `0x${string}`[] | undefined;
1261
- kzg?: import("viem").Kzg | undefined;
1262
- sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
1263
- authorizationList?: undefined;
1264
- eip712Meta?: undefined | undefined;
1265
- } | {
1266
- type?: "0x4" | undefined;
1267
- gasPrice?: undefined | undefined;
1268
- maxFeePerBlobGas?: undefined | undefined;
1269
- maxFeePerGas?: `0x${string}` | undefined;
1270
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1271
- to?: `0x${string}` | null | undefined;
1272
- data?: `0x${string}` | undefined;
1273
- from?: `0x${string}` | undefined;
1274
- gas?: `0x${string}` | undefined;
1275
- nonce?: `0x${string}` | undefined;
1276
- value?: `0x${string}` | undefined;
1277
- accessList?: import("viem").AccessList | undefined;
1278
- authorizationList?: import("viem").RpcAuthorizationList | undefined;
1279
- blobs?: undefined;
1280
- blobVersionedHashes?: undefined;
1281
- kzg?: undefined;
1282
- sidecars?: undefined;
1283
- eip712Meta?: undefined | undefined;
1284
- } | {
1285
- data?: `0x${string}` | undefined;
1286
- from?: `0x${string}` | undefined;
1287
- gas?: `0x${string}` | undefined;
1288
- nonce?: `0x${string}` | undefined;
1289
- to?: `0x${string}` | null | undefined;
1290
- type: "0xff" | "0x71";
1291
- value?: `0x${string}` | undefined;
1292
- gasPrice?: undefined | undefined;
1293
- maxFeePerBlobGas?: undefined | undefined;
1294
- maxFeePerGas?: `0x${string}` | undefined;
1295
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1296
- eip712Meta: import("viem/chains").ZkSyncEip712Meta;
1297
- }) & {
1298
- paymaster: never;
1299
- gasPerPubdata: never;
1300
- factoryDeps: never;
1301
- paymasterInput: never;
1302
- customSignature: never;
1303
- };
1304
- type: "transactionRequest";
1305
- };
1306
- };
1307
- serializers: {
1308
- readonly transaction: typeof import("viem/zksync").serializeTransaction;
1309
- };
1310
- readonly network: "zksync-era";
1311
- };
1312
- readonly rpc: string;
1313
- };
1314
- linea: {
1315
- chain: {
1316
- blockExplorers: {
1317
- readonly default: {
1318
- readonly name: "Etherscan";
1319
- readonly url: "https://lineascan.build";
1320
- readonly apiUrl: "https://api.lineascan.build/api";
1321
- };
1322
- };
1323
- blockTime?: number | undefined | undefined;
1324
- contracts: {
1325
- readonly multicall3: {
1326
- readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1327
- readonly blockCreated: 42;
1328
- };
1329
- readonly ensRegistry: {
1330
- readonly address: "0x50130b669B28C339991d8676FA73CF122a121267";
1331
- readonly blockCreated: 6682888;
1332
- };
1333
- readonly ensUniversalResolver: {
1334
- readonly address: "0x3aA974fb3f8C1E02796048BDCdeD79e9D53a6965";
1335
- readonly blockCreated: 6683000;
1336
- };
1337
- };
1338
- ensTlds: readonly [".linea.eth"];
1339
- id: 59144;
1340
- name: "Linea Mainnet";
1341
- nativeCurrency: {
1342
- readonly name: "Linea Ether";
1343
- readonly symbol: "ETH";
1344
- readonly decimals: 18;
1345
- };
1346
- rpcUrls: {
1347
- readonly default: {
1348
- readonly http: readonly ["https://rpc.linea.build"];
1349
- readonly webSocket: readonly ["wss://rpc.linea.build"];
1350
- };
1351
- };
1352
- sourceId?: number | undefined | undefined;
1353
- testnet: false;
1354
- custom?: Record<string, unknown> | undefined;
1355
- fees: {
1356
- readonly estimateFeesPerGas: ({ client, multiply, request, type, }: Parameters<import("viem").ChainEstimateFeesPerGasFn>[0]) => ReturnType<import("viem").ChainEstimateFeesPerGasFn>;
1357
- readonly maxPriorityFeePerGas: ({ block, client, request }: import("viem").ChainFeesFnParameters<import("viem").ChainFormatters | undefined>) => Promise<bigint | null>;
1358
- };
1359
- formatters?: undefined;
1360
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1361
- };
1362
- readonly rpc: string;
1363
- };
1364
- unichain: {
1365
- chain: {
1366
- blockExplorers: {
1367
- readonly default: {
1368
- readonly name: "Uniscan";
1369
- readonly url: "https://uniscan.xyz";
1370
- readonly apiUrl: "https://api.uniscan.xyz/api";
1371
- };
1372
- };
1373
- blockTime: 2000;
1374
- contracts: {
1375
- readonly multicall3: {
1376
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1377
- readonly blockCreated: 0;
1378
- };
1379
- readonly disputeGameFactory: {
1380
- readonly 1: {
1381
- readonly address: "0x2F12d621a16e2d3285929C9996f478508951dFe4";
1382
- };
1383
- };
1384
- readonly portal: {
1385
- readonly 1: {
1386
- readonly address: "0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2";
1387
- };
1388
- };
1389
- readonly l1StandardBridge: {
1390
- readonly 1: {
1391
- readonly address: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA";
1392
- };
1393
- };
1394
- readonly gasPriceOracle: {
1395
- readonly address: "0x420000000000000000000000000000000000000F";
1396
- };
1397
- readonly l1Block: {
1398
- readonly address: "0x4200000000000000000000000000000000000015";
1399
- };
1400
- readonly l2CrossDomainMessenger: {
1401
- readonly address: "0x4200000000000000000000000000000000000007";
1402
- };
1403
- readonly l2Erc721Bridge: {
1404
- readonly address: "0x4200000000000000000000000000000000000014";
1405
- };
1406
- readonly l2StandardBridge: {
1407
- readonly address: "0x4200000000000000000000000000000000000010";
1408
- };
1409
- readonly l2ToL1MessagePasser: {
1410
- readonly address: "0x4200000000000000000000000000000000000016";
1411
- };
1412
- };
1413
- ensTlds?: readonly string[] | undefined;
1414
- id: 130;
1415
- name: "Unichain";
1416
- nativeCurrency: {
1417
- readonly name: "Ether";
1418
- readonly symbol: "ETH";
1419
- readonly decimals: 18;
1420
- };
1421
- rpcUrls: {
1422
- readonly default: {
1423
- readonly http: readonly ["https://mainnet.unichain.org/"];
1424
- };
1425
- };
1426
- sourceId: 1;
1427
- testnet?: boolean | undefined | undefined;
1428
- custom?: Record<string, unknown> | undefined;
1429
- fees?: import("viem").ChainFees<undefined> | undefined;
1430
- formatters: {
1431
- readonly block: {
1432
- exclude: [] | undefined;
1433
- format: (args: import("viem/chains").OpStackRpcBlock) => {
1434
- baseFeePerGas: bigint | null;
1435
- blobGasUsed: bigint;
1436
- difficulty: bigint;
1437
- excessBlobGas: bigint;
1438
- extraData: import("viem").Hex;
1439
- gasLimit: bigint;
1440
- gasUsed: bigint;
1441
- hash: `0x${string}` | null;
1442
- logsBloom: `0x${string}` | null;
1443
- miner: import("viem").Address;
1444
- mixHash: import("viem").Hash;
1445
- nonce: `0x${string}` | null;
1446
- number: bigint | null;
1447
- parentBeaconBlockRoot?: `0x${string}` | undefined;
1448
- parentHash: import("viem").Hash;
1449
- receiptsRoot: import("viem").Hex;
1450
- sealFields: import("viem").Hex[];
1451
- sha3Uncles: import("viem").Hash;
1452
- size: bigint;
1453
- stateRoot: import("viem").Hash;
1454
- timestamp: bigint;
1455
- totalDifficulty: bigint | null;
1456
- transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
1457
- transactionsRoot: import("viem").Hash;
1458
- uncles: import("viem").Hash[];
1459
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
1460
- withdrawalsRoot?: `0x${string}` | undefined;
1461
- } & {};
1462
- type: "block";
1463
- };
1464
- readonly transaction: {
1465
- exclude: [] | undefined;
1466
- format: (args: import("viem/chains").OpStackRpcTransaction) => ({
1467
- blockHash: `0x${string}` | null;
1468
- blockNumber: bigint | null;
1469
- from: import("viem").Address;
1470
- gas: bigint;
1471
- hash: import("viem").Hash;
1472
- input: import("viem").Hex;
1473
- nonce: number;
1474
- r: import("viem").Hex;
1475
- s: import("viem").Hex;
1476
- to: import("viem").Address | null;
1477
- transactionIndex: number | null;
1478
- typeHex: import("viem").Hex | null;
1479
- v: bigint;
1480
- value: bigint;
1481
- yParity: number;
1482
- gasPrice?: undefined | undefined;
1483
- maxFeePerBlobGas?: undefined | undefined;
1484
- maxFeePerGas: bigint;
1485
- maxPriorityFeePerGas: bigint;
1486
- isSystemTx?: boolean;
1487
- mint?: bigint | undefined | undefined;
1488
- sourceHash: import("viem").Hex;
1489
- type: "deposit";
1490
- } | {
1491
- r: import("viem").Hex;
1492
- s: import("viem").Hex;
1493
- v: bigint;
1494
- to: import("viem").Address | null;
1495
- from: import("viem").Address;
1496
- gas: bigint;
1497
- nonce: number;
1498
- value: bigint;
1499
- blockHash: `0x${string}` | null;
1500
- blockNumber: bigint | null;
1501
- hash: import("viem").Hash;
1502
- input: import("viem").Hex;
1503
- transactionIndex: number | null;
1504
- typeHex: import("viem").Hex | null;
1505
- accessList?: undefined | undefined;
1506
- authorizationList?: undefined | undefined;
1507
- blobVersionedHashes?: undefined | undefined;
1508
- chainId?: number | undefined;
1509
- yParity?: undefined | undefined;
1510
- type: "legacy";
1511
- gasPrice: bigint;
1512
- maxFeePerBlobGas?: undefined | undefined;
1513
- maxFeePerGas?: undefined | undefined;
1514
- maxPriorityFeePerGas?: undefined | undefined;
1515
- isSystemTx?: undefined | undefined;
1516
- mint?: undefined | undefined;
1517
- sourceHash?: undefined | undefined;
1518
- } | {
1519
- blockHash: `0x${string}` | null;
1520
- blockNumber: bigint | null;
1521
- from: import("viem").Address;
1522
- gas: bigint;
1523
- hash: import("viem").Hash;
1524
- input: import("viem").Hex;
1525
- nonce: number;
1526
- r: import("viem").Hex;
1527
- s: import("viem").Hex;
1528
- to: import("viem").Address | null;
1529
- transactionIndex: number | null;
1530
- typeHex: import("viem").Hex | null;
1531
- v: bigint;
1532
- value: bigint;
1533
- yParity: number;
1534
- accessList: import("viem").AccessList;
1535
- authorizationList?: undefined | undefined;
1536
- blobVersionedHashes?: undefined | undefined;
1537
- chainId: number;
1538
- type: "eip2930";
1539
- gasPrice: bigint;
1540
- maxFeePerBlobGas?: undefined | undefined;
1541
- maxFeePerGas?: undefined | undefined;
1542
- maxPriorityFeePerGas?: undefined | undefined;
1543
- isSystemTx?: undefined | undefined;
1544
- mint?: undefined | undefined;
1545
- sourceHash?: undefined | undefined;
1546
- } | {
1547
- blockHash: `0x${string}` | null;
1548
- blockNumber: bigint | null;
1549
- from: import("viem").Address;
1550
- gas: bigint;
1551
- hash: import("viem").Hash;
1552
- input: import("viem").Hex;
1553
- nonce: number;
1554
- r: import("viem").Hex;
1555
- s: import("viem").Hex;
1556
- to: import("viem").Address | null;
1557
- transactionIndex: number | null;
1558
- typeHex: import("viem").Hex | null;
1559
- v: bigint;
1560
- value: bigint;
1561
- yParity: number;
1562
- accessList: import("viem").AccessList;
1563
- authorizationList?: undefined | undefined;
1564
- blobVersionedHashes?: undefined | undefined;
1565
- chainId: number;
1566
- type: "eip1559";
1567
- gasPrice?: undefined | undefined;
1568
- maxFeePerBlobGas?: undefined | undefined;
1569
- maxFeePerGas: bigint;
1570
- maxPriorityFeePerGas: bigint;
1571
- isSystemTx?: undefined | undefined;
1572
- mint?: undefined | undefined;
1573
- sourceHash?: undefined | undefined;
1574
- } | {
1575
- blockHash: `0x${string}` | null;
1576
- blockNumber: bigint | null;
1577
- from: import("viem").Address;
1578
- gas: bigint;
1579
- hash: import("viem").Hash;
1580
- input: import("viem").Hex;
1581
- nonce: number;
1582
- r: import("viem").Hex;
1583
- s: import("viem").Hex;
1584
- to: import("viem").Address | null;
1585
- transactionIndex: number | null;
1586
- typeHex: import("viem").Hex | null;
1587
- v: bigint;
1588
- value: bigint;
1589
- yParity: number;
1590
- accessList: import("viem").AccessList;
1591
- authorizationList?: undefined | undefined;
1592
- blobVersionedHashes: readonly import("viem").Hex[];
1593
- chainId: number;
1594
- type: "eip4844";
1595
- gasPrice?: undefined | undefined;
1596
- maxFeePerBlobGas: bigint;
1597
- maxFeePerGas: bigint;
1598
- maxPriorityFeePerGas: bigint;
1599
- isSystemTx?: undefined | undefined;
1600
- mint?: undefined | undefined;
1601
- sourceHash?: undefined | undefined;
1602
- } | {
1603
- blockHash: `0x${string}` | null;
1604
- blockNumber: bigint | null;
1605
- from: import("viem").Address;
1606
- gas: bigint;
1607
- hash: import("viem").Hash;
1608
- input: import("viem").Hex;
1609
- nonce: number;
1610
- r: import("viem").Hex;
1611
- s: import("viem").Hex;
1612
- to: import("viem").Address | null;
1613
- transactionIndex: number | null;
1614
- typeHex: import("viem").Hex | null;
1615
- v: bigint;
1616
- value: bigint;
1617
- yParity: number;
1618
- accessList: import("viem").AccessList;
1619
- authorizationList: import("viem").SignedAuthorizationList;
1620
- blobVersionedHashes?: undefined | undefined;
1621
- chainId: number;
1622
- type: "eip7702";
1623
- gasPrice?: undefined | undefined;
1624
- maxFeePerBlobGas?: undefined | undefined;
1625
- maxFeePerGas: bigint;
1626
- maxPriorityFeePerGas: bigint;
1627
- isSystemTx?: undefined | undefined;
1628
- mint?: undefined | undefined;
1629
- sourceHash?: undefined | undefined;
1630
- }) & {};
1631
- type: "transaction";
1632
- };
1633
- readonly transactionReceipt: {
1634
- exclude: [] | undefined;
1635
- format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
1636
- blobGasPrice?: bigint | undefined;
1637
- blobGasUsed?: bigint | undefined;
1638
- blockHash: import("viem").Hash;
1639
- blockNumber: bigint;
1640
- contractAddress: import("viem").Address | null | undefined;
1641
- cumulativeGasUsed: bigint;
1642
- effectiveGasPrice: bigint;
1643
- from: import("viem").Address;
1644
- gasUsed: bigint;
1645
- logs: import("viem").Log<bigint, number, false>[];
1646
- logsBloom: import("viem").Hex;
1647
- root?: `0x${string}` | undefined;
1648
- status: "success" | "reverted";
1649
- to: import("viem").Address | null;
1650
- transactionHash: import("viem").Hash;
1651
- transactionIndex: number;
1652
- type: import("viem").TransactionType;
1653
- l1GasPrice: bigint | null;
1654
- l1GasUsed: bigint | null;
1655
- l1Fee: bigint | null;
1656
- l1FeeScalar: number | null;
1657
- } & {};
1658
- type: "transactionReceipt";
1659
- };
1660
- };
1661
- serializers: {
1662
- readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
1663
- };
1664
- };
1665
- readonly rpc: string;
1666
- };
1667
- localhost: {
1668
- chain: {
1669
- blockExplorers?: {
1670
- [key: string]: {
1671
- name: string;
1672
- url: string;
1673
- apiUrl?: string | undefined;
1674
- };
1675
- default: {
1676
- name: string;
1677
- url: string;
1678
- apiUrl?: string | undefined;
1679
- };
1680
- } | undefined | undefined;
1681
- blockTime?: number | undefined | undefined;
1682
- contracts?: {
1683
- [x: string]: import("viem").ChainContract | {
1684
- [sourceId: number]: import("viem").ChainContract | undefined;
1685
- } | undefined;
1686
- ensRegistry?: import("viem").ChainContract | undefined;
1687
- ensUniversalResolver?: import("viem").ChainContract | undefined;
1688
- multicall3?: import("viem").ChainContract | undefined;
1689
- universalSignatureVerifier?: import("viem").ChainContract | undefined;
1690
- } | undefined;
1691
- ensTlds?: readonly string[] | undefined;
1692
- id: 1337;
1693
- name: "Localhost";
1694
- nativeCurrency: {
1695
- readonly decimals: 18;
1696
- readonly name: "Ether";
1697
- readonly symbol: "ETH";
1698
- };
1699
- rpcUrls: {
1700
- readonly default: {
1701
- readonly http: readonly ["http://127.0.0.1:8545"];
1702
- };
1703
- };
1704
- sourceId?: number | undefined | undefined;
1705
- testnet?: boolean | undefined | undefined;
1706
- custom?: Record<string, unknown> | undefined;
1707
- fees?: import("viem").ChainFees<undefined> | undefined;
1708
- formatters?: undefined;
1709
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1710
- };
1711
- readonly rpc: string;
1712
- };
1713
- };
1714
- export declare const HYPERSYNC_URLS: Partial<Record<ChainName, string>>;
1715
- export declare const SUPPORTED_CHAINS: readonly ["mainnet", "arbitrum", "avalanche", "base", "bnb", "gnosis", "sonic", "optimism", "polygon", "zksync", "linea", "unichain", "localhost"];
2
+ import { type ChainName } from './chains.js';
3
+ import type { Config } from './types.js';
4
+ export { SUPPORTED_CHAINS } from './chains.js';
5
+ /** Named so declaration emit can refer to it: node_modules is hoisted above this package. */
6
+ type PublicClient = ReturnType<typeof createPublicClient>;
1716
7
  export declare class ClientManager {
1717
- private clients;
1718
8
  private config;
9
+ private clients;
1719
10
  constructor(config: Config);
1720
- getClient(chainName: ChainName): ReturnType<typeof createPublicClient>;
11
+ getClient(chainName: ChainName): PublicClient;
1721
12
  getConfig(): Config;
1722
- getEtherscanDomain(chainName: ChainName): string;
1723
13
  getRpcUrl(chainName: ChainName): string;
1724
14
  getChainId(chainName: ChainName): number;
15
+ getHypersyncUrl(chainName: ChainName): string | undefined;
16
+ /** Undefined where the chain has no explorer — a local node, for one. */
17
+ explorerUrl(chainName: ChainName, path?: string): string | undefined;
1725
18
  }
1726
19
  export declare function initializeClientManager(config: Config): ClientManager;
1727
20
  export declare function getClientManager(): ClientManager;