@settlemint/sdk-viem 2.5.6 → 2.5.7-main3cd08190

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/dist/viem.d.cts CHANGED
@@ -1,9 +1,47 @@
1
1
  /* SettleMint Viem SDK - Web3 Optimized */
2
2
  import * as viem0 from "viem";
3
- import { Chain, Client, HttpTransportConfig } from "viem";
3
+ import { Chain, Client, HttpTransportConfig, Transport } from "viem";
4
4
  import * as chains from "viem/chains";
5
5
  import { z } from "zod";
6
6
 
7
+ //#region src/custom-actions/types/wallet-verification.enum.d.ts
8
+ /**
9
+ * Types of wallet verification methods supported by the system.
10
+ * Used to identify different verification mechanisms when creating or managing wallet verifications.
11
+ */
12
+ declare enum WalletVerificationType {
13
+ /** PIN code verification method */
14
+ PINCODE = "PINCODE",
15
+ /** One-Time Password verification method */
16
+ OTP = "OTP",
17
+ /** Secret recovery codes verification method */
18
+ SECRET_CODES = "SECRET_CODES",
19
+ }
20
+ /**
21
+ * Supported hash algorithms for One-Time Password (OTP) verification.
22
+ * These algorithms determine the cryptographic function used to generate OTP codes.
23
+ */
24
+ declare enum OTPAlgorithm {
25
+ /** SHA-1 hash algorithm */
26
+ SHA1 = "SHA1",
27
+ /** SHA-224 hash algorithm */
28
+ SHA224 = "SHA224",
29
+ /** SHA-256 hash algorithm */
30
+ SHA256 = "SHA256",
31
+ /** SHA-384 hash algorithm */
32
+ SHA384 = "SHA384",
33
+ /** SHA-512 hash algorithm */
34
+ SHA512 = "SHA512",
35
+ /** SHA3-224 hash algorithm */
36
+ SHA3_224 = "SHA3-224",
37
+ /** SHA3-256 hash algorithm */
38
+ SHA3_256 = "SHA3-256",
39
+ /** SHA3-384 hash algorithm */
40
+ SHA3_384 = "SHA3-384",
41
+ /** SHA3-512 hash algorithm */
42
+ SHA3_512 = "SHA3-512",
43
+ }
44
+ //#endregion
7
45
  //#region src/custom-actions/verify-wallet-verification-challenge.action.d.ts
8
46
  /**
9
47
  * Represents either a wallet address string or an object containing wallet address and optional verification ID.
@@ -46,44 +84,6 @@ declare function verifyWalletVerificationChallenge(client: Client): {
46
84
  verifyWalletVerificationChallenge(args: VerifyWalletVerificationChallengeParameters): Promise<VerifyWalletVerificationChallengeResponse>;
47
85
  };
48
86
  //#endregion
49
- //#region src/custom-actions/types/wallet-verification.enum.d.ts
50
- /**
51
- * Types of wallet verification methods supported by the system.
52
- * Used to identify different verification mechanisms when creating or managing wallet verifications.
53
- */
54
- declare enum WalletVerificationType {
55
- /** PIN code verification method */
56
- PINCODE = "PINCODE",
57
- /** One-Time Password verification method */
58
- OTP = "OTP",
59
- /** Secret recovery codes verification method */
60
- SECRET_CODES = "SECRET_CODES",
61
- }
62
- /**
63
- * Supported hash algorithms for One-Time Password (OTP) verification.
64
- * These algorithms determine the cryptographic function used to generate OTP codes.
65
- */
66
- declare enum OTPAlgorithm {
67
- /** SHA-1 hash algorithm */
68
- SHA1 = "SHA1",
69
- /** SHA-224 hash algorithm */
70
- SHA224 = "SHA224",
71
- /** SHA-256 hash algorithm */
72
- SHA256 = "SHA256",
73
- /** SHA-384 hash algorithm */
74
- SHA384 = "SHA384",
75
- /** SHA-512 hash algorithm */
76
- SHA512 = "SHA512",
77
- /** SHA3-224 hash algorithm */
78
- SHA3_224 = "SHA3-224",
79
- /** SHA3-256 hash algorithm */
80
- SHA3_256 = "SHA3-256",
81
- /** SHA3-384 hash algorithm */
82
- SHA3_384 = "SHA3-384",
83
- /** SHA3-512 hash algorithm */
84
- SHA3_512 = "SHA3-512",
85
- }
86
- //#endregion
87
87
  //#region src/custom-actions/create-wallet-verification-challenges.action.d.ts
88
88
  /**
89
89
  * Parameters for creating wallet verification challenges.
@@ -123,37 +123,6 @@ declare function createWalletVerificationChallenges(client: Client): {
123
123
  createWalletVerificationChallenges(args: CreateWalletVerificationChallengesParameters): Promise<CreateWalletVerificationChallengesResponse>;
124
124
  };
125
125
  //#endregion
126
- //#region src/custom-actions/delete-wallet-verification.action.d.ts
127
- /**
128
- * Parameters for deleting a wallet verification.
129
- */
130
- interface DeleteWalletVerificationParameters {
131
- /** The wallet address for which to delete the verification. */
132
- userWalletAddress: string;
133
- /** The unique identifier of the verification to delete. */
134
- verificationId: string;
135
- }
136
- /**
137
- * Response from deleting a wallet verification.
138
- */
139
- interface DeleteWalletVerificationResponse {
140
- /** Whether the deletion was successful. */
141
- success: boolean;
142
- }
143
- /**
144
- * Creates a wallet verification deletion action for the given client.
145
- * @param client - The viem client to use for the request.
146
- * @returns An object with a deleteWalletVerification method.
147
- */
148
- declare function deleteWalletVerification(client: Client): {
149
- /**
150
- * Deletes a wallet verification.
151
- * @param args - The parameters for deleting the verification.
152
- * @returns A promise that resolves to an array of deletion results.
153
- */
154
- deleteWalletVerification(args: DeleteWalletVerificationParameters): Promise<DeleteWalletVerificationResponse[]>;
155
- };
156
- //#endregion
157
126
  //#region src/custom-actions/create-wallet-verification.action.d.ts
158
127
  /**
159
128
  * Base interface for wallet verification information.
@@ -235,43 +204,6 @@ declare function createWalletVerification(client: Client): {
235
204
  createWalletVerification(args: CreateWalletVerificationParameters): Promise<CreateWalletVerificationResponse[]>;
236
205
  };
237
206
  //#endregion
238
- //#region src/custom-actions/get-wallet-verifications.action.d.ts
239
- /**
240
- * Parameters for getting wallet verifications.
241
- */
242
- interface GetWalletVerificationsParameters {
243
- /** The wallet address for which to fetch verifications. */
244
- userWalletAddress: string;
245
- }
246
- /**
247
- * Represents a wallet verification.
248
- */
249
- interface WalletVerification {
250
- /** The unique identifier of the verification. */
251
- id: string;
252
- /** The name of the verification method. */
253
- name: string;
254
- /** The type of verification method. */
255
- verificationType: WalletVerificationType;
256
- }
257
- /**
258
- * Response from getting wallet verifications.
259
- */
260
- type GetWalletVerificationsResponse = WalletVerification[];
261
- /**
262
- * Creates a wallet verifications retrieval action for the given client.
263
- * @param client - The viem client to use for the request.
264
- * @returns An object with a getWalletVerifications method.
265
- */
266
- declare function getWalletVerifications(client: Client): {
267
- /**
268
- * Gets all verifications for a wallet.
269
- * @param args - The parameters for getting the verifications.
270
- * @returns A promise that resolves to an array of wallet verifications.
271
- */
272
- getWalletVerifications(args: GetWalletVerificationsParameters): Promise<GetWalletVerificationsResponse>;
273
- };
274
- //#endregion
275
207
  //#region src/custom-actions/create-wallet.action.d.ts
276
208
  /**
277
209
  * Information about the wallet to be created.
@@ -316,6 +248,74 @@ declare function createWallet(client: Client): {
316
248
  createWallet(args: CreateWalletParameters): Promise<CreateWalletResponse[]>;
317
249
  };
318
250
  //#endregion
251
+ //#region src/custom-actions/delete-wallet-verification.action.d.ts
252
+ /**
253
+ * Parameters for deleting a wallet verification.
254
+ */
255
+ interface DeleteWalletVerificationParameters {
256
+ /** The wallet address for which to delete the verification. */
257
+ userWalletAddress: string;
258
+ /** The unique identifier of the verification to delete. */
259
+ verificationId: string;
260
+ }
261
+ /**
262
+ * Response from deleting a wallet verification.
263
+ */
264
+ interface DeleteWalletVerificationResponse {
265
+ /** Whether the deletion was successful. */
266
+ success: boolean;
267
+ }
268
+ /**
269
+ * Creates a wallet verification deletion action for the given client.
270
+ * @param client - The viem client to use for the request.
271
+ * @returns An object with a deleteWalletVerification method.
272
+ */
273
+ declare function deleteWalletVerification(client: Client): {
274
+ /**
275
+ * Deletes a wallet verification.
276
+ * @param args - The parameters for deleting the verification.
277
+ * @returns A promise that resolves to an array of deletion results.
278
+ */
279
+ deleteWalletVerification(args: DeleteWalletVerificationParameters): Promise<DeleteWalletVerificationResponse[]>;
280
+ };
281
+ //#endregion
282
+ //#region src/custom-actions/get-wallet-verifications.action.d.ts
283
+ /**
284
+ * Parameters for getting wallet verifications.
285
+ */
286
+ interface GetWalletVerificationsParameters {
287
+ /** The wallet address for which to fetch verifications. */
288
+ userWalletAddress: string;
289
+ }
290
+ /**
291
+ * Represents a wallet verification.
292
+ */
293
+ interface WalletVerification {
294
+ /** The unique identifier of the verification. */
295
+ id: string;
296
+ /** The name of the verification method. */
297
+ name: string;
298
+ /** The type of verification method. */
299
+ verificationType: WalletVerificationType;
300
+ }
301
+ /**
302
+ * Response from getting wallet verifications.
303
+ */
304
+ type GetWalletVerificationsResponse = WalletVerification[];
305
+ /**
306
+ * Creates a wallet verifications retrieval action for the given client.
307
+ * @param client - The viem client to use for the request.
308
+ * @returns An object with a getWalletVerifications method.
309
+ */
310
+ declare function getWalletVerifications(client: Client): {
311
+ /**
312
+ * Gets all verifications for a wallet.
313
+ * @param args - The parameters for getting the verifications.
314
+ * @returns A promise that resolves to an array of wallet verifications.
315
+ */
316
+ getWalletVerifications(args: GetWalletVerificationsParameters): Promise<GetWalletVerificationsResponse>;
317
+ };
318
+ //#endregion
319
319
  //#region src/viem.d.ts
320
320
  /**
321
321
  * Schema for the viem client options.
@@ -334,9 +334,23 @@ type ClientOptions = Omit<z.infer<typeof ClientOptionsSchema>, "httpTransportCon
334
334
  httpTransportConfig?: HttpTransportConfig;
335
335
  };
336
336
  /**
337
- * Get a public client. Use this if you need to read from the blockchain.
338
- * @param options - The options for the public client.
339
- * @returns The public client. see {@link https://viem.sh/docs/clients/public}
337
+ * Creates an optimized public client for blockchain read operations.
338
+ *
339
+ * @remarks
340
+ * PERFORMANCE: Implements intelligent caching to minimize client creation overhead.
341
+ * Cache hit rates of 80%+ typical in production workloads with repeated chain access.
342
+ *
343
+ * SECURITY: Each access token gets isolated cache entries to prevent cross-tenant data exposure.
344
+ * Client instances are immutable once cached to prevent credential pollution.
345
+ *
346
+ * RESOURCE MANAGEMENT: 500ms polling interval balances responsiveness with server load.
347
+ * 60-second timeout prevents hanging connections in unstable network conditions.
348
+ *
349
+ * @param options - Client configuration including chain details and authentication
350
+ * @returns Cached or newly created public client with read-only blockchain access
351
+ * @throws ValidationError when options don't match required schema
352
+ * @throws NetworkError when RPC endpoint is unreachable during client creation
353
+ *
340
354
  * @example
341
355
  * ```ts
342
356
  * import { getPublicClient } from '@settlemint/sdk-viem';
@@ -368,10 +382,7 @@ declare const getPublicClient: (options: ClientOptions) => {
368
382
  name: string;
369
383
  pollingInterval: number;
370
384
  request: viem0.EIP1193RequestFn<viem0.PublicRpcSchema>;
371
- transport: viem0.TransportConfig<"http", viem0.EIP1193RequestFn> & {
372
- fetchOptions?: HttpTransportConfig["fetchOptions"] | undefined;
373
- url?: string | undefined;
374
- };
385
+ transport: viem0.TransportConfig<string, viem0.EIP1193RequestFn> & Record<string, any>;
375
386
  type: string;
376
387
  uid: string;
377
388
  call: (parameters: viem0.CallParameters<Chain>) => Promise<viem0.CallReturnType>;
@@ -389,8 +400,8 @@ declare const getPublicClient: (options: ClientOptions) => {
389
400
  getBlobBaseFee: () => Promise<viem0.GetBlobBaseFeeReturnType>;
390
401
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args?: viem0.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
391
402
  number: blockTag extends "pending" ? null : bigint;
392
- hash: blockTag extends "pending" ? null : `0x${string}`;
393
403
  nonce: blockTag extends "pending" ? null : `0x${string}`;
404
+ hash: blockTag extends "pending" ? null : `0x${string}`;
394
405
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
395
406
  baseFeePerGas: bigint | null;
396
407
  blobGasUsed: bigint;
@@ -417,127 +428,127 @@ declare const getPublicClient: (options: ClientOptions) => {
417
428
  transactions: includeTransactions extends true ? ({
418
429
  chainId?: number | undefined;
419
430
  input: viem0.Hex;
420
- yParity?: undefined | undefined;
431
+ type: "legacy";
432
+ to: viem0.Address | null;
421
433
  from: viem0.Address;
422
434
  gas: bigint;
423
- hash: viem0.Hash;
424
435
  nonce: number;
425
- r: viem0.Hex;
426
- s: viem0.Hex;
427
- to: viem0.Address | null;
428
- typeHex: viem0.Hex | null;
429
- v: bigint;
430
436
  value: bigint;
431
- accessList?: undefined | undefined;
432
- authorizationList?: undefined | undefined;
433
- blobVersionedHashes?: undefined | undefined;
434
- type: "legacy";
435
- gasPrice: bigint;
436
437
  maxFeePerBlobGas?: undefined | undefined;
438
+ gasPrice: bigint;
437
439
  maxFeePerGas?: undefined | undefined;
438
440
  maxPriorityFeePerGas?: undefined | undefined;
439
- blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
440
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
441
+ accessList?: undefined | undefined;
442
+ blobVersionedHashes?: undefined | undefined;
443
+ authorizationList?: undefined | undefined;
444
+ hash: viem0.Hash;
445
+ r: viem0.Hex;
446
+ s: viem0.Hex;
447
+ v: bigint;
448
+ yParity?: undefined | undefined;
449
+ typeHex: viem0.Hex | null;
450
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
451
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
441
452
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
442
453
  } | {
443
454
  chainId: number;
444
455
  input: viem0.Hex;
445
- yParity: number;
456
+ type: "eip2930";
457
+ to: viem0.Address | null;
446
458
  from: viem0.Address;
447
459
  gas: bigint;
448
- hash: viem0.Hash;
449
460
  nonce: number;
450
- r: viem0.Hex;
451
- s: viem0.Hex;
452
- to: viem0.Address | null;
453
- typeHex: viem0.Hex | null;
454
- v: bigint;
455
461
  value: bigint;
456
- accessList: viem0.AccessList;
457
- authorizationList?: undefined | undefined;
458
- blobVersionedHashes?: undefined | undefined;
459
- type: "eip2930";
460
- gasPrice: bigint;
461
462
  maxFeePerBlobGas?: undefined | undefined;
463
+ gasPrice: bigint;
462
464
  maxFeePerGas?: undefined | undefined;
463
465
  maxPriorityFeePerGas?: undefined | undefined;
464
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
465
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
466
+ accessList: viem0.AccessList;
467
+ blobVersionedHashes?: undefined | undefined;
468
+ authorizationList?: undefined | undefined;
469
+ hash: viem0.Hash;
470
+ r: viem0.Hex;
471
+ s: viem0.Hex;
472
+ v: bigint;
473
+ yParity: number;
474
+ typeHex: viem0.Hex | null;
475
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : bigint : never : never;
476
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
466
477
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
467
478
  } | {
468
479
  chainId: number;
469
480
  input: viem0.Hex;
470
- yParity: number;
481
+ type: "eip1559";
482
+ to: viem0.Address | null;
471
483
  from: viem0.Address;
472
484
  gas: bigint;
473
- hash: viem0.Hash;
474
485
  nonce: number;
475
- r: viem0.Hex;
476
- s: viem0.Hex;
477
- to: viem0.Address | null;
478
- typeHex: viem0.Hex | null;
479
- v: bigint;
480
486
  value: bigint;
481
- accessList: viem0.AccessList;
482
- authorizationList?: undefined | undefined;
483
- blobVersionedHashes?: undefined | undefined;
484
- type: "eip1559";
485
- gasPrice?: undefined | undefined;
486
487
  maxFeePerBlobGas?: undefined | undefined;
488
+ gasPrice?: undefined | undefined;
487
489
  maxFeePerGas: bigint;
488
490
  maxPriorityFeePerGas: bigint;
489
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
490
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
491
+ accessList: viem0.AccessList;
492
+ blobVersionedHashes?: undefined | undefined;
493
+ authorizationList?: undefined | undefined;
494
+ hash: viem0.Hash;
495
+ r: viem0.Hex;
496
+ s: viem0.Hex;
497
+ v: bigint;
498
+ yParity: number;
499
+ typeHex: viem0.Hex | null;
500
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : bigint : never : never;
501
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
491
502
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
492
503
  } | {
493
504
  chainId: number;
494
505
  input: viem0.Hex;
495
- yParity: number;
506
+ type: "eip4844";
507
+ to: viem0.Address | null;
496
508
  from: viem0.Address;
497
509
  gas: bigint;
498
- hash: viem0.Hash;
499
510
  nonce: number;
500
- r: viem0.Hex;
501
- s: viem0.Hex;
502
- to: viem0.Address | null;
503
- typeHex: viem0.Hex | null;
504
- v: bigint;
505
511
  value: bigint;
506
- accessList: viem0.AccessList;
507
- authorizationList?: undefined | undefined;
508
- blobVersionedHashes: readonly viem0.Hex[];
509
- type: "eip4844";
510
- gasPrice?: undefined | undefined;
511
512
  maxFeePerBlobGas: bigint;
513
+ gasPrice?: undefined | undefined;
512
514
  maxFeePerGas: bigint;
513
515
  maxPriorityFeePerGas: bigint;
514
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
515
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
516
+ accessList: viem0.AccessList;
517
+ blobVersionedHashes: readonly viem0.Hex[];
518
+ authorizationList?: undefined | undefined;
519
+ hash: viem0.Hash;
520
+ r: viem0.Hex;
521
+ s: viem0.Hex;
522
+ v: bigint;
523
+ yParity: number;
524
+ typeHex: viem0.Hex | null;
525
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : bigint : never : never;
526
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
516
527
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
517
528
  } | {
518
529
  chainId: number;
519
530
  input: viem0.Hex;
520
- yParity: number;
531
+ type: "eip7702";
532
+ to: viem0.Address | null;
521
533
  from: viem0.Address;
522
534
  gas: bigint;
523
- hash: viem0.Hash;
524
535
  nonce: number;
525
- r: viem0.Hex;
526
- s: viem0.Hex;
527
- to: viem0.Address | null;
528
- typeHex: viem0.Hex | null;
529
- v: bigint;
530
536
  value: bigint;
531
- accessList: viem0.AccessList;
532
- authorizationList: viem0.SignedAuthorizationList;
533
- blobVersionedHashes?: undefined | undefined;
534
- type: "eip7702";
535
- gasPrice?: undefined | undefined;
536
537
  maxFeePerBlobGas?: undefined | undefined;
538
+ gasPrice?: undefined | undefined;
537
539
  maxFeePerGas: bigint;
538
540
  maxPriorityFeePerGas: bigint;
539
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
540
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
541
+ accessList: viem0.AccessList;
542
+ blobVersionedHashes?: undefined | undefined;
543
+ authorizationList: viem0.SignedAuthorizationList;
544
+ hash: viem0.Hash;
545
+ r: viem0.Hex;
546
+ s: viem0.Hex;
547
+ v: bigint;
548
+ yParity: number;
549
+ typeHex: viem0.Hex | null;
550
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : bigint : never : never;
551
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
541
552
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
542
553
  })[] : `0x${string}`[];
543
554
  }>;
@@ -567,127 +578,127 @@ declare const getPublicClient: (options: ClientOptions) => {
567
578
  getTransaction: <blockTag extends viem0.BlockTag = "latest">(args: viem0.GetTransactionParameters<blockTag>) => Promise<{
568
579
  chainId?: number | undefined;
569
580
  input: viem0.Hex;
570
- yParity?: undefined | undefined;
581
+ type: "legacy";
582
+ to: viem0.Address | null;
571
583
  from: viem0.Address;
572
584
  gas: bigint;
573
- hash: viem0.Hash;
574
585
  nonce: number;
575
- r: viem0.Hex;
576
- s: viem0.Hex;
577
- to: viem0.Address | null;
578
- typeHex: viem0.Hex | null;
579
- v: bigint;
580
586
  value: bigint;
581
- accessList?: undefined | undefined;
582
- authorizationList?: undefined | undefined;
583
- blobVersionedHashes?: undefined | undefined;
584
- type: "legacy";
585
- gasPrice: bigint;
586
587
  maxFeePerBlobGas?: undefined | undefined;
588
+ gasPrice: bigint;
587
589
  maxFeePerGas?: undefined | undefined;
588
590
  maxPriorityFeePerGas?: undefined | undefined;
589
- blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
590
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
591
+ accessList?: undefined | undefined;
592
+ blobVersionedHashes?: undefined | undefined;
593
+ authorizationList?: undefined | undefined;
594
+ hash: viem0.Hash;
595
+ r: viem0.Hex;
596
+ s: viem0.Hex;
597
+ v: bigint;
598
+ yParity?: undefined | undefined;
599
+ typeHex: viem0.Hex | null;
600
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
601
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
591
602
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
592
603
  } | {
593
604
  chainId: number;
594
605
  input: viem0.Hex;
595
- yParity: number;
606
+ type: "eip2930";
607
+ to: viem0.Address | null;
596
608
  from: viem0.Address;
597
609
  gas: bigint;
598
- hash: viem0.Hash;
599
610
  nonce: number;
600
- r: viem0.Hex;
601
- s: viem0.Hex;
602
- to: viem0.Address | null;
603
- typeHex: viem0.Hex | null;
604
- v: bigint;
605
611
  value: bigint;
606
- accessList: viem0.AccessList;
607
- authorizationList?: undefined | undefined;
608
- blobVersionedHashes?: undefined | undefined;
609
- type: "eip2930";
610
- gasPrice: bigint;
611
612
  maxFeePerBlobGas?: undefined | undefined;
613
+ gasPrice: bigint;
612
614
  maxFeePerGas?: undefined | undefined;
613
615
  maxPriorityFeePerGas?: undefined | undefined;
614
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
615
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
616
+ accessList: viem0.AccessList;
617
+ blobVersionedHashes?: undefined | undefined;
618
+ authorizationList?: undefined | undefined;
619
+ hash: viem0.Hash;
620
+ r: viem0.Hex;
621
+ s: viem0.Hex;
622
+ v: bigint;
623
+ yParity: number;
624
+ typeHex: viem0.Hex | null;
625
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : bigint : never : never;
626
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
616
627
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
617
628
  } | {
618
629
  chainId: number;
619
630
  input: viem0.Hex;
620
- yParity: number;
631
+ type: "eip1559";
632
+ to: viem0.Address | null;
621
633
  from: viem0.Address;
622
634
  gas: bigint;
623
- hash: viem0.Hash;
624
635
  nonce: number;
625
- r: viem0.Hex;
626
- s: viem0.Hex;
627
- to: viem0.Address | null;
628
- typeHex: viem0.Hex | null;
629
- v: bigint;
630
636
  value: bigint;
631
- accessList: viem0.AccessList;
632
- authorizationList?: undefined | undefined;
633
- blobVersionedHashes?: undefined | undefined;
634
- type: "eip1559";
635
- gasPrice?: undefined | undefined;
636
637
  maxFeePerBlobGas?: undefined | undefined;
638
+ gasPrice?: undefined | undefined;
637
639
  maxFeePerGas: bigint;
638
640
  maxPriorityFeePerGas: bigint;
639
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
640
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
641
+ accessList: viem0.AccessList;
642
+ blobVersionedHashes?: undefined | undefined;
643
+ authorizationList?: undefined | undefined;
644
+ hash: viem0.Hash;
645
+ r: viem0.Hex;
646
+ s: viem0.Hex;
647
+ v: bigint;
648
+ yParity: number;
649
+ typeHex: viem0.Hex | null;
650
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : bigint : never : never;
651
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
641
652
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
642
653
  } | {
643
654
  chainId: number;
644
655
  input: viem0.Hex;
645
- yParity: number;
656
+ type: "eip4844";
657
+ to: viem0.Address | null;
646
658
  from: viem0.Address;
647
659
  gas: bigint;
648
- hash: viem0.Hash;
649
660
  nonce: number;
650
- r: viem0.Hex;
651
- s: viem0.Hex;
652
- to: viem0.Address | null;
653
- typeHex: viem0.Hex | null;
654
- v: bigint;
655
661
  value: bigint;
656
- accessList: viem0.AccessList;
657
- authorizationList?: undefined | undefined;
658
- blobVersionedHashes: readonly viem0.Hex[];
659
- type: "eip4844";
660
- gasPrice?: undefined | undefined;
661
662
  maxFeePerBlobGas: bigint;
663
+ gasPrice?: undefined | undefined;
662
664
  maxFeePerGas: bigint;
663
665
  maxPriorityFeePerGas: bigint;
664
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
665
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
666
+ accessList: viem0.AccessList;
667
+ blobVersionedHashes: readonly viem0.Hex[];
668
+ authorizationList?: undefined | undefined;
669
+ hash: viem0.Hash;
670
+ r: viem0.Hex;
671
+ s: viem0.Hex;
672
+ v: bigint;
673
+ yParity: number;
674
+ typeHex: viem0.Hex | null;
675
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : bigint : never : never;
676
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
666
677
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
667
678
  } | {
668
679
  chainId: number;
669
680
  input: viem0.Hex;
670
- yParity: number;
681
+ type: "eip7702";
682
+ to: viem0.Address | null;
671
683
  from: viem0.Address;
672
684
  gas: bigint;
673
- hash: viem0.Hash;
674
685
  nonce: number;
675
- r: viem0.Hex;
676
- s: viem0.Hex;
677
- to: viem0.Address | null;
678
- typeHex: viem0.Hex | null;
679
- v: bigint;
680
686
  value: bigint;
681
- accessList: viem0.AccessList;
682
- authorizationList: viem0.SignedAuthorizationList;
683
- blobVersionedHashes?: undefined | undefined;
684
- type: "eip7702";
685
- gasPrice?: undefined | undefined;
686
687
  maxFeePerBlobGas?: undefined | undefined;
688
+ gasPrice?: undefined | undefined;
687
689
  maxFeePerGas: bigint;
688
690
  maxPriorityFeePerGas: bigint;
689
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
690
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
691
+ accessList: viem0.AccessList;
692
+ blobVersionedHashes?: undefined | undefined;
693
+ authorizationList: viem0.SignedAuthorizationList;
694
+ hash: viem0.Hash;
695
+ r: viem0.Hex;
696
+ s: viem0.Hex;
697
+ v: bigint;
698
+ yParity: number;
699
+ typeHex: viem0.Hex | null;
700
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : bigint : never : never;
701
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
691
702
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
692
703
  }>;
693
704
  getTransactionConfirmations: (args: viem0.GetTransactionConfirmationsParameters<Chain>) => Promise<viem0.GetTransactionConfirmationsReturnType>;
@@ -3946,7 +3957,7 @@ declare const getPublicClient: (options: ClientOptions) => {
3946
3957
  authorizationList: viem0.TransactionSerializableEIP7702["authorizationList"];
3947
3958
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem0.TransactionRequestEIP7702 : never : never : never)>> & {
3948
3959
  chainId?: number | undefined;
3949
- }, (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K] } : never>;
3960
+ }, (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K] } : never>;
3950
3961
  readContract: <const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "pure" | "view">, const args extends viem0.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem0.ReadContractParameters<abi, functionName, args>) => Promise<viem0.ReadContractReturnType<abi, functionName, args>>;
3951
3962
  sendRawTransaction: (args: viem0.SendRawTransactionParameters) => Promise<viem0.SendRawTransactionReturnType>;
3952
3963
  simulate: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
@@ -3957,8 +3968,8 @@ declare const getPublicClient: (options: ClientOptions) => {
3957
3968
  verifySiweMessage: (args: {
3958
3969
  blockNumber?: bigint | undefined | undefined;
3959
3970
  blockTag?: viem0.BlockTag | undefined;
3960
- nonce?: string | undefined | undefined;
3961
3971
  address?: `0x${string}` | undefined;
3972
+ nonce?: string | undefined | undefined;
3962
3973
  domain?: string | undefined | undefined;
3963
3974
  scheme?: string | undefined | undefined;
3964
3975
  time?: Date | undefined;
@@ -3969,10 +3980,10 @@ declare const getPublicClient: (options: ClientOptions) => {
3969
3980
  uninstallFilter: (args: viem0.UninstallFilterParameters) => Promise<viem0.UninstallFilterReturnType>;
3970
3981
  waitForTransactionReceipt: (args: viem0.WaitForTransactionReceiptParameters<Chain>) => Promise<viem0.TransactionReceipt>;
3971
3982
  watchBlockNumber: (args: viem0.WatchBlockNumberParameters) => viem0.WatchBlockNumberReturnType;
3972
- watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args: viem0.WatchBlocksParameters<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, includeTransactions, blockTag>) => viem0.WatchBlocksReturnType;
3973
- watchContractEvent: <const abi extends viem0.Abi | readonly unknown[], eventName extends viem0.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem0.WatchContractEventParameters<abi, eventName, strict, viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchContractEventReturnType;
3974
- watchEvent: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined>(args: viem0.WatchEventParameters<abiEvent, abiEvents, strict, viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchEventReturnType;
3975
- watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchPendingTransactionsReturnType;
3983
+ watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args: viem0.WatchBlocksParameters<Transport, Chain, includeTransactions, blockTag>) => viem0.WatchBlocksReturnType;
3984
+ watchContractEvent: <const abi extends viem0.Abi | readonly unknown[], eventName extends viem0.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem0.WatchContractEventParameters<abi, eventName, strict, Transport>) => viem0.WatchContractEventReturnType;
3985
+ watchEvent: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined>(args: viem0.WatchEventParameters<abiEvent, abiEvents, strict, Transport>) => viem0.WatchEventReturnType;
3986
+ watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<Transport>) => viem0.WatchPendingTransactionsReturnType;
3976
3987
  extend: <const client extends {
3977
3988
  [x: string]: unknown;
3978
3989
  account?: undefined;
@@ -3988,65 +3999,28 @@ declare const getPublicClient: (options: ClientOptions) => {
3988
3999
  transport?: undefined;
3989
4000
  type?: undefined;
3990
4001
  uid?: undefined;
3991
- } & viem0.ExactPartial<Pick<viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem0.WalletActions<Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem0.Client<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined, viem0.PublicRpcSchema, viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain>>) => client) => viem0.Client<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined, viem0.PublicRpcSchema, { [K in keyof client]: client[K] } & viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain>>;
3992
- };
3993
- /**
3994
- * The options for the wallet client.
3995
- */
3996
- interface WalletVerificationOptions {
3997
- /**
3998
- * The verification id (used for HD wallets), if not provided, the challenge response will be validated against all active verifications.
3999
- */
4000
- verificationId?: string;
4001
- /**
4002
- * The challenge response (used for HD wallets)
4003
- */
4004
- challengeResponse: string;
4005
- }
4006
- /**
4007
- * Get a wallet client. Use this if you need to write to the blockchain.
4008
- * @param options - The options for the wallet client.
4009
- * @returns A function that returns a wallet client. The function can be called with verification options for HD wallets. see {@link https://viem.sh/docs/clients/wallet}
4010
- * @example
4011
- * ```ts
4012
- * import { getWalletClient } from '@settlemint/sdk-viem';
4013
- * import { parseAbi } from "viem";
4014
- *
4015
- * const walletClient = getWalletClient({
4016
- * accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
4017
- * chainId: process.env.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID!,
4018
- * chainName: process.env.SETTLEMINT_BLOCKCHAIN_NETWORK!,
4019
- * rpcUrl: process.env.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT!,
4020
- * });
4021
- *
4022
- * // Get the chain id
4023
- * const chainId = await walletClient().getChainId();
4024
- * console.log(chainId);
4025
- *
4026
- * // write to the blockchain
4027
- * const transactionHash = await walletClient().writeContract({
4028
- * account: "0x0000000000000000000000000000000000000000",
4029
- * address: "0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2",
4030
- * abi: parseAbi(["function mint(uint32 tokenId) nonpayable"]),
4031
- * functionName: "mint",
4032
- * args: [69420],
4033
- * });
4034
- * console.log(transactionHash);
4035
- * ```
4036
- */
4037
- declare const getWalletClient: (options: ClientOptions) => (verificationOptions?: WalletVerificationOptions) => viem0.Client<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined, viem0.WalletRpcSchema, {
4038
- verifyWalletVerificationChallenge: (args: VerifyWalletVerificationChallengeParameters) => Promise<VerifyWalletVerificationChallengeResponse>;
4039
- } & {
4040
- createWalletVerificationChallenges: (args: CreateWalletVerificationChallengesParameters) => Promise<CreateWalletVerificationChallengesResponse>;
4041
- } & {
4042
- deleteWalletVerification: (args: DeleteWalletVerificationParameters) => Promise<DeleteWalletVerificationResponse[]>;
4043
- } & {
4044
- createWalletVerification: (args: CreateWalletVerificationParameters) => Promise<CreateWalletVerificationResponse[]>;
4045
- } & {
4046
- getWalletVerifications: (args: GetWalletVerificationsParameters) => Promise<GetWalletVerificationsResponse>;
4047
- } & {
4048
- createWallet: (args: CreateWalletParameters) => Promise<CreateWalletResponse[]>;
4049
- } & {
4002
+ } & viem0.ExactPartial<Pick<viem0.PublicActions<Transport, Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem0.WalletActions<Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem0.Client<Transport, Chain, undefined, viem0.PublicRpcSchema, viem0.PublicActions<Transport, Chain>>) => client) => viem0.Client<Transport, Chain, undefined, viem0.PublicRpcSchema, { [K in keyof client]: client[K] } & viem0.PublicActions<Transport, Chain>>;
4003
+ } | {
4004
+ account: undefined;
4005
+ batch?: {
4006
+ multicall?: boolean | chains.Prettify<viem0.MulticallBatchOptions> | undefined;
4007
+ } | undefined;
4008
+ cacheTime: number;
4009
+ ccipRead?: false | {
4010
+ request?: (parameters: viem0.CcipRequestParameters) => Promise<`0x${string}`>;
4011
+ } | undefined;
4012
+ chain: Chain;
4013
+ experimental_blockTag?: viem0.BlockTag | undefined;
4014
+ key: string;
4015
+ name: string;
4016
+ pollingInterval: number;
4017
+ request: viem0.EIP1193RequestFn<viem0.PublicRpcSchema>;
4018
+ transport: viem0.TransportConfig<"http", viem0.EIP1193RequestFn> & {
4019
+ fetchOptions?: HttpTransportConfig["fetchOptions"] | undefined;
4020
+ url?: string | undefined;
4021
+ };
4022
+ type: string;
4023
+ uid: string;
4050
4024
  call: (parameters: viem0.CallParameters<Chain>) => Promise<viem0.CallReturnType>;
4051
4025
  createAccessList: (parameters: viem0.CreateAccessListParameters<Chain>) => Promise<{
4052
4026
  accessList: viem0.AccessList;
@@ -4062,8 +4036,8 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
4062
4036
  getBlobBaseFee: () => Promise<viem0.GetBlobBaseFeeReturnType>;
4063
4037
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args?: viem0.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
4064
4038
  number: blockTag extends "pending" ? null : bigint;
4065
- hash: blockTag extends "pending" ? null : `0x${string}`;
4066
4039
  nonce: blockTag extends "pending" ? null : `0x${string}`;
4040
+ hash: blockTag extends "pending" ? null : `0x${string}`;
4067
4041
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
4068
4042
  baseFeePerGas: bigint | null;
4069
4043
  blobGasUsed: bigint;
@@ -4090,127 +4064,127 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
4090
4064
  transactions: includeTransactions extends true ? ({
4091
4065
  chainId?: number | undefined;
4092
4066
  input: viem0.Hex;
4093
- yParity?: undefined | undefined;
4067
+ type: "legacy";
4068
+ to: viem0.Address | null;
4094
4069
  from: viem0.Address;
4095
4070
  gas: bigint;
4096
- hash: viem0.Hash;
4097
4071
  nonce: number;
4098
- r: viem0.Hex;
4099
- s: viem0.Hex;
4100
- to: viem0.Address | null;
4101
- typeHex: viem0.Hex | null;
4102
- v: bigint;
4103
4072
  value: bigint;
4104
- accessList?: undefined | undefined;
4105
- authorizationList?: undefined | undefined;
4106
- blobVersionedHashes?: undefined | undefined;
4107
- type: "legacy";
4108
- gasPrice: bigint;
4109
4073
  maxFeePerBlobGas?: undefined | undefined;
4074
+ gasPrice: bigint;
4110
4075
  maxFeePerGas?: undefined | undefined;
4111
4076
  maxPriorityFeePerGas?: undefined | undefined;
4112
- blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
4113
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
4077
+ accessList?: undefined | undefined;
4078
+ blobVersionedHashes?: undefined | undefined;
4079
+ authorizationList?: undefined | undefined;
4080
+ hash: viem0.Hash;
4081
+ r: viem0.Hex;
4082
+ s: viem0.Hex;
4083
+ v: bigint;
4084
+ yParity?: undefined | undefined;
4085
+ typeHex: viem0.Hex | null;
4086
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
4087
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
4114
4088
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
4115
4089
  } | {
4116
4090
  chainId: number;
4117
4091
  input: viem0.Hex;
4118
- yParity: number;
4092
+ type: "eip2930";
4093
+ to: viem0.Address | null;
4119
4094
  from: viem0.Address;
4120
4095
  gas: bigint;
4121
- hash: viem0.Hash;
4122
4096
  nonce: number;
4123
- r: viem0.Hex;
4124
- s: viem0.Hex;
4125
- to: viem0.Address | null;
4126
- typeHex: viem0.Hex | null;
4127
- v: bigint;
4128
4097
  value: bigint;
4129
- accessList: viem0.AccessList;
4130
- authorizationList?: undefined | undefined;
4131
- blobVersionedHashes?: undefined | undefined;
4132
- type: "eip2930";
4133
- gasPrice: bigint;
4134
4098
  maxFeePerBlobGas?: undefined | undefined;
4099
+ gasPrice: bigint;
4135
4100
  maxFeePerGas?: undefined | undefined;
4136
4101
  maxPriorityFeePerGas?: undefined | undefined;
4137
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
4138
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
4102
+ accessList: viem0.AccessList;
4103
+ blobVersionedHashes?: undefined | undefined;
4104
+ authorizationList?: undefined | undefined;
4105
+ hash: viem0.Hash;
4106
+ r: viem0.Hex;
4107
+ s: viem0.Hex;
4108
+ v: bigint;
4109
+ yParity: number;
4110
+ typeHex: viem0.Hex | null;
4111
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : bigint : never : never;
4112
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
4139
4113
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
4140
4114
  } | {
4141
4115
  chainId: number;
4142
4116
  input: viem0.Hex;
4143
- yParity: number;
4117
+ type: "eip1559";
4118
+ to: viem0.Address | null;
4144
4119
  from: viem0.Address;
4145
4120
  gas: bigint;
4146
- hash: viem0.Hash;
4147
- nonce: number;
4148
- r: viem0.Hex;
4149
- s: viem0.Hex;
4150
- to: viem0.Address | null;
4151
- typeHex: viem0.Hex | null;
4152
- v: bigint;
4153
- value: bigint;
4154
- accessList: viem0.AccessList;
4155
- authorizationList?: undefined | undefined;
4156
- blobVersionedHashes?: undefined | undefined;
4157
- type: "eip1559";
4158
- gasPrice?: undefined | undefined;
4121
+ nonce: number;
4122
+ value: bigint;
4159
4123
  maxFeePerBlobGas?: undefined | undefined;
4124
+ gasPrice?: undefined | undefined;
4160
4125
  maxFeePerGas: bigint;
4161
4126
  maxPriorityFeePerGas: bigint;
4162
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
4163
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
4127
+ accessList: viem0.AccessList;
4128
+ blobVersionedHashes?: undefined | undefined;
4129
+ authorizationList?: undefined | undefined;
4130
+ hash: viem0.Hash;
4131
+ r: viem0.Hex;
4132
+ s: viem0.Hex;
4133
+ v: bigint;
4134
+ yParity: number;
4135
+ typeHex: viem0.Hex | null;
4136
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : bigint : never : never;
4137
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
4164
4138
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
4165
4139
  } | {
4166
4140
  chainId: number;
4167
4141
  input: viem0.Hex;
4168
- yParity: number;
4142
+ type: "eip4844";
4143
+ to: viem0.Address | null;
4169
4144
  from: viem0.Address;
4170
4145
  gas: bigint;
4171
- hash: viem0.Hash;
4172
4146
  nonce: number;
4173
- r: viem0.Hex;
4174
- s: viem0.Hex;
4175
- to: viem0.Address | null;
4176
- typeHex: viem0.Hex | null;
4177
- v: bigint;
4178
4147
  value: bigint;
4179
- accessList: viem0.AccessList;
4180
- authorizationList?: undefined | undefined;
4181
- blobVersionedHashes: readonly viem0.Hex[];
4182
- type: "eip4844";
4183
- gasPrice?: undefined | undefined;
4184
4148
  maxFeePerBlobGas: bigint;
4149
+ gasPrice?: undefined | undefined;
4185
4150
  maxFeePerGas: bigint;
4186
4151
  maxPriorityFeePerGas: bigint;
4187
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
4188
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
4152
+ accessList: viem0.AccessList;
4153
+ blobVersionedHashes: readonly viem0.Hex[];
4154
+ authorizationList?: undefined | undefined;
4155
+ hash: viem0.Hash;
4156
+ r: viem0.Hex;
4157
+ s: viem0.Hex;
4158
+ v: bigint;
4159
+ yParity: number;
4160
+ typeHex: viem0.Hex | null;
4161
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : bigint : never : never;
4162
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
4189
4163
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
4190
4164
  } | {
4191
4165
  chainId: number;
4192
4166
  input: viem0.Hex;
4193
- yParity: number;
4167
+ type: "eip7702";
4168
+ to: viem0.Address | null;
4194
4169
  from: viem0.Address;
4195
4170
  gas: bigint;
4196
- hash: viem0.Hash;
4197
4171
  nonce: number;
4198
- r: viem0.Hex;
4199
- s: viem0.Hex;
4200
- to: viem0.Address | null;
4201
- typeHex: viem0.Hex | null;
4202
- v: bigint;
4203
4172
  value: bigint;
4204
- accessList: viem0.AccessList;
4205
- authorizationList: viem0.SignedAuthorizationList;
4206
- blobVersionedHashes?: undefined | undefined;
4207
- type: "eip7702";
4208
- gasPrice?: undefined | undefined;
4209
4173
  maxFeePerBlobGas?: undefined | undefined;
4174
+ gasPrice?: undefined | undefined;
4210
4175
  maxFeePerGas: bigint;
4211
4176
  maxPriorityFeePerGas: bigint;
4212
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
4213
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
4177
+ accessList: viem0.AccessList;
4178
+ blobVersionedHashes?: undefined | undefined;
4179
+ authorizationList: viem0.SignedAuthorizationList;
4180
+ hash: viem0.Hash;
4181
+ r: viem0.Hex;
4182
+ s: viem0.Hex;
4183
+ v: bigint;
4184
+ yParity: number;
4185
+ typeHex: viem0.Hex | null;
4186
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : bigint : never : never;
4187
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
4214
4188
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
4215
4189
  })[] : `0x${string}`[];
4216
4190
  }>;
@@ -4240,138 +4214,138 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
4240
4214
  getTransaction: <blockTag extends viem0.BlockTag = "latest">(args: viem0.GetTransactionParameters<blockTag>) => Promise<{
4241
4215
  chainId?: number | undefined;
4242
4216
  input: viem0.Hex;
4243
- yParity?: undefined | undefined;
4217
+ type: "legacy";
4218
+ to: viem0.Address | null;
4244
4219
  from: viem0.Address;
4245
4220
  gas: bigint;
4246
- hash: viem0.Hash;
4247
4221
  nonce: number;
4248
- r: viem0.Hex;
4249
- s: viem0.Hex;
4250
- to: viem0.Address | null;
4251
- typeHex: viem0.Hex | null;
4252
- v: bigint;
4253
4222
  value: bigint;
4254
- accessList?: undefined | undefined;
4255
- authorizationList?: undefined | undefined;
4256
- blobVersionedHashes?: undefined | undefined;
4257
- type: "legacy";
4258
- gasPrice: bigint;
4259
4223
  maxFeePerBlobGas?: undefined | undefined;
4224
+ gasPrice: bigint;
4260
4225
  maxFeePerGas?: undefined | undefined;
4261
4226
  maxPriorityFeePerGas?: undefined | undefined;
4262
- blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
4263
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
4227
+ accessList?: undefined | undefined;
4228
+ blobVersionedHashes?: undefined | undefined;
4229
+ authorizationList?: undefined | undefined;
4230
+ hash: viem0.Hash;
4231
+ r: viem0.Hex;
4232
+ s: viem0.Hex;
4233
+ v: bigint;
4234
+ yParity?: undefined | undefined;
4235
+ typeHex: viem0.Hex | null;
4236
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
4237
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
4264
4238
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
4265
4239
  } | {
4266
4240
  chainId: number;
4267
4241
  input: viem0.Hex;
4268
- yParity: number;
4242
+ type: "eip2930";
4243
+ to: viem0.Address | null;
4269
4244
  from: viem0.Address;
4270
4245
  gas: bigint;
4271
- hash: viem0.Hash;
4272
4246
  nonce: number;
4273
- r: viem0.Hex;
4274
- s: viem0.Hex;
4275
- to: viem0.Address | null;
4276
- typeHex: viem0.Hex | null;
4277
- v: bigint;
4278
4247
  value: bigint;
4279
- accessList: viem0.AccessList;
4280
- authorizationList?: undefined | undefined;
4281
- blobVersionedHashes?: undefined | undefined;
4282
- type: "eip2930";
4283
- gasPrice: bigint;
4284
4248
  maxFeePerBlobGas?: undefined | undefined;
4249
+ gasPrice: bigint;
4285
4250
  maxFeePerGas?: undefined | undefined;
4286
4251
  maxPriorityFeePerGas?: undefined | undefined;
4287
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
4288
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
4252
+ accessList: viem0.AccessList;
4253
+ blobVersionedHashes?: undefined | undefined;
4254
+ authorizationList?: undefined | undefined;
4255
+ hash: viem0.Hash;
4256
+ r: viem0.Hex;
4257
+ s: viem0.Hex;
4258
+ v: bigint;
4259
+ yParity: number;
4260
+ typeHex: viem0.Hex | null;
4261
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : bigint : never : never;
4262
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
4289
4263
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
4290
4264
  } | {
4291
4265
  chainId: number;
4292
4266
  input: viem0.Hex;
4293
- yParity: number;
4267
+ type: "eip1559";
4268
+ to: viem0.Address | null;
4294
4269
  from: viem0.Address;
4295
4270
  gas: bigint;
4296
- hash: viem0.Hash;
4297
4271
  nonce: number;
4298
- r: viem0.Hex;
4299
- s: viem0.Hex;
4300
- to: viem0.Address | null;
4301
- typeHex: viem0.Hex | null;
4302
- v: bigint;
4303
4272
  value: bigint;
4304
- accessList: viem0.AccessList;
4305
- authorizationList?: undefined | undefined;
4306
- blobVersionedHashes?: undefined | undefined;
4307
- type: "eip1559";
4308
- gasPrice?: undefined | undefined;
4309
4273
  maxFeePerBlobGas?: undefined | undefined;
4274
+ gasPrice?: undefined | undefined;
4310
4275
  maxFeePerGas: bigint;
4311
4276
  maxPriorityFeePerGas: bigint;
4312
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
4313
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
4277
+ accessList: viem0.AccessList;
4278
+ blobVersionedHashes?: undefined | undefined;
4279
+ authorizationList?: undefined | undefined;
4280
+ hash: viem0.Hash;
4281
+ r: viem0.Hex;
4282
+ s: viem0.Hex;
4283
+ v: bigint;
4284
+ yParity: number;
4285
+ typeHex: viem0.Hex | null;
4286
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : bigint : never : never;
4287
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
4314
4288
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
4315
4289
  } | {
4316
4290
  chainId: number;
4317
4291
  input: viem0.Hex;
4318
- yParity: number;
4292
+ type: "eip4844";
4293
+ to: viem0.Address | null;
4319
4294
  from: viem0.Address;
4320
4295
  gas: bigint;
4321
- hash: viem0.Hash;
4322
4296
  nonce: number;
4323
- r: viem0.Hex;
4324
- s: viem0.Hex;
4325
- to: viem0.Address | null;
4326
- typeHex: viem0.Hex | null;
4327
- v: bigint;
4328
4297
  value: bigint;
4329
- accessList: viem0.AccessList;
4330
- authorizationList?: undefined | undefined;
4331
- blobVersionedHashes: readonly viem0.Hex[];
4332
- type: "eip4844";
4333
- gasPrice?: undefined | undefined;
4334
4298
  maxFeePerBlobGas: bigint;
4299
+ gasPrice?: undefined | undefined;
4335
4300
  maxFeePerGas: bigint;
4336
4301
  maxPriorityFeePerGas: bigint;
4337
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
4338
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
4302
+ accessList: viem0.AccessList;
4303
+ blobVersionedHashes: readonly viem0.Hex[];
4304
+ authorizationList?: undefined | undefined;
4305
+ hash: viem0.Hash;
4306
+ r: viem0.Hex;
4307
+ s: viem0.Hex;
4308
+ v: bigint;
4309
+ yParity: number;
4310
+ typeHex: viem0.Hex | null;
4311
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : bigint : never : never;
4312
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
4339
4313
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
4340
4314
  } | {
4341
4315
  chainId: number;
4342
4316
  input: viem0.Hex;
4343
- yParity: number;
4317
+ type: "eip7702";
4318
+ to: viem0.Address | null;
4344
4319
  from: viem0.Address;
4345
4320
  gas: bigint;
4346
- hash: viem0.Hash;
4347
4321
  nonce: number;
4348
- r: viem0.Hex;
4349
- s: viem0.Hex;
4350
- to: viem0.Address | null;
4351
- typeHex: viem0.Hex | null;
4352
- v: bigint;
4353
4322
  value: bigint;
4354
- accessList: viem0.AccessList;
4355
- authorizationList: viem0.SignedAuthorizationList;
4356
- blobVersionedHashes?: undefined | undefined;
4357
- type: "eip7702";
4358
- gasPrice?: undefined | undefined;
4359
4323
  maxFeePerBlobGas?: undefined | undefined;
4324
+ gasPrice?: undefined | undefined;
4360
4325
  maxFeePerGas: bigint;
4361
4326
  maxPriorityFeePerGas: bigint;
4362
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
4363
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
4327
+ accessList: viem0.AccessList;
4328
+ blobVersionedHashes?: undefined | undefined;
4329
+ authorizationList: viem0.SignedAuthorizationList;
4330
+ hash: viem0.Hash;
4331
+ r: viem0.Hex;
4332
+ s: viem0.Hex;
4333
+ v: bigint;
4334
+ yParity: number;
4335
+ typeHex: viem0.Hex | null;
4336
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : bigint : never : never;
4337
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
4364
4338
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
4365
4339
  }>;
4366
4340
  getTransactionConfirmations: (args: viem0.GetTransactionConfirmationsParameters<Chain>) => Promise<viem0.GetTransactionConfirmationsReturnType>;
4367
4341
  getTransactionCount: (args: viem0.GetTransactionCountParameters) => Promise<viem0.GetTransactionCountReturnType>;
4368
4342
  getTransactionReceipt: (args: viem0.GetTransactionReceiptParameters) => Promise<viem0.TransactionReceipt>;
4369
4343
  multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem0.MulticallParameters<contracts, allowFailure>) => Promise<viem0.MulticallReturnType<contracts, allowFailure>>;
4370
- prepareTransactionRequest: <const request extends viem0.PrepareTransactionRequestRequest<Chain, chainOverride>, chainOverride extends Chain | undefined = undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.PrepareTransactionRequestParameters<Chain, undefined, chainOverride, accountOverride, request>) => Promise<viem0.UnionRequiredBy<Extract<viem0.UnionOmit<viem0.ExtractChainFormatterParameters<viem0.DeriveChain<Chain, chainOverride>, "transactionRequest", viem0.TransactionRequest>, "from"> & (viem0.DeriveChain<Chain, chainOverride> extends infer T_1 ? T_1 extends viem0.DeriveChain<Chain, chainOverride> ? T_1 extends Chain ? {
4344
+ prepareTransactionRequest: <const request extends viem0.PrepareTransactionRequestRequest<Chain, chainOverride>, chainOverride extends Chain | undefined = undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.PrepareTransactionRequestParameters<Chain, viem0.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem0.UnionRequiredBy<Extract<viem0.UnionOmit<viem0.ExtractChainFormatterParameters<viem0.DeriveChain<Chain, chainOverride>, "transactionRequest", viem0.TransactionRequest>, "from"> & (viem0.DeriveChain<Chain, chainOverride> extends infer T_1 ? T_1 extends viem0.DeriveChain<Chain, chainOverride> ? T_1 extends Chain ? {
4371
4345
  chain: T_1;
4372
4346
  } : {
4373
4347
  chain?: undefined;
4374
- } : never : never) & (viem0.DeriveAccount<undefined, accountOverride> extends infer T_2 ? T_2 extends viem0.DeriveAccount<undefined, accountOverride> ? T_2 extends viem0.Account ? {
4348
+ } : never : never) & (viem0.DeriveAccount<viem0.Account | undefined, accountOverride> extends infer T_2 ? T_2 extends viem0.DeriveAccount<viem0.Account | undefined, accountOverride> ? T_2 extends viem0.Account ? {
4375
4349
  account: T_2;
4376
4350
  from: viem0.Address;
4377
4351
  } : {
@@ -7619,19 +7593,19 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
7619
7593
  authorizationList: viem0.TransactionSerializableEIP7702["authorizationList"];
7620
7594
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem0.TransactionRequestEIP7702 : never : never : never)>> & {
7621
7595
  chainId?: number | undefined;
7622
- }, (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K] } : never>;
7596
+ }, (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem0.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K] } : never>;
7623
7597
  readContract: <const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "pure" | "view">, const args extends viem0.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem0.ReadContractParameters<abi, functionName, args>) => Promise<viem0.ReadContractReturnType<abi, functionName, args>>;
7624
7598
  sendRawTransaction: (args: viem0.SendRawTransactionParameters) => Promise<viem0.SendRawTransactionReturnType>;
7625
7599
  simulate: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
7626
7600
  simulateBlocks: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
7627
7601
  simulateCalls: <const calls extends readonly unknown[]>(args: viem0.SimulateCallsParameters<calls>) => Promise<viem0.SimulateCallsReturnType<calls>>;
7628
- simulateContract: <const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem0.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.SimulateContractParameters<abi, functionName, args_1, Chain, chainOverride, accountOverride>) => Promise<viem0.SimulateContractReturnType<abi, functionName, args_1, Chain, undefined, chainOverride, accountOverride>>;
7602
+ simulateContract: <const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem0.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.SimulateContractParameters<abi, functionName, args_1, Chain, chainOverride, accountOverride>) => Promise<viem0.SimulateContractReturnType<abi, functionName, args_1, Chain, viem0.Account | undefined, chainOverride, accountOverride>>;
7629
7603
  verifyMessage: (args: viem0.VerifyMessageActionParameters) => Promise<viem0.VerifyMessageActionReturnType>;
7630
7604
  verifySiweMessage: (args: {
7631
7605
  blockNumber?: bigint | undefined | undefined;
7632
7606
  blockTag?: viem0.BlockTag | undefined;
7633
- nonce?: string | undefined | undefined;
7634
7607
  address?: `0x${string}` | undefined;
7608
+ nonce?: string | undefined | undefined;
7635
7609
  domain?: string | undefined | undefined;
7636
7610
  scheme?: string | undefined | undefined;
7637
7611
  time?: Date | undefined;
@@ -7646,7 +7620,93 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
7646
7620
  watchContractEvent: <const abi extends viem0.Abi | readonly unknown[], eventName extends viem0.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem0.WatchContractEventParameters<abi, eventName, strict, viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchContractEventReturnType;
7647
7621
  watchEvent: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined>(args: viem0.WatchEventParameters<abiEvent, abiEvents, strict, viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchEventReturnType;
7648
7622
  watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchPendingTransactionsReturnType;
7649
- } & viem0.WalletActions<Chain, undefined>>;
7623
+ extend: <const client extends {
7624
+ [x: string]: unknown;
7625
+ account?: undefined;
7626
+ batch?: undefined;
7627
+ cacheTime?: undefined;
7628
+ ccipRead?: undefined;
7629
+ chain?: undefined;
7630
+ experimental_blockTag?: undefined;
7631
+ key?: undefined;
7632
+ name?: undefined;
7633
+ pollingInterval?: undefined;
7634
+ request?: undefined;
7635
+ transport?: undefined;
7636
+ type?: undefined;
7637
+ uid?: undefined;
7638
+ } & viem0.ExactPartial<Pick<viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem0.WalletActions<Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem0.Client<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined, viem0.PublicRpcSchema, viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain>>) => client) => viem0.Client<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined, viem0.PublicRpcSchema, { [K in keyof client]: client[K] } & viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain>>;
7639
+ };
7640
+ /**
7641
+ * The options for the wallet client.
7642
+ */
7643
+ interface WalletVerificationOptions {
7644
+ /**
7645
+ * The verification id (used for HD wallets), if not provided, the challenge response will be validated against all active verifications.
7646
+ */
7647
+ verificationId?: string;
7648
+ /**
7649
+ * The challenge id (used for HD wallets)
7650
+ */
7651
+ challengeId?: string;
7652
+ /**
7653
+ * The challenge response (used for HD wallets)
7654
+ */
7655
+ challengeResponse: string;
7656
+ }
7657
+ /**
7658
+ * Creates a factory function for wallet clients with runtime verification support.
7659
+ *
7660
+ * @remarks
7661
+ * DESIGN PATTERN: Returns a factory function rather than a client instance because
7662
+ * wallet operations require runtime verification parameters (challenge responses, etc.)
7663
+ * that cannot be known at factory creation time.
7664
+ *
7665
+ * SECURITY: Verification headers are injected per-operation to support:
7666
+ * - HD wallet challenge/response flows
7667
+ * - Multi-signature verification workflows
7668
+ * - Time-sensitive authentication tokens
7669
+ *
7670
+ * PERFORMANCE: Factory caching amortizes expensive setup (chain resolution, transport config)
7671
+ * while allowing runtime parameter injection for each wallet operation.
7672
+ *
7673
+ * FEATURE EXTENSIONS: Automatically extends client with SettleMint-specific wallet actions:
7674
+ * - Wallet creation and management
7675
+ * - Verification challenge handling
7676
+ * - Multi-factor authentication flows
7677
+ *
7678
+ * @param options - Base client configuration (chain, RPC, auth)
7679
+ * @returns Factory function that accepts runtime verification options
7680
+ * @throws ValidationError when options don't match required schema
7681
+ *
7682
+ * @example
7683
+ * ```ts
7684
+ * import { getWalletClient } from '@settlemint/sdk-viem';
7685
+ * import { parseAbi } from "viem";
7686
+ *
7687
+ * const walletClient = getWalletClient({
7688
+ * accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
7689
+ * chainId: process.env.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID!,
7690
+ * chainName: process.env.SETTLEMINT_BLOCKCHAIN_NETWORK!,
7691
+ * rpcUrl: process.env.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT!,
7692
+ * });
7693
+ *
7694
+ * // Get the chain id
7695
+ * const chainId = await walletClient().getChainId();
7696
+ * console.log(chainId);
7697
+ *
7698
+ * // write to the blockchain
7699
+ * const transactionHash = await walletClient().writeContract({
7700
+ * account: "0x0000000000000000000000000000000000000000",
7701
+ * address: "0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2",
7702
+ * abi: parseAbi(["function mint(uint32 tokenId) nonpayable"]),
7703
+ * functionName: "mint",
7704
+ * args: [69420],
7705
+ * });
7706
+ * console.log(transactionHash);
7707
+ * ```
7708
+ */
7709
+ declare const getWalletClient: (options: ClientOptions) => any;
7650
7710
  /**
7651
7711
  * Schema for the viem client options.
7652
7712
  */
@@ -7662,9 +7722,23 @@ type GetChainIdOptions = Omit<z.infer<typeof GetChainIdOptionsSchema>, "httpTran
7662
7722
  httpTransportConfig?: HttpTransportConfig;
7663
7723
  };
7664
7724
  /**
7665
- * Get the chain id of a blockchain network.
7666
- * @param options - The options for the public client.
7667
- * @returns The chain id.
7725
+ * Discovers the chain ID from an RPC endpoint without requiring prior knowledge.
7726
+ *
7727
+ * @remarks
7728
+ * UTILITY: Enables chain discovery for dynamic network configuration scenarios.
7729
+ * Unlike other client functions, this creates a minimal, non-cached client for one-time queries.
7730
+ *
7731
+ * USE CASE: Chain ID discovery during initial network setup or validation.
7732
+ * Alternative to requiring users to know chain IDs in advance.
7733
+ *
7734
+ * PERFORMANCE: No caching because chain IDs are typically discovered once
7735
+ * during setup rather than repeatedly during runtime operations.
7736
+ *
7737
+ * @param options - Minimal options with RPC URL and optional authentication
7738
+ * @returns Promise resolving to the network's chain ID as a number
7739
+ * @throws NetworkError when RPC endpoint is unreachable
7740
+ * @throws AuthenticationError when access token is invalid
7741
+ *
7668
7742
  * @example
7669
7743
  * ```ts
7670
7744
  * import { getChainId } from '@settlemint/sdk-viem';