@settlemint/sdk-viem 2.5.6 → 2.5.7

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.
@@ -1,49 +1,51 @@
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/verify-wallet-verification-challenge.action.d.ts
8
- /**
9
- * Represents either a wallet address string or an object containing wallet address and optional verification ID.
10
- */
11
- type AddressOrObject = string | {
12
- userWalletAddress: string;
13
- verificationId?: string;
14
- };
7
+ //#region src/custom-actions/create-wallet.action.d.ts
15
8
  /**
16
- * Parameters for verifying a wallet verification challenge.
9
+ * Information about the wallet to be created.
17
10
  */
18
- interface VerifyWalletVerificationChallengeParameters {
19
- /** The wallet address or object containing wallet address and optional verification ID. */
20
- addressOrObject: AddressOrObject;
21
- /** The response to the verification challenge. */
22
- challengeResponse: string;
11
+ interface WalletInfo {
12
+ /** The name of the wallet. */
13
+ name: string;
23
14
  }
24
15
  /**
25
- * Result of a wallet verification challenge.
16
+ * Parameters for creating a wallet.
26
17
  */
27
- interface VerificationResult {
28
- /** Whether the verification was successful. */
29
- verified: boolean;
18
+ interface CreateWalletParameters {
19
+ /** The unique name of the key vault where the wallet will be created. */
20
+ keyVaultId: string;
21
+ /** Information about the wallet to be created. */
22
+ walletInfo: WalletInfo;
30
23
  }
31
24
  /**
32
- * Response from verifying a wallet verification challenge.
25
+ * Response from creating a wallet.
33
26
  */
34
- type VerifyWalletVerificationChallengeResponse = VerificationResult[];
27
+ interface CreateWalletResponse {
28
+ /** The unique identifier of the wallet. */
29
+ id: string;
30
+ /** The name of the wallet. */
31
+ name: string;
32
+ /** The blockchain address of the wallet. */
33
+ address: string;
34
+ /** The HD derivation path used to create the wallet. */
35
+ derivationPath: string;
36
+ }
35
37
  /**
36
- * Creates a wallet verification challenge verification action for the given client.
38
+ * Creates a wallet action for the given client.
37
39
  * @param client - The viem client to use for the request.
38
- * @returns An object with a verifyWalletVerificationChallenge method.
40
+ * @returns An object with a createWallet method.
39
41
  */
40
- declare function verifyWalletVerificationChallenge(client: Client): {
42
+ declare function createWallet(client: Client): {
41
43
  /**
42
- * Verifies a wallet verification challenge.
43
- * @param args - The parameters for verifying the challenge.
44
- * @returns A promise that resolves to an array of verification results.
44
+ * Creates a new wallet in the specified key vault.
45
+ * @param args - The parameters for creating a wallet.
46
+ * @returns A promise that resolves to an array of created wallet responses.
45
47
  */
46
- verifyWalletVerificationChallenge(args: VerifyWalletVerificationChallengeParameters): Promise<VerifyWalletVerificationChallengeResponse>;
48
+ createWallet(args: CreateWalletParameters): Promise<CreateWalletResponse[]>;
47
49
  };
48
50
  //#endregion
49
51
  //#region src/custom-actions/types/wallet-verification.enum.d.ts
@@ -84,76 +86,6 @@ declare enum OTPAlgorithm {
84
86
  SHA3_512 = "SHA3-512",
85
87
  }
86
88
  //#endregion
87
- //#region src/custom-actions/create-wallet-verification-challenges.action.d.ts
88
- /**
89
- * Parameters for creating wallet verification challenges.
90
- */
91
- interface CreateWalletVerificationChallengesParameters {
92
- /** The wallet address or object containing wallet address and optional verification ID. */
93
- addressOrObject: AddressOrObject;
94
- }
95
- /**
96
- * Represents a wallet verification challenge.
97
- */
98
- interface WalletVerificationChallenge {
99
- /** The unique identifier of the challenge. */
100
- id: string;
101
- /** The name of the challenge. */
102
- name: string;
103
- /** The type of verification required. */
104
- verificationType: WalletVerificationType;
105
- /** The challenge parameters specific to the verification type. */
106
- challenge: Record<string, string>;
107
- }
108
- /**
109
- * Response from creating wallet verification challenges.
110
- */
111
- type CreateWalletVerificationChallengesResponse = WalletVerificationChallenge[];
112
- /**
113
- * Creates a wallet verification challenges action for the given client.
114
- * @param client - The viem client to use for the request.
115
- * @returns An object with a createWalletVerificationChallenges method.
116
- */
117
- declare function createWalletVerificationChallenges(client: Client): {
118
- /**
119
- * Creates verification challenges for a wallet.
120
- * @param args - The parameters for creating the challenges.
121
- * @returns A promise that resolves to an array of wallet verification challenges.
122
- */
123
- createWalletVerificationChallenges(args: CreateWalletVerificationChallengesParameters): Promise<CreateWalletVerificationChallengesResponse>;
124
- };
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
89
  //#region src/custom-actions/create-wallet-verification.action.d.ts
158
90
  /**
159
91
  * Base interface for wallet verification information.
@@ -235,85 +167,153 @@ declare function createWalletVerification(client: Client): {
235
167
  createWalletVerification(args: CreateWalletVerificationParameters): Promise<CreateWalletVerificationResponse[]>;
236
168
  };
237
169
  //#endregion
238
- //#region src/custom-actions/get-wallet-verifications.action.d.ts
170
+ //#region src/custom-actions/verify-wallet-verification-challenge.action.d.ts
239
171
  /**
240
- * Parameters for getting wallet verifications.
172
+ * Represents either a wallet address string or an object containing wallet address and optional verification ID.
241
173
  */
242
- interface GetWalletVerificationsParameters {
243
- /** The wallet address for which to fetch verifications. */
174
+ type AddressOrObject = string | {
244
175
  userWalletAddress: string;
176
+ verificationId?: string;
177
+ };
178
+ /**
179
+ * Parameters for verifying a wallet verification challenge.
180
+ */
181
+ interface VerifyWalletVerificationChallengeParameters {
182
+ /** The wallet address or object containing wallet address and optional verification ID. */
183
+ addressOrObject: AddressOrObject;
184
+ /** The response to the verification challenge. */
185
+ challengeResponse: string;
245
186
  }
246
187
  /**
247
- * Represents a wallet verification.
188
+ * Result of a wallet verification challenge.
248
189
  */
249
- interface WalletVerification {
250
- /** The unique identifier of the verification. */
190
+ interface VerificationResult {
191
+ /** Whether the verification was successful. */
192
+ verified: boolean;
193
+ }
194
+ /**
195
+ * Response from verifying a wallet verification challenge.
196
+ */
197
+ type VerifyWalletVerificationChallengeResponse = VerificationResult[];
198
+ /**
199
+ * Creates a wallet verification challenge verification action for the given client.
200
+ * @param client - The viem client to use for the request.
201
+ * @returns An object with a verifyWalletVerificationChallenge method.
202
+ */
203
+ declare function verifyWalletVerificationChallenge(client: Client): {
204
+ /**
205
+ * Verifies a wallet verification challenge.
206
+ * @param args - The parameters for verifying the challenge.
207
+ * @returns A promise that resolves to an array of verification results.
208
+ */
209
+ verifyWalletVerificationChallenge(args: VerifyWalletVerificationChallengeParameters): Promise<VerifyWalletVerificationChallengeResponse>;
210
+ };
211
+ //#endregion
212
+ //#region src/custom-actions/create-wallet-verification-challenges.action.d.ts
213
+ /**
214
+ * Parameters for creating wallet verification challenges.
215
+ */
216
+ interface CreateWalletVerificationChallengesParameters {
217
+ /** The wallet address or object containing wallet address and optional verification ID. */
218
+ addressOrObject: AddressOrObject;
219
+ }
220
+ /**
221
+ * Represents a wallet verification challenge.
222
+ */
223
+ interface WalletVerificationChallenge {
224
+ /** The unique identifier of the challenge. */
251
225
  id: string;
252
- /** The name of the verification method. */
226
+ /** The name of the challenge. */
253
227
  name: string;
254
- /** The type of verification method. */
228
+ /** The type of verification required. */
255
229
  verificationType: WalletVerificationType;
230
+ /** The challenge parameters specific to the verification type. */
231
+ challenge: Record<string, string>;
256
232
  }
257
233
  /**
258
- * Response from getting wallet verifications.
234
+ * Response from creating wallet verification challenges.
259
235
  */
260
- type GetWalletVerificationsResponse = WalletVerification[];
236
+ type CreateWalletVerificationChallengesResponse = WalletVerificationChallenge[];
261
237
  /**
262
- * Creates a wallet verifications retrieval action for the given client.
238
+ * Creates a wallet verification challenges action for the given client.
263
239
  * @param client - The viem client to use for the request.
264
- * @returns An object with a getWalletVerifications method.
240
+ * @returns An object with a createWalletVerificationChallenges method.
265
241
  */
266
- declare function getWalletVerifications(client: Client): {
242
+ declare function createWalletVerificationChallenges(client: Client): {
267
243
  /**
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.
244
+ * Creates verification challenges for a wallet.
245
+ * @param args - The parameters for creating the challenges.
246
+ * @returns A promise that resolves to an array of wallet verification challenges.
271
247
  */
272
- getWalletVerifications(args: GetWalletVerificationsParameters): Promise<GetWalletVerificationsResponse>;
248
+ createWalletVerificationChallenges(args: CreateWalletVerificationChallengesParameters): Promise<CreateWalletVerificationChallengesResponse>;
273
249
  };
274
250
  //#endregion
275
- //#region src/custom-actions/create-wallet.action.d.ts
251
+ //#region src/custom-actions/delete-wallet-verification.action.d.ts
276
252
  /**
277
- * Information about the wallet to be created.
253
+ * Parameters for deleting a wallet verification.
278
254
  */
279
- interface WalletInfo {
280
- /** The name of the wallet. */
281
- name: string;
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;
282
260
  }
283
261
  /**
284
- * Parameters for creating a wallet.
262
+ * Response from deleting a wallet verification.
285
263
  */
286
- interface CreateWalletParameters {
287
- /** The unique name of the key vault where the wallet will be created. */
288
- keyVaultId: string;
289
- /** Information about the wallet to be created. */
290
- walletInfo: WalletInfo;
264
+ interface DeleteWalletVerificationResponse {
265
+ /** Whether the deletion was successful. */
266
+ success: boolean;
291
267
  }
292
268
  /**
293
- * Response from creating a wallet.
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.
294
272
  */
295
- interface CreateWalletResponse {
296
- /** The unique identifier of the wallet. */
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. */
297
295
  id: string;
298
- /** The name of the wallet. */
296
+ /** The name of the verification method. */
299
297
  name: string;
300
- /** The blockchain address of the wallet. */
301
- address: string;
302
- /** The HD derivation path used to create the wallet. */
303
- derivationPath: string;
298
+ /** The type of verification method. */
299
+ verificationType: WalletVerificationType;
304
300
  }
305
301
  /**
306
- * Creates a wallet action for the given client.
302
+ * Response from getting wallet verifications.
303
+ */
304
+ type GetWalletVerificationsResponse = WalletVerification[];
305
+ /**
306
+ * Creates a wallet verifications retrieval action for the given client.
307
307
  * @param client - The viem client to use for the request.
308
- * @returns An object with a createWallet method.
308
+ * @returns An object with a getWalletVerifications method.
309
309
  */
310
- declare function createWallet(client: Client): {
310
+ declare function getWalletVerifications(client: Client): {
311
311
  /**
312
- * Creates a new wallet in the specified key vault.
313
- * @param args - The parameters for creating a wallet.
314
- * @returns A promise that resolves to an array of created wallet responses.
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
315
  */
316
- createWallet(args: CreateWalletParameters): Promise<CreateWalletResponse[]>;
316
+ getWalletVerifications(args: GetWalletVerificationsParameters): Promise<GetWalletVerificationsResponse>;
317
317
  };
318
318
  //#endregion
319
319
  //#region src/viem.d.ts
@@ -368,10 +368,7 @@ declare const getPublicClient: (options: ClientOptions) => {
368
368
  name: string;
369
369
  pollingInterval: number;
370
370
  request: viem0.EIP1193RequestFn<viem0.PublicRpcSchema>;
371
- transport: viem0.TransportConfig<"http", viem0.EIP1193RequestFn> & {
372
- fetchOptions?: HttpTransportConfig["fetchOptions"] | undefined;
373
- url?: string | undefined;
374
- };
371
+ transport: viem0.TransportConfig<string, viem0.EIP1193RequestFn> & Record<string, any>;
375
372
  type: string;
376
373
  uid: string;
377
374
  call: (parameters: viem0.CallParameters<Chain>) => Promise<viem0.CallReturnType>;
@@ -389,8 +386,8 @@ declare const getPublicClient: (options: ClientOptions) => {
389
386
  getBlobBaseFee: () => Promise<viem0.GetBlobBaseFeeReturnType>;
390
387
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args?: viem0.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
391
388
  number: blockTag extends "pending" ? null : bigint;
392
- hash: blockTag extends "pending" ? null : `0x${string}`;
393
389
  nonce: blockTag extends "pending" ? null : `0x${string}`;
390
+ hash: blockTag extends "pending" ? null : `0x${string}`;
394
391
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
395
392
  baseFeePerGas: bigint | null;
396
393
  blobGasUsed: bigint;
@@ -417,127 +414,127 @@ declare const getPublicClient: (options: ClientOptions) => {
417
414
  transactions: includeTransactions extends true ? ({
418
415
  chainId?: number | undefined;
419
416
  input: viem0.Hex;
420
- yParity?: undefined | undefined;
417
+ type: "legacy";
418
+ to: viem0.Address | null;
421
419
  from: viem0.Address;
422
420
  gas: bigint;
423
- hash: viem0.Hash;
424
421
  nonce: number;
425
- r: viem0.Hex;
426
- s: viem0.Hex;
427
- to: viem0.Address | null;
428
- typeHex: viem0.Hex | null;
429
- v: bigint;
430
422
  value: bigint;
431
- accessList?: undefined | undefined;
432
- authorizationList?: undefined | undefined;
433
- blobVersionedHashes?: undefined | undefined;
434
- type: "legacy";
435
- gasPrice: bigint;
436
423
  maxFeePerBlobGas?: undefined | undefined;
424
+ gasPrice: bigint;
437
425
  maxFeePerGas?: undefined | undefined;
438
426
  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;
427
+ accessList?: undefined | undefined;
428
+ blobVersionedHashes?: undefined | undefined;
429
+ authorizationList?: undefined | undefined;
430
+ hash: viem0.Hash;
431
+ r: viem0.Hex;
432
+ s: viem0.Hex;
433
+ v: bigint;
434
+ yParity?: undefined | undefined;
435
+ typeHex: viem0.Hex | null;
436
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
437
+ 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
438
  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
439
  } | {
443
440
  chainId: number;
444
441
  input: viem0.Hex;
445
- yParity: number;
442
+ type: "eip2930";
443
+ to: viem0.Address | null;
446
444
  from: viem0.Address;
447
445
  gas: bigint;
448
- hash: viem0.Hash;
449
446
  nonce: number;
450
- r: viem0.Hex;
451
- s: viem0.Hex;
452
- to: viem0.Address | null;
453
- typeHex: viem0.Hex | null;
454
- v: bigint;
455
447
  value: bigint;
456
- accessList: viem0.AccessList;
457
- authorizationList?: undefined | undefined;
458
- blobVersionedHashes?: undefined | undefined;
459
- type: "eip2930";
460
- gasPrice: bigint;
461
448
  maxFeePerBlobGas?: undefined | undefined;
449
+ gasPrice: bigint;
462
450
  maxFeePerGas?: undefined | undefined;
463
451
  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;
452
+ accessList: viem0.AccessList;
453
+ blobVersionedHashes?: undefined | undefined;
454
+ authorizationList?: undefined | undefined;
455
+ hash: viem0.Hash;
456
+ r: viem0.Hex;
457
+ s: viem0.Hex;
458
+ v: bigint;
459
+ yParity: number;
460
+ typeHex: viem0.Hex | null;
461
+ 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;
462
+ 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
463
  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
464
  } | {
468
465
  chainId: number;
469
466
  input: viem0.Hex;
470
- yParity: number;
467
+ type: "eip1559";
468
+ to: viem0.Address | null;
471
469
  from: viem0.Address;
472
470
  gas: bigint;
473
- hash: viem0.Hash;
474
471
  nonce: number;
475
- r: viem0.Hex;
476
- s: viem0.Hex;
477
- to: viem0.Address | null;
478
- typeHex: viem0.Hex | null;
479
- v: bigint;
480
472
  value: bigint;
481
- accessList: viem0.AccessList;
482
- authorizationList?: undefined | undefined;
483
- blobVersionedHashes?: undefined | undefined;
484
- type: "eip1559";
485
- gasPrice?: undefined | undefined;
486
473
  maxFeePerBlobGas?: undefined | undefined;
474
+ gasPrice?: undefined | undefined;
487
475
  maxFeePerGas: bigint;
488
476
  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;
477
+ accessList: viem0.AccessList;
478
+ blobVersionedHashes?: undefined | undefined;
479
+ authorizationList?: undefined | undefined;
480
+ hash: viem0.Hash;
481
+ r: viem0.Hex;
482
+ s: viem0.Hex;
483
+ v: bigint;
484
+ yParity: number;
485
+ typeHex: viem0.Hex | null;
486
+ 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;
487
+ 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
488
  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
489
  } | {
493
490
  chainId: number;
494
491
  input: viem0.Hex;
495
- yParity: number;
492
+ type: "eip4844";
493
+ to: viem0.Address | null;
496
494
  from: viem0.Address;
497
495
  gas: bigint;
498
- hash: viem0.Hash;
499
496
  nonce: number;
500
- r: viem0.Hex;
501
- s: viem0.Hex;
502
- to: viem0.Address | null;
503
- typeHex: viem0.Hex | null;
504
- v: bigint;
505
497
  value: bigint;
506
- accessList: viem0.AccessList;
507
- authorizationList?: undefined | undefined;
508
- blobVersionedHashes: readonly viem0.Hex[];
509
- type: "eip4844";
510
- gasPrice?: undefined | undefined;
511
498
  maxFeePerBlobGas: bigint;
499
+ gasPrice?: undefined | undefined;
512
500
  maxFeePerGas: bigint;
513
501
  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;
502
+ accessList: viem0.AccessList;
503
+ blobVersionedHashes: readonly viem0.Hex[];
504
+ authorizationList?: undefined | undefined;
505
+ hash: viem0.Hash;
506
+ r: viem0.Hex;
507
+ s: viem0.Hex;
508
+ v: bigint;
509
+ yParity: number;
510
+ typeHex: viem0.Hex | null;
511
+ 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;
512
+ 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
513
  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
514
  } | {
518
515
  chainId: number;
519
516
  input: viem0.Hex;
520
- yParity: number;
517
+ type: "eip7702";
518
+ to: viem0.Address | null;
521
519
  from: viem0.Address;
522
520
  gas: bigint;
523
- hash: viem0.Hash;
524
- nonce: number;
525
- r: viem0.Hex;
526
- s: viem0.Hex;
527
- to: viem0.Address | null;
528
- typeHex: viem0.Hex | null;
529
- v: bigint;
530
- value: bigint;
531
- accessList: viem0.AccessList;
532
- authorizationList: viem0.SignedAuthorizationList;
533
- blobVersionedHashes?: undefined | undefined;
534
- type: "eip7702";
535
- gasPrice?: undefined | undefined;
521
+ nonce: number;
522
+ value: bigint;
536
523
  maxFeePerBlobGas?: undefined | undefined;
524
+ gasPrice?: undefined | undefined;
537
525
  maxFeePerGas: bigint;
538
526
  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;
527
+ accessList: viem0.AccessList;
528
+ blobVersionedHashes?: undefined | undefined;
529
+ authorizationList: viem0.SignedAuthorizationList;
530
+ hash: viem0.Hash;
531
+ r: viem0.Hex;
532
+ s: viem0.Hex;
533
+ v: bigint;
534
+ yParity: number;
535
+ typeHex: viem0.Hex | null;
536
+ 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;
537
+ 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
538
  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
539
  })[] : `0x${string}`[];
543
540
  }>;
@@ -567,127 +564,127 @@ declare const getPublicClient: (options: ClientOptions) => {
567
564
  getTransaction: <blockTag extends viem0.BlockTag = "latest">(args: viem0.GetTransactionParameters<blockTag>) => Promise<{
568
565
  chainId?: number | undefined;
569
566
  input: viem0.Hex;
570
- yParity?: undefined | undefined;
567
+ type: "legacy";
568
+ to: viem0.Address | null;
571
569
  from: viem0.Address;
572
570
  gas: bigint;
573
- hash: viem0.Hash;
574
571
  nonce: number;
575
- r: viem0.Hex;
576
- s: viem0.Hex;
577
- to: viem0.Address | null;
578
- typeHex: viem0.Hex | null;
579
- v: bigint;
580
572
  value: bigint;
581
- accessList?: undefined | undefined;
582
- authorizationList?: undefined | undefined;
583
- blobVersionedHashes?: undefined | undefined;
584
- type: "legacy";
585
- gasPrice: bigint;
586
573
  maxFeePerBlobGas?: undefined | undefined;
574
+ gasPrice: bigint;
587
575
  maxFeePerGas?: undefined | undefined;
588
576
  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;
577
+ accessList?: undefined | undefined;
578
+ blobVersionedHashes?: undefined | undefined;
579
+ authorizationList?: undefined | undefined;
580
+ hash: viem0.Hash;
581
+ r: viem0.Hex;
582
+ s: viem0.Hex;
583
+ v: bigint;
584
+ yParity?: undefined | undefined;
585
+ typeHex: viem0.Hex | null;
586
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
587
+ 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
588
  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
589
  } | {
593
590
  chainId: number;
594
591
  input: viem0.Hex;
595
- yParity: number;
592
+ type: "eip2930";
593
+ to: viem0.Address | null;
596
594
  from: viem0.Address;
597
595
  gas: bigint;
598
- hash: viem0.Hash;
599
596
  nonce: number;
600
- r: viem0.Hex;
601
- s: viem0.Hex;
602
- to: viem0.Address | null;
603
- typeHex: viem0.Hex | null;
604
- v: bigint;
605
597
  value: bigint;
606
- accessList: viem0.AccessList;
607
- authorizationList?: undefined | undefined;
608
- blobVersionedHashes?: undefined | undefined;
609
- type: "eip2930";
610
- gasPrice: bigint;
611
598
  maxFeePerBlobGas?: undefined | undefined;
599
+ gasPrice: bigint;
612
600
  maxFeePerGas?: undefined | undefined;
613
601
  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;
602
+ accessList: viem0.AccessList;
603
+ blobVersionedHashes?: undefined | undefined;
604
+ authorizationList?: undefined | undefined;
605
+ hash: viem0.Hash;
606
+ r: viem0.Hex;
607
+ s: viem0.Hex;
608
+ v: bigint;
609
+ yParity: number;
610
+ typeHex: viem0.Hex | null;
611
+ 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;
612
+ 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
613
  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
614
  } | {
618
615
  chainId: number;
619
616
  input: viem0.Hex;
620
- yParity: number;
617
+ type: "eip1559";
618
+ to: viem0.Address | null;
621
619
  from: viem0.Address;
622
620
  gas: bigint;
623
- hash: viem0.Hash;
624
621
  nonce: number;
625
- r: viem0.Hex;
626
- s: viem0.Hex;
627
- to: viem0.Address | null;
628
- typeHex: viem0.Hex | null;
629
- v: bigint;
630
622
  value: bigint;
631
- accessList: viem0.AccessList;
632
- authorizationList?: undefined | undefined;
633
- blobVersionedHashes?: undefined | undefined;
634
- type: "eip1559";
635
- gasPrice?: undefined | undefined;
636
623
  maxFeePerBlobGas?: undefined | undefined;
624
+ gasPrice?: undefined | undefined;
637
625
  maxFeePerGas: bigint;
638
626
  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;
627
+ accessList: viem0.AccessList;
628
+ blobVersionedHashes?: undefined | undefined;
629
+ authorizationList?: undefined | undefined;
630
+ hash: viem0.Hash;
631
+ r: viem0.Hex;
632
+ s: viem0.Hex;
633
+ v: bigint;
634
+ yParity: number;
635
+ typeHex: viem0.Hex | null;
636
+ 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;
637
+ 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
638
  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
639
  } | {
643
640
  chainId: number;
644
641
  input: viem0.Hex;
645
- yParity: number;
642
+ type: "eip4844";
643
+ to: viem0.Address | null;
646
644
  from: viem0.Address;
647
645
  gas: bigint;
648
- hash: viem0.Hash;
649
646
  nonce: number;
650
- r: viem0.Hex;
651
- s: viem0.Hex;
652
- to: viem0.Address | null;
653
- typeHex: viem0.Hex | null;
654
- v: bigint;
655
647
  value: bigint;
656
- accessList: viem0.AccessList;
657
- authorizationList?: undefined | undefined;
658
- blobVersionedHashes: readonly viem0.Hex[];
659
- type: "eip4844";
660
- gasPrice?: undefined | undefined;
661
648
  maxFeePerBlobGas: bigint;
649
+ gasPrice?: undefined | undefined;
662
650
  maxFeePerGas: bigint;
663
651
  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;
652
+ accessList: viem0.AccessList;
653
+ blobVersionedHashes: readonly viem0.Hex[];
654
+ authorizationList?: undefined | undefined;
655
+ hash: viem0.Hash;
656
+ r: viem0.Hex;
657
+ s: viem0.Hex;
658
+ v: bigint;
659
+ yParity: number;
660
+ typeHex: viem0.Hex | null;
661
+ 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;
662
+ 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
663
  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
664
  } | {
668
665
  chainId: number;
669
666
  input: viem0.Hex;
670
- yParity: number;
667
+ type: "eip7702";
668
+ to: viem0.Address | null;
671
669
  from: viem0.Address;
672
670
  gas: bigint;
673
- hash: viem0.Hash;
674
671
  nonce: number;
675
- r: viem0.Hex;
676
- s: viem0.Hex;
677
- to: viem0.Address | null;
678
- typeHex: viem0.Hex | null;
679
- v: bigint;
680
672
  value: bigint;
681
- accessList: viem0.AccessList;
682
- authorizationList: viem0.SignedAuthorizationList;
683
- blobVersionedHashes?: undefined | undefined;
684
- type: "eip7702";
685
- gasPrice?: undefined | undefined;
686
673
  maxFeePerBlobGas?: undefined | undefined;
674
+ gasPrice?: undefined | undefined;
687
675
  maxFeePerGas: bigint;
688
676
  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;
677
+ accessList: viem0.AccessList;
678
+ blobVersionedHashes?: undefined | undefined;
679
+ authorizationList: viem0.SignedAuthorizationList;
680
+ hash: viem0.Hash;
681
+ r: viem0.Hex;
682
+ s: viem0.Hex;
683
+ v: bigint;
684
+ yParity: number;
685
+ typeHex: viem0.Hex | null;
686
+ 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;
687
+ 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
688
  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
689
  }>;
693
690
  getTransactionConfirmations: (args: viem0.GetTransactionConfirmationsParameters<Chain>) => Promise<viem0.GetTransactionConfirmationsReturnType>;
@@ -3946,7 +3943,7 @@ declare const getPublicClient: (options: ClientOptions) => {
3946
3943
  authorizationList: viem0.TransactionSerializableEIP7702["authorizationList"];
3947
3944
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem0.TransactionRequestEIP7702 : never : never : never)>> & {
3948
3945
  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>;
3946
+ }, (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
3947
  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
3948
  sendRawTransaction: (args: viem0.SendRawTransactionParameters) => Promise<viem0.SendRawTransactionReturnType>;
3952
3949
  simulate: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
@@ -3957,8 +3954,8 @@ declare const getPublicClient: (options: ClientOptions) => {
3957
3954
  verifySiweMessage: (args: {
3958
3955
  blockNumber?: bigint | undefined | undefined;
3959
3956
  blockTag?: viem0.BlockTag | undefined;
3960
- nonce?: string | undefined | undefined;
3961
3957
  address?: `0x${string}` | undefined;
3958
+ nonce?: string | undefined | undefined;
3962
3959
  domain?: string | undefined | undefined;
3963
3960
  scheme?: string | undefined | undefined;
3964
3961
  time?: Date | undefined;
@@ -3969,10 +3966,10 @@ declare const getPublicClient: (options: ClientOptions) => {
3969
3966
  uninstallFilter: (args: viem0.UninstallFilterParameters) => Promise<viem0.UninstallFilterReturnType>;
3970
3967
  waitForTransactionReceipt: (args: viem0.WaitForTransactionReceiptParameters<Chain>) => Promise<viem0.TransactionReceipt>;
3971
3968
  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;
3969
+ watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args: viem0.WatchBlocksParameters<Transport, Chain, includeTransactions, blockTag>) => viem0.WatchBlocksReturnType;
3970
+ 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;
3971
+ 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;
3972
+ watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<Transport>) => viem0.WatchPendingTransactionsReturnType;
3976
3973
  extend: <const client extends {
3977
3974
  [x: string]: unknown;
3978
3975
  account?: undefined;
@@ -3988,65 +3985,28 @@ declare const getPublicClient: (options: ClientOptions) => {
3988
3985
  transport?: undefined;
3989
3986
  type?: undefined;
3990
3987
  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
- } & {
3988
+ } & 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>>;
3989
+ } | {
3990
+ account: undefined;
3991
+ batch?: {
3992
+ multicall?: boolean | chains.Prettify<viem0.MulticallBatchOptions> | undefined;
3993
+ } | undefined;
3994
+ cacheTime: number;
3995
+ ccipRead?: false | {
3996
+ request?: (parameters: viem0.CcipRequestParameters) => Promise<`0x${string}`>;
3997
+ } | undefined;
3998
+ chain: Chain;
3999
+ experimental_blockTag?: viem0.BlockTag | undefined;
4000
+ key: string;
4001
+ name: string;
4002
+ pollingInterval: number;
4003
+ request: viem0.EIP1193RequestFn<viem0.PublicRpcSchema>;
4004
+ transport: viem0.TransportConfig<"http", viem0.EIP1193RequestFn> & {
4005
+ fetchOptions?: HttpTransportConfig["fetchOptions"] | undefined;
4006
+ url?: string | undefined;
4007
+ };
4008
+ type: string;
4009
+ uid: string;
4050
4010
  call: (parameters: viem0.CallParameters<Chain>) => Promise<viem0.CallReturnType>;
4051
4011
  createAccessList: (parameters: viem0.CreateAccessListParameters<Chain>) => Promise<{
4052
4012
  accessList: viem0.AccessList;
@@ -4062,8 +4022,8 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
4062
4022
  getBlobBaseFee: () => Promise<viem0.GetBlobBaseFeeReturnType>;
4063
4023
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args?: viem0.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
4064
4024
  number: blockTag extends "pending" ? null : bigint;
4065
- hash: blockTag extends "pending" ? null : `0x${string}`;
4066
4025
  nonce: blockTag extends "pending" ? null : `0x${string}`;
4026
+ hash: blockTag extends "pending" ? null : `0x${string}`;
4067
4027
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
4068
4028
  baseFeePerGas: bigint | null;
4069
4029
  blobGasUsed: bigint;
@@ -4090,127 +4050,127 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
4090
4050
  transactions: includeTransactions extends true ? ({
4091
4051
  chainId?: number | undefined;
4092
4052
  input: viem0.Hex;
4093
- yParity?: undefined | undefined;
4053
+ type: "legacy";
4054
+ to: viem0.Address | null;
4094
4055
  from: viem0.Address;
4095
4056
  gas: bigint;
4096
- hash: viem0.Hash;
4097
4057
  nonce: number;
4098
- r: viem0.Hex;
4099
- s: viem0.Hex;
4100
- to: viem0.Address | null;
4101
- typeHex: viem0.Hex | null;
4102
- v: bigint;
4103
4058
  value: bigint;
4104
- accessList?: undefined | undefined;
4105
- authorizationList?: undefined | undefined;
4106
- blobVersionedHashes?: undefined | undefined;
4107
- type: "legacy";
4108
- gasPrice: bigint;
4109
4059
  maxFeePerBlobGas?: undefined | undefined;
4060
+ gasPrice: bigint;
4110
4061
  maxFeePerGas?: undefined | undefined;
4111
4062
  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;
4063
+ accessList?: undefined | undefined;
4064
+ blobVersionedHashes?: undefined | undefined;
4065
+ authorizationList?: undefined | undefined;
4066
+ hash: viem0.Hash;
4067
+ r: viem0.Hex;
4068
+ s: viem0.Hex;
4069
+ v: bigint;
4070
+ yParity?: undefined | undefined;
4071
+ typeHex: viem0.Hex | null;
4072
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
4073
+ 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
4074
  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
4075
  } | {
4116
4076
  chainId: number;
4117
4077
  input: viem0.Hex;
4118
- yParity: number;
4078
+ type: "eip2930";
4079
+ to: viem0.Address | null;
4119
4080
  from: viem0.Address;
4120
4081
  gas: bigint;
4121
- hash: viem0.Hash;
4122
4082
  nonce: number;
4123
- r: viem0.Hex;
4124
- s: viem0.Hex;
4125
- to: viem0.Address | null;
4126
- typeHex: viem0.Hex | null;
4127
- v: bigint;
4128
4083
  value: bigint;
4129
- accessList: viem0.AccessList;
4130
- authorizationList?: undefined | undefined;
4131
- blobVersionedHashes?: undefined | undefined;
4132
- type: "eip2930";
4133
- gasPrice: bigint;
4134
4084
  maxFeePerBlobGas?: undefined | undefined;
4085
+ gasPrice: bigint;
4135
4086
  maxFeePerGas?: undefined | undefined;
4136
4087
  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;
4088
+ accessList: viem0.AccessList;
4089
+ blobVersionedHashes?: undefined | undefined;
4090
+ authorizationList?: undefined | undefined;
4091
+ hash: viem0.Hash;
4092
+ r: viem0.Hex;
4093
+ s: viem0.Hex;
4094
+ v: bigint;
4095
+ yParity: number;
4096
+ typeHex: viem0.Hex | null;
4097
+ 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;
4098
+ 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
4099
  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
4100
  } | {
4141
4101
  chainId: number;
4142
4102
  input: viem0.Hex;
4143
- yParity: number;
4103
+ type: "eip1559";
4104
+ to: viem0.Address | null;
4144
4105
  from: viem0.Address;
4145
4106
  gas: bigint;
4146
- hash: viem0.Hash;
4147
4107
  nonce: number;
4148
- r: viem0.Hex;
4149
- s: viem0.Hex;
4150
- to: viem0.Address | null;
4151
- typeHex: viem0.Hex | null;
4152
- v: bigint;
4153
4108
  value: bigint;
4154
- accessList: viem0.AccessList;
4155
- authorizationList?: undefined | undefined;
4156
- blobVersionedHashes?: undefined | undefined;
4157
- type: "eip1559";
4158
- gasPrice?: undefined | undefined;
4159
4109
  maxFeePerBlobGas?: undefined | undefined;
4110
+ gasPrice?: undefined | undefined;
4160
4111
  maxFeePerGas: bigint;
4161
4112
  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;
4113
+ accessList: viem0.AccessList;
4114
+ blobVersionedHashes?: undefined | undefined;
4115
+ authorizationList?: undefined | undefined;
4116
+ hash: viem0.Hash;
4117
+ r: viem0.Hex;
4118
+ s: viem0.Hex;
4119
+ v: bigint;
4120
+ yParity: number;
4121
+ typeHex: viem0.Hex | null;
4122
+ 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;
4123
+ 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
4124
  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
4125
  } | {
4166
4126
  chainId: number;
4167
4127
  input: viem0.Hex;
4168
- yParity: number;
4128
+ type: "eip4844";
4129
+ to: viem0.Address | null;
4169
4130
  from: viem0.Address;
4170
4131
  gas: bigint;
4171
- hash: viem0.Hash;
4172
4132
  nonce: number;
4173
- r: viem0.Hex;
4174
- s: viem0.Hex;
4175
- to: viem0.Address | null;
4176
- typeHex: viem0.Hex | null;
4177
- v: bigint;
4178
4133
  value: bigint;
4179
- accessList: viem0.AccessList;
4180
- authorizationList?: undefined | undefined;
4181
- blobVersionedHashes: readonly viem0.Hex[];
4182
- type: "eip4844";
4183
- gasPrice?: undefined | undefined;
4184
4134
  maxFeePerBlobGas: bigint;
4135
+ gasPrice?: undefined | undefined;
4185
4136
  maxFeePerGas: bigint;
4186
4137
  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;
4138
+ accessList: viem0.AccessList;
4139
+ blobVersionedHashes: readonly viem0.Hex[];
4140
+ authorizationList?: undefined | undefined;
4141
+ hash: viem0.Hash;
4142
+ r: viem0.Hex;
4143
+ s: viem0.Hex;
4144
+ v: bigint;
4145
+ yParity: number;
4146
+ typeHex: viem0.Hex | null;
4147
+ 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;
4148
+ 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
4149
  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
4150
  } | {
4191
4151
  chainId: number;
4192
4152
  input: viem0.Hex;
4193
- yParity: number;
4153
+ type: "eip7702";
4154
+ to: viem0.Address | null;
4194
4155
  from: viem0.Address;
4195
4156
  gas: bigint;
4196
- hash: viem0.Hash;
4197
4157
  nonce: number;
4198
- r: viem0.Hex;
4199
- s: viem0.Hex;
4200
- to: viem0.Address | null;
4201
- typeHex: viem0.Hex | null;
4202
- v: bigint;
4203
4158
  value: bigint;
4204
- accessList: viem0.AccessList;
4205
- authorizationList: viem0.SignedAuthorizationList;
4206
- blobVersionedHashes?: undefined | undefined;
4207
- type: "eip7702";
4208
- gasPrice?: undefined | undefined;
4209
4159
  maxFeePerBlobGas?: undefined | undefined;
4160
+ gasPrice?: undefined | undefined;
4210
4161
  maxFeePerGas: bigint;
4211
4162
  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;
4163
+ accessList: viem0.AccessList;
4164
+ blobVersionedHashes?: undefined | undefined;
4165
+ authorizationList: viem0.SignedAuthorizationList;
4166
+ hash: viem0.Hash;
4167
+ r: viem0.Hex;
4168
+ s: viem0.Hex;
4169
+ v: bigint;
4170
+ yParity: number;
4171
+ typeHex: viem0.Hex | null;
4172
+ 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;
4173
+ 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
4174
  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
4175
  })[] : `0x${string}`[];
4216
4176
  }>;
@@ -4240,138 +4200,138 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
4240
4200
  getTransaction: <blockTag extends viem0.BlockTag = "latest">(args: viem0.GetTransactionParameters<blockTag>) => Promise<{
4241
4201
  chainId?: number | undefined;
4242
4202
  input: viem0.Hex;
4243
- yParity?: undefined | undefined;
4203
+ type: "legacy";
4204
+ to: viem0.Address | null;
4244
4205
  from: viem0.Address;
4245
4206
  gas: bigint;
4246
- hash: viem0.Hash;
4247
4207
  nonce: number;
4248
- r: viem0.Hex;
4249
- s: viem0.Hex;
4250
- to: viem0.Address | null;
4251
- typeHex: viem0.Hex | null;
4252
- v: bigint;
4253
4208
  value: bigint;
4254
- accessList?: undefined | undefined;
4255
- authorizationList?: undefined | undefined;
4256
- blobVersionedHashes?: undefined | undefined;
4257
- type: "legacy";
4258
- gasPrice: bigint;
4259
4209
  maxFeePerBlobGas?: undefined | undefined;
4210
+ gasPrice: bigint;
4260
4211
  maxFeePerGas?: undefined | undefined;
4261
4212
  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;
4213
+ accessList?: undefined | undefined;
4214
+ blobVersionedHashes?: undefined | undefined;
4215
+ authorizationList?: undefined | undefined;
4216
+ hash: viem0.Hash;
4217
+ r: viem0.Hex;
4218
+ s: viem0.Hex;
4219
+ v: bigint;
4220
+ yParity?: undefined | undefined;
4221
+ typeHex: viem0.Hex | null;
4222
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
4223
+ 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
4224
  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
4225
  } | {
4266
4226
  chainId: number;
4267
4227
  input: viem0.Hex;
4268
- yParity: number;
4228
+ type: "eip2930";
4229
+ to: viem0.Address | null;
4269
4230
  from: viem0.Address;
4270
4231
  gas: bigint;
4271
- hash: viem0.Hash;
4272
4232
  nonce: number;
4273
- r: viem0.Hex;
4274
- s: viem0.Hex;
4275
- to: viem0.Address | null;
4276
- typeHex: viem0.Hex | null;
4277
- v: bigint;
4278
4233
  value: bigint;
4279
- accessList: viem0.AccessList;
4280
- authorizationList?: undefined | undefined;
4281
- blobVersionedHashes?: undefined | undefined;
4282
- type: "eip2930";
4283
- gasPrice: bigint;
4284
4234
  maxFeePerBlobGas?: undefined | undefined;
4235
+ gasPrice: bigint;
4285
4236
  maxFeePerGas?: undefined | undefined;
4286
4237
  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;
4238
+ accessList: viem0.AccessList;
4239
+ blobVersionedHashes?: undefined | undefined;
4240
+ authorizationList?: undefined | undefined;
4241
+ hash: viem0.Hash;
4242
+ r: viem0.Hex;
4243
+ s: viem0.Hex;
4244
+ v: bigint;
4245
+ yParity: number;
4246
+ typeHex: viem0.Hex | null;
4247
+ 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;
4248
+ 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
4249
  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
4250
  } | {
4291
4251
  chainId: number;
4292
4252
  input: viem0.Hex;
4293
- yParity: number;
4253
+ type: "eip1559";
4254
+ to: viem0.Address | null;
4294
4255
  from: viem0.Address;
4295
4256
  gas: bigint;
4296
- hash: viem0.Hash;
4297
4257
  nonce: number;
4298
- r: viem0.Hex;
4299
- s: viem0.Hex;
4300
- to: viem0.Address | null;
4301
- typeHex: viem0.Hex | null;
4302
- v: bigint;
4303
4258
  value: bigint;
4304
- accessList: viem0.AccessList;
4305
- authorizationList?: undefined | undefined;
4306
- blobVersionedHashes?: undefined | undefined;
4307
- type: "eip1559";
4308
- gasPrice?: undefined | undefined;
4309
4259
  maxFeePerBlobGas?: undefined | undefined;
4260
+ gasPrice?: undefined | undefined;
4310
4261
  maxFeePerGas: bigint;
4311
4262
  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;
4263
+ accessList: viem0.AccessList;
4264
+ blobVersionedHashes?: undefined | undefined;
4265
+ authorizationList?: undefined | undefined;
4266
+ hash: viem0.Hash;
4267
+ r: viem0.Hex;
4268
+ s: viem0.Hex;
4269
+ v: bigint;
4270
+ yParity: number;
4271
+ typeHex: viem0.Hex | null;
4272
+ 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;
4273
+ 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
4274
  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
4275
  } | {
4316
4276
  chainId: number;
4317
4277
  input: viem0.Hex;
4318
- yParity: number;
4278
+ type: "eip4844";
4279
+ to: viem0.Address | null;
4319
4280
  from: viem0.Address;
4320
4281
  gas: bigint;
4321
- hash: viem0.Hash;
4322
4282
  nonce: number;
4323
- r: viem0.Hex;
4324
- s: viem0.Hex;
4325
- to: viem0.Address | null;
4326
- typeHex: viem0.Hex | null;
4327
- v: bigint;
4328
4283
  value: bigint;
4329
- accessList: viem0.AccessList;
4330
- authorizationList?: undefined | undefined;
4331
- blobVersionedHashes: readonly viem0.Hex[];
4332
- type: "eip4844";
4333
- gasPrice?: undefined | undefined;
4334
4284
  maxFeePerBlobGas: bigint;
4285
+ gasPrice?: undefined | undefined;
4335
4286
  maxFeePerGas: bigint;
4336
4287
  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;
4288
+ accessList: viem0.AccessList;
4289
+ blobVersionedHashes: readonly viem0.Hex[];
4290
+ authorizationList?: undefined | undefined;
4291
+ hash: viem0.Hash;
4292
+ r: viem0.Hex;
4293
+ s: viem0.Hex;
4294
+ v: bigint;
4295
+ yParity: number;
4296
+ typeHex: viem0.Hex | null;
4297
+ 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;
4298
+ 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
4299
  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
4300
  } | {
4341
4301
  chainId: number;
4342
4302
  input: viem0.Hex;
4343
- yParity: number;
4303
+ type: "eip7702";
4304
+ to: viem0.Address | null;
4344
4305
  from: viem0.Address;
4345
4306
  gas: bigint;
4346
- hash: viem0.Hash;
4347
4307
  nonce: number;
4348
- r: viem0.Hex;
4349
- s: viem0.Hex;
4350
- to: viem0.Address | null;
4351
- typeHex: viem0.Hex | null;
4352
- v: bigint;
4353
4308
  value: bigint;
4354
- accessList: viem0.AccessList;
4355
- authorizationList: viem0.SignedAuthorizationList;
4356
- blobVersionedHashes?: undefined | undefined;
4357
- type: "eip7702";
4358
- gasPrice?: undefined | undefined;
4359
4309
  maxFeePerBlobGas?: undefined | undefined;
4310
+ gasPrice?: undefined | undefined;
4360
4311
  maxFeePerGas: bigint;
4361
4312
  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;
4313
+ accessList: viem0.AccessList;
4314
+ blobVersionedHashes?: undefined | undefined;
4315
+ authorizationList: viem0.SignedAuthorizationList;
4316
+ hash: viem0.Hash;
4317
+ r: viem0.Hex;
4318
+ s: viem0.Hex;
4319
+ v: bigint;
4320
+ yParity: number;
4321
+ typeHex: viem0.Hex | null;
4322
+ 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;
4323
+ 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
4324
  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
4325
  }>;
4366
4326
  getTransactionConfirmations: (args: viem0.GetTransactionConfirmationsParameters<Chain>) => Promise<viem0.GetTransactionConfirmationsReturnType>;
4367
4327
  getTransactionCount: (args: viem0.GetTransactionCountParameters) => Promise<viem0.GetTransactionCountReturnType>;
4368
4328
  getTransactionReceipt: (args: viem0.GetTransactionReceiptParameters) => Promise<viem0.TransactionReceipt>;
4369
4329
  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 ? {
4330
+ 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
4331
  chain: T_1;
4372
4332
  } : {
4373
4333
  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 ? {
4334
+ } : 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
4335
  account: T_2;
4376
4336
  from: viem0.Address;
4377
4337
  } : {
@@ -7619,19 +7579,19 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
7619
7579
  authorizationList: viem0.TransactionSerializableEIP7702["authorizationList"];
7620
7580
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem0.TransactionRequestEIP7702 : never : never : never)>> & {
7621
7581
  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>;
7582
+ }, (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
7583
  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
7584
  sendRawTransaction: (args: viem0.SendRawTransactionParameters) => Promise<viem0.SendRawTransactionReturnType>;
7625
7585
  simulate: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
7626
7586
  simulateBlocks: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
7627
7587
  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>>;
7588
+ 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
7589
  verifyMessage: (args: viem0.VerifyMessageActionParameters) => Promise<viem0.VerifyMessageActionReturnType>;
7630
7590
  verifySiweMessage: (args: {
7631
7591
  blockNumber?: bigint | undefined | undefined;
7632
7592
  blockTag?: viem0.BlockTag | undefined;
7633
- nonce?: string | undefined | undefined;
7634
7593
  address?: `0x${string}` | undefined;
7594
+ nonce?: string | undefined | undefined;
7635
7595
  domain?: string | undefined | undefined;
7636
7596
  scheme?: string | undefined | undefined;
7637
7597
  time?: Date | undefined;
@@ -7646,7 +7606,68 @@ declare const getWalletClient: (options: ClientOptions) => (verificationOptions?
7646
7606
  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
7607
  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
7608
  watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>>) => viem0.WatchPendingTransactionsReturnType;
7649
- } & viem0.WalletActions<Chain, undefined>>;
7609
+ extend: <const client extends {
7610
+ [x: string]: unknown;
7611
+ account?: undefined;
7612
+ batch?: undefined;
7613
+ cacheTime?: undefined;
7614
+ ccipRead?: undefined;
7615
+ chain?: undefined;
7616
+ experimental_blockTag?: undefined;
7617
+ key?: undefined;
7618
+ name?: undefined;
7619
+ pollingInterval?: undefined;
7620
+ request?: undefined;
7621
+ transport?: undefined;
7622
+ type?: undefined;
7623
+ uid?: undefined;
7624
+ } & 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>>;
7625
+ };
7626
+ /**
7627
+ * The options for the wallet client.
7628
+ */
7629
+ interface WalletVerificationOptions {
7630
+ /**
7631
+ * The verification id (used for HD wallets), if not provided, the challenge response will be validated against all active verifications.
7632
+ */
7633
+ verificationId?: string;
7634
+ /**
7635
+ * The challenge response (used for HD wallets)
7636
+ */
7637
+ challengeResponse: string;
7638
+ }
7639
+ /**
7640
+ * Get a wallet client. Use this if you need to write to the blockchain.
7641
+ * @param options - The options for the wallet client.
7642
+ * @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}
7643
+ * @example
7644
+ * ```ts
7645
+ * import { getWalletClient } from '@settlemint/sdk-viem';
7646
+ * import { parseAbi } from "viem";
7647
+ *
7648
+ * const walletClient = getWalletClient({
7649
+ * accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
7650
+ * chainId: process.env.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID!,
7651
+ * chainName: process.env.SETTLEMINT_BLOCKCHAIN_NETWORK!,
7652
+ * rpcUrl: process.env.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT!,
7653
+ * });
7654
+ *
7655
+ * // Get the chain id
7656
+ * const chainId = await walletClient().getChainId();
7657
+ * console.log(chainId);
7658
+ *
7659
+ * // write to the blockchain
7660
+ * const transactionHash = await walletClient().writeContract({
7661
+ * account: "0x0000000000000000000000000000000000000000",
7662
+ * address: "0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2",
7663
+ * abi: parseAbi(["function mint(uint32 tokenId) nonpayable"]),
7664
+ * functionName: "mint",
7665
+ * args: [69420],
7666
+ * });
7667
+ * console.log(transactionHash);
7668
+ * ```
7669
+ */
7670
+ declare const getWalletClient: (options: ClientOptions) => any;
7650
7671
  /**
7651
7672
  * Schema for the viem client options.
7652
7673
  */