@settlemint/sdk-viem 2.5.11 → 2.5.13-maina48700be
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -96
- package/dist/browser/viem.d.ts +3819 -131
- package/dist/browser/viem.js +90 -70
- package/dist/browser/viem.js.map +1 -1
- package/dist/viem.cjs +90 -70
- package/dist/viem.cjs.map +1 -1
- package/dist/viem.d.cts +3819 -131
- package/dist/viem.d.ts +3819 -131
- package/dist/viem.js +90 -70
- package/dist/viem.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
- [Interfaces](#interfaces)
|
|
39
39
|
- [CreateWalletParameters](#createwalletparameters)
|
|
40
40
|
- [CreateWalletResponse](#createwalletresponse)
|
|
41
|
+
- [CreateWalletVerificationChallengeParameters](#createwalletverificationchallengeparameters)
|
|
41
42
|
- [CreateWalletVerificationChallengesParameters](#createwalletverificationchallengesparameters)
|
|
42
43
|
- [CreateWalletVerificationParameters](#createwalletverificationparameters)
|
|
43
44
|
- [CreateWalletVerificationResponse](#createwalletverificationresponse)
|
|
@@ -51,11 +52,14 @@
|
|
|
51
52
|
- [WalletPincodeVerificationInfo](#walletpincodeverificationinfo)
|
|
52
53
|
- [WalletSecretCodesVerificationInfo](#walletsecretcodesverificationinfo)
|
|
53
54
|
- [WalletVerification](#walletverification)
|
|
54
|
-
- [WalletVerificationChallenge](#
|
|
55
|
+
- [WalletVerificationChallenge\<ChallengeData\>](#walletverificationchallengechallengedata)
|
|
56
|
+
- [WalletVerificationChallengeData](#walletverificationchallengedata)
|
|
55
57
|
- [WalletVerificationOptions](#walletverificationoptions)
|
|
56
58
|
- [Type Aliases](#type-aliases)
|
|
57
|
-
- [AddressOrObject](#
|
|
59
|
+
- [AddressOrObject\<Extra\>](#addressorobjectextra)
|
|
60
|
+
- [AddressOrObjectWithChallengeId](#addressorobjectwithchallengeid)
|
|
58
61
|
- [ClientOptions](#clientoptions)
|
|
62
|
+
- [CreateWalletVerificationChallengeResponse](#createwalletverificationchallengeresponse)
|
|
59
63
|
- [CreateWalletVerificationChallengesResponse](#createwalletverificationchallengesresponse)
|
|
60
64
|
- [GetChainIdOptions](#getchainidoptions)
|
|
61
65
|
- [GetWalletVerificationsResponse](#getwalletverificationsresponse)
|
|
@@ -79,7 +83,7 @@ The SettleMint Viem SDK provides a lightweight wrapper that automatically config
|
|
|
79
83
|
|
|
80
84
|
> **getChainId**(`options`): `Promise`\<`number`\>
|
|
81
85
|
|
|
82
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
86
|
+
Defined in: [sdk/viem/src/viem.ts:446](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L446)
|
|
83
87
|
|
|
84
88
|
Discovers the chain ID from an RPC endpoint without requiring prior knowledge.
|
|
85
89
|
|
|
@@ -132,7 +136,7 @@ console.log(chainId);
|
|
|
132
136
|
|
|
133
137
|
> **getPublicClient**(`options`): \{ \} \| \{ \}
|
|
134
138
|
|
|
135
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
139
|
+
Defined in: [sdk/viem/src/viem.ts:201](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L201)
|
|
136
140
|
|
|
137
141
|
Creates an optimized public client for blockchain read operations.
|
|
138
142
|
|
|
@@ -188,9 +192,9 @@ console.log(block);
|
|
|
188
192
|
|
|
189
193
|
#### getWalletClient()
|
|
190
194
|
|
|
191
|
-
> **getWalletClient**(`options`): `
|
|
195
|
+
> **getWalletClient**(`options`): (`verificationOptions?`) => `Client`\<`HttpTransport`\<`undefined` \| `RpcSchema`, `boolean`\>\>
|
|
192
196
|
|
|
193
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
197
|
+
Defined in: [sdk/viem/src/viem.ts:315](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L315)
|
|
194
198
|
|
|
195
199
|
Creates a factory function for wallet clients with runtime verification support.
|
|
196
200
|
|
|
@@ -202,10 +206,20 @@ Creates a factory function for wallet clients with runtime verification support.
|
|
|
202
206
|
|
|
203
207
|
##### Returns
|
|
204
208
|
|
|
205
|
-
`any`
|
|
206
|
-
|
|
207
209
|
Factory function that accepts runtime verification options
|
|
208
210
|
|
|
211
|
+
> (`verificationOptions?`): `Client`\<`HttpTransport`\<`undefined` \| `RpcSchema`, `boolean`\>\>
|
|
212
|
+
|
|
213
|
+
###### Parameters
|
|
214
|
+
|
|
215
|
+
| Parameter | Type |
|
|
216
|
+
| ------ | ------ |
|
|
217
|
+
| `verificationOptions?` | [`WalletVerificationOptions`](#walletverificationoptions) |
|
|
218
|
+
|
|
219
|
+
###### Returns
|
|
220
|
+
|
|
221
|
+
`Client`\<`HttpTransport`\<`undefined` \| `RpcSchema`, `boolean`\>\>
|
|
222
|
+
|
|
209
223
|
##### Remarks
|
|
210
224
|
|
|
211
225
|
DESIGN PATTERN: Returns a factory function rather than a client instance because
|
|
@@ -261,7 +275,7 @@ console.log(transactionHash);
|
|
|
261
275
|
|
|
262
276
|
#### OTPAlgorithm
|
|
263
277
|
|
|
264
|
-
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
278
|
+
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:18](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L18)
|
|
265
279
|
|
|
266
280
|
Supported hash algorithms for One-Time Password (OTP) verification.
|
|
267
281
|
These algorithms determine the cryptographic function used to generate OTP codes.
|
|
@@ -270,21 +284,21 @@ These algorithms determine the cryptographic function used to generate OTP codes
|
|
|
270
284
|
|
|
271
285
|
| Enumeration Member | Value | Description | Defined in |
|
|
272
286
|
| ------ | ------ | ------ | ------ |
|
|
273
|
-
| <a id="sha1"></a> `SHA1` | `"SHA1"` | SHA-1 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:20](https://github.com/settlemint/sdk/blob/v2.5.
|
|
274
|
-
| <a id="sha224"></a> `SHA224` | `"SHA224"` | SHA-224 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:22](https://github.com/settlemint/sdk/blob/v2.5.
|
|
275
|
-
| <a id="sha256"></a> `SHA256` | `"SHA256"` | SHA-256 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:24](https://github.com/settlemint/sdk/blob/v2.5.
|
|
276
|
-
| <a id="sha3_224"></a> `SHA3_224` | `"SHA3-224"` | SHA3-224 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:30](https://github.com/settlemint/sdk/blob/v2.5.
|
|
277
|
-
| <a id="sha3_256"></a> `SHA3_256` | `"SHA3-256"` | SHA3-256 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:32](https://github.com/settlemint/sdk/blob/v2.5.
|
|
278
|
-
| <a id="sha3_384"></a> `SHA3_384` | `"SHA3-384"` | SHA3-384 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:34](https://github.com/settlemint/sdk/blob/v2.5.
|
|
279
|
-
| <a id="sha3_512"></a> `SHA3_512` | `"SHA3-512"` | SHA3-512 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:36](https://github.com/settlemint/sdk/blob/v2.5.
|
|
280
|
-
| <a id="sha384"></a> `SHA384` | `"SHA384"` | SHA-384 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:26](https://github.com/settlemint/sdk/blob/v2.5.
|
|
281
|
-
| <a id="sha512"></a> `SHA512` | `"SHA512"` | SHA-512 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:28](https://github.com/settlemint/sdk/blob/v2.5.
|
|
287
|
+
| <a id="sha1"></a> `SHA1` | `"SHA1"` | SHA-1 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:20](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L20) |
|
|
288
|
+
| <a id="sha224"></a> `SHA224` | `"SHA224"` | SHA-224 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:22](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L22) |
|
|
289
|
+
| <a id="sha256"></a> `SHA256` | `"SHA256"` | SHA-256 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:24](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L24) |
|
|
290
|
+
| <a id="sha3_224"></a> `SHA3_224` | `"SHA3-224"` | SHA3-224 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:30](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L30) |
|
|
291
|
+
| <a id="sha3_256"></a> `SHA3_256` | `"SHA3-256"` | SHA3-256 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:32](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L32) |
|
|
292
|
+
| <a id="sha3_384"></a> `SHA3_384` | `"SHA3-384"` | SHA3-384 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:34](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L34) |
|
|
293
|
+
| <a id="sha3_512"></a> `SHA3_512` | `"SHA3-512"` | SHA3-512 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:36](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L36) |
|
|
294
|
+
| <a id="sha384"></a> `SHA384` | `"SHA384"` | SHA-384 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:26](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L26) |
|
|
295
|
+
| <a id="sha512"></a> `SHA512` | `"SHA512"` | SHA-512 hash algorithm | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:28](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L28) |
|
|
282
296
|
|
|
283
297
|
***
|
|
284
298
|
|
|
285
299
|
#### WalletVerificationType
|
|
286
300
|
|
|
287
|
-
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:5](https://github.com/settlemint/sdk/blob/v2.5.
|
|
301
|
+
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:5](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L5)
|
|
288
302
|
|
|
289
303
|
Types of wallet verification methods supported by the system.
|
|
290
304
|
Used to identify different verification mechanisms when creating or managing wallet verifications.
|
|
@@ -293,15 +307,15 @@ Used to identify different verification mechanisms when creating or managing wal
|
|
|
293
307
|
|
|
294
308
|
| Enumeration Member | Value | Description | Defined in |
|
|
295
309
|
| ------ | ------ | ------ | ------ |
|
|
296
|
-
| <a id="otp"></a> `OTP` | `"OTP"` | One-Time Password verification method | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:9](https://github.com/settlemint/sdk/blob/v2.5.
|
|
297
|
-
| <a id="pincode"></a> `PINCODE` | `"PINCODE"` | PIN code verification method | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:7](https://github.com/settlemint/sdk/blob/v2.5.
|
|
298
|
-
| <a id="secret_codes"></a> `SECRET_CODES` | `"SECRET_CODES"` | Secret recovery codes verification method | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:11](https://github.com/settlemint/sdk/blob/v2.5.
|
|
310
|
+
| <a id="otp"></a> `OTP` | `"OTP"` | One-Time Password verification method | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:9](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L9) |
|
|
311
|
+
| <a id="pincode"></a> `PINCODE` | `"PINCODE"` | PIN code verification method | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:7](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L7) |
|
|
312
|
+
| <a id="secret_codes"></a> `SECRET_CODES` | `"SECRET_CODES"` | Secret recovery codes verification method | [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:11](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L11) |
|
|
299
313
|
|
|
300
314
|
### Interfaces
|
|
301
315
|
|
|
302
316
|
#### CreateWalletParameters
|
|
303
317
|
|
|
304
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
318
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L16)
|
|
305
319
|
|
|
306
320
|
Parameters for creating a wallet.
|
|
307
321
|
|
|
@@ -309,14 +323,14 @@ Parameters for creating a wallet.
|
|
|
309
323
|
|
|
310
324
|
| Property | Type | Description | Defined in |
|
|
311
325
|
| ------ | ------ | ------ | ------ |
|
|
312
|
-
| <a id="keyvaultid"></a> `keyVaultId` | `string` | The unique name of the key vault where the wallet will be created. | [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
313
|
-
| <a id="walletinfo"></a> `walletInfo` | [`WalletInfo`](#walletinfo-1) | Information about the wallet to be created. | [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
326
|
+
| <a id="keyvaultid"></a> `keyVaultId` | `string` | The unique name of the key vault where the wallet will be created. | [sdk/viem/src/custom-actions/create-wallet.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L18) |
|
|
327
|
+
| <a id="walletinfo"></a> `walletInfo` | [`WalletInfo`](#walletinfo-1) | Information about the wallet to be created. | [sdk/viem/src/custom-actions/create-wallet.action.ts:20](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L20) |
|
|
314
328
|
|
|
315
329
|
***
|
|
316
330
|
|
|
317
331
|
#### CreateWalletResponse
|
|
318
332
|
|
|
319
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
333
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:26](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L26)
|
|
320
334
|
|
|
321
335
|
Response from creating a wallet.
|
|
322
336
|
|
|
@@ -324,16 +338,31 @@ Response from creating a wallet.
|
|
|
324
338
|
|
|
325
339
|
| Property | Type | Description | Defined in |
|
|
326
340
|
| ------ | ------ | ------ | ------ |
|
|
327
|
-
| <a id="address"></a> `address` | `string` | The blockchain address of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
328
|
-
| <a id="derivationpath"></a> `derivationPath` | `string` | The HD derivation path used to create the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
329
|
-
| <a id="id"></a> `id` | `string` | The unique identifier of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
330
|
-
| <a id="name"></a> `name` | `string` | The name of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:
|
|
341
|
+
| <a id="address"></a> `address` | `string` | The blockchain address of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:32](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L32) |
|
|
342
|
+
| <a id="derivationpath"></a> `derivationPath` | `string` | The HD derivation path used to create the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:34](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L34) |
|
|
343
|
+
| <a id="id"></a> `id` | `string` | The unique identifier of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:28](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L28) |
|
|
344
|
+
| <a id="name"></a> `name` | `string` | The name of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:30](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L30) |
|
|
345
|
+
|
|
346
|
+
***
|
|
347
|
+
|
|
348
|
+
#### CreateWalletVerificationChallengeParameters
|
|
349
|
+
|
|
350
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:7](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L7)
|
|
351
|
+
|
|
352
|
+
Parameters for creating wallet verification challenges.
|
|
353
|
+
|
|
354
|
+
##### Properties
|
|
355
|
+
|
|
356
|
+
| Property | Type | Description | Defined in |
|
|
357
|
+
| ------ | ------ | ------ | ------ |
|
|
358
|
+
| <a id="userwalletaddress"></a> `userWalletAddress` | `string` | The wallet address. | [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L9) |
|
|
359
|
+
| <a id="verificationid"></a> `verificationId` | `string` | The verification ID. | [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:11](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L11) |
|
|
331
360
|
|
|
332
361
|
***
|
|
333
362
|
|
|
334
363
|
#### CreateWalletVerificationChallengesParameters
|
|
335
364
|
|
|
336
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.
|
|
365
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L8)
|
|
337
366
|
|
|
338
367
|
Parameters for creating wallet verification challenges.
|
|
339
368
|
|
|
@@ -341,13 +370,13 @@ Parameters for creating wallet verification challenges.
|
|
|
341
370
|
|
|
342
371
|
| Property | Type | Description | Defined in |
|
|
343
372
|
| ------ | ------ | ------ | ------ |
|
|
344
|
-
| <a id="addressorobject"></a> `addressOrObject` | [`AddressOrObject`](#addressorobject-2) | The wallet address or object containing wallet address and optional verification ID. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:10](https://github.com/settlemint/sdk/blob/v2.5.
|
|
373
|
+
| <a id="addressorobject"></a> `addressOrObject` | [`AddressOrObject`](#addressorobject-2)\<\{ `amount?`: `number`; \}\> | The wallet address or object containing wallet address and optional verification ID. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:10](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L10) |
|
|
345
374
|
|
|
346
375
|
***
|
|
347
376
|
|
|
348
377
|
#### CreateWalletVerificationParameters
|
|
349
378
|
|
|
350
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:59](https://github.com/settlemint/sdk/blob/v2.5.
|
|
379
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:59](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L59)
|
|
351
380
|
|
|
352
381
|
Parameters for creating a wallet verification.
|
|
353
382
|
|
|
@@ -355,14 +384,14 @@ Parameters for creating a wallet verification.
|
|
|
355
384
|
|
|
356
385
|
| Property | Type | Description | Defined in |
|
|
357
386
|
| ------ | ------ | ------ | ------ |
|
|
358
|
-
| <a id="userwalletaddress"></a> `userWalletAddress` | `string` | The wallet address for which to create the verification. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:61](https://github.com/settlemint/sdk/blob/v2.5.
|
|
359
|
-
| <a id="walletverificationinfo"></a> `walletVerificationInfo` | [`WalletVerificationInfo`](#walletverificationinfo-1) | The verification information to create. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:63](https://github.com/settlemint/sdk/blob/v2.5.
|
|
387
|
+
| <a id="userwalletaddress-1"></a> `userWalletAddress` | `string` | The wallet address for which to create the verification. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:61](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L61) |
|
|
388
|
+
| <a id="walletverificationinfo"></a> `walletVerificationInfo` | [`WalletVerificationInfo`](#walletverificationinfo-1) | The verification information to create. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:63](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L63) |
|
|
360
389
|
|
|
361
390
|
***
|
|
362
391
|
|
|
363
392
|
#### CreateWalletVerificationResponse
|
|
364
393
|
|
|
365
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:69](https://github.com/settlemint/sdk/blob/v2.5.
|
|
394
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:69](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L69)
|
|
366
395
|
|
|
367
396
|
Response from creating a wallet verification.
|
|
368
397
|
|
|
@@ -370,16 +399,16 @@ Response from creating a wallet verification.
|
|
|
370
399
|
|
|
371
400
|
| Property | Type | Description | Defined in |
|
|
372
401
|
| ------ | ------ | ------ | ------ |
|
|
373
|
-
| <a id="id-1"></a> `id` | `string` | The unique identifier of the verification. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:71](https://github.com/settlemint/sdk/blob/v2.5.
|
|
374
|
-
| <a id="name-1"></a> `name` | `string` | The name of the verification method. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:73](https://github.com/settlemint/sdk/blob/v2.5.
|
|
375
|
-
| <a id="parameters"></a> `parameters` | `Record`\<`string`, `string`\> | Additional parameters specific to the verification type. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:77](https://github.com/settlemint/sdk/blob/v2.5.
|
|
376
|
-
| <a id="verificationtype"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification method. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:75](https://github.com/settlemint/sdk/blob/v2.5.
|
|
402
|
+
| <a id="id-1"></a> `id` | `string` | The unique identifier of the verification. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:71](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L71) |
|
|
403
|
+
| <a id="name-1"></a> `name` | `string` | The name of the verification method. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:73](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L73) |
|
|
404
|
+
| <a id="parameters"></a> `parameters` | `Record`\<`string`, `string`\> | Additional parameters specific to the verification type. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:77](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L77) |
|
|
405
|
+
| <a id="verificationtype"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification method. | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:75](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L75) |
|
|
377
406
|
|
|
378
407
|
***
|
|
379
408
|
|
|
380
409
|
#### DeleteWalletVerificationParameters
|
|
381
410
|
|
|
382
|
-
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.
|
|
411
|
+
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L6)
|
|
383
412
|
|
|
384
413
|
Parameters for deleting a wallet verification.
|
|
385
414
|
|
|
@@ -387,14 +416,14 @@ Parameters for deleting a wallet verification.
|
|
|
387
416
|
|
|
388
417
|
| Property | Type | Description | Defined in |
|
|
389
418
|
| ------ | ------ | ------ | ------ |
|
|
390
|
-
| <a id="userwalletaddress-
|
|
391
|
-
| <a id="verificationid"></a> `verificationId` | `string` | The unique identifier of the verification to delete. | [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:10](https://github.com/settlemint/sdk/blob/v2.5.
|
|
419
|
+
| <a id="userwalletaddress-2"></a> `userWalletAddress` | `string` | The wallet address for which to delete the verification. | [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L8) |
|
|
420
|
+
| <a id="verificationid-1"></a> `verificationId` | `string` | The unique identifier of the verification to delete. | [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:10](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L10) |
|
|
392
421
|
|
|
393
422
|
***
|
|
394
423
|
|
|
395
424
|
#### DeleteWalletVerificationResponse
|
|
396
425
|
|
|
397
|
-
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.
|
|
426
|
+
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L16)
|
|
398
427
|
|
|
399
428
|
Response from deleting a wallet verification.
|
|
400
429
|
|
|
@@ -402,13 +431,13 @@ Response from deleting a wallet verification.
|
|
|
402
431
|
|
|
403
432
|
| Property | Type | Description | Defined in |
|
|
404
433
|
| ------ | ------ | ------ | ------ |
|
|
405
|
-
| <a id="success"></a> `success` | `boolean` | Whether the deletion was successful. | [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
434
|
+
| <a id="success"></a> `success` | `boolean` | Whether the deletion was successful. | [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L18) |
|
|
406
435
|
|
|
407
436
|
***
|
|
408
437
|
|
|
409
438
|
#### GetWalletVerificationsParameters
|
|
410
439
|
|
|
411
|
-
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:7](https://github.com/settlemint/sdk/blob/v2.5.
|
|
440
|
+
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:7](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L7)
|
|
412
441
|
|
|
413
442
|
Parameters for getting wallet verifications.
|
|
414
443
|
|
|
@@ -416,13 +445,13 @@ Parameters for getting wallet verifications.
|
|
|
416
445
|
|
|
417
446
|
| Property | Type | Description | Defined in |
|
|
418
447
|
| ------ | ------ | ------ | ------ |
|
|
419
|
-
| <a id="userwalletaddress-
|
|
448
|
+
| <a id="userwalletaddress-3"></a> `userWalletAddress` | `string` | The wallet address for which to fetch verifications. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L9) |
|
|
420
449
|
|
|
421
450
|
***
|
|
422
451
|
|
|
423
452
|
#### VerificationResult
|
|
424
453
|
|
|
425
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:
|
|
454
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:38](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L38)
|
|
426
455
|
|
|
427
456
|
Result of a wallet verification challenge.
|
|
428
457
|
|
|
@@ -430,13 +459,13 @@ Result of a wallet verification challenge.
|
|
|
430
459
|
|
|
431
460
|
| Property | Type | Description | Defined in |
|
|
432
461
|
| ------ | ------ | ------ | ------ |
|
|
433
|
-
| <a id="verified"></a> `verified` | `boolean` | Whether the verification was successful. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:
|
|
462
|
+
| <a id="verified"></a> `verified` | `boolean` | Whether the verification was successful. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:40](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L40) |
|
|
434
463
|
|
|
435
464
|
***
|
|
436
465
|
|
|
437
466
|
#### VerifyWalletVerificationChallengeParameters
|
|
438
467
|
|
|
439
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:
|
|
468
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:28](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L28)
|
|
440
469
|
|
|
441
470
|
Parameters for verifying a wallet verification challenge.
|
|
442
471
|
|
|
@@ -444,14 +473,14 @@ Parameters for verifying a wallet verification challenge.
|
|
|
444
473
|
|
|
445
474
|
| Property | Type | Description | Defined in |
|
|
446
475
|
| ------ | ------ | ------ | ------ |
|
|
447
|
-
| <a id="addressorobject-1"></a> `addressOrObject` | [`
|
|
448
|
-
| <a id="challengeresponse"></a> `challengeResponse` | `string` | The response to the verification challenge. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:
|
|
476
|
+
| <a id="addressorobject-1"></a> `addressOrObject` | [`AddressOrObjectWithChallengeId`](#addressorobjectwithchallengeid) | The wallet address or object containing wallet address and optional verification ID. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:30](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L30) |
|
|
477
|
+
| <a id="challengeresponse"></a> `challengeResponse` | `string` | The response to the verification challenge. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:32](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L32) |
|
|
449
478
|
|
|
450
479
|
***
|
|
451
480
|
|
|
452
481
|
#### WalletInfo
|
|
453
482
|
|
|
454
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.
|
|
483
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L6)
|
|
455
484
|
|
|
456
485
|
Information about the wallet to be created.
|
|
457
486
|
|
|
@@ -459,13 +488,14 @@ Information about the wallet to be created.
|
|
|
459
488
|
|
|
460
489
|
| Property | Type | Description | Defined in |
|
|
461
490
|
| ------ | ------ | ------ | ------ |
|
|
462
|
-
| <a id="name-2"></a> `name` | `string` | The name of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.
|
|
491
|
+
| <a id="name-2"></a> `name` | `string` | The name of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L8) |
|
|
492
|
+
| <a id="walletindex"></a> `walletIndex?` | `number` | Optional index for the wallet, walletIndex enables HD derivation paths | [sdk/viem/src/custom-actions/create-wallet.action.ts:10](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet.action.ts#L10) |
|
|
463
493
|
|
|
464
494
|
***
|
|
465
495
|
|
|
466
496
|
#### WalletOTPVerificationInfo
|
|
467
497
|
|
|
468
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.
|
|
498
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L27)
|
|
469
499
|
|
|
470
500
|
Information for One-Time Password (OTP) verification.
|
|
471
501
|
|
|
@@ -477,18 +507,18 @@ Information for One-Time Password (OTP) verification.
|
|
|
477
507
|
|
|
478
508
|
| Property | Type | Description | Overrides | Inherited from | Defined in |
|
|
479
509
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
480
|
-
| <a id="algorithm"></a> `algorithm?` | [`OTPAlgorithm`](#otpalgorithm) | The hash algorithm to use for OTP generation. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:31](https://github.com/settlemint/sdk/blob/v2.5.
|
|
481
|
-
| <a id="digits"></a> `digits?` | `number` | The number of digits in the OTP code. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:33](https://github.com/settlemint/sdk/blob/v2.5.
|
|
482
|
-
| <a id="issuer"></a> `issuer?` | `string` | The issuer of the OTP. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:37](https://github.com/settlemint/sdk/blob/v2.5.
|
|
483
|
-
| <a id="name-3"></a> `name` | `string` | The name of the verification method. | - | `BaseWalletVerificationInfo.name` | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.
|
|
484
|
-
| <a id="period"></a> `period?` | `number` | The time period in seconds for OTP validity. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:35](https://github.com/settlemint/sdk/blob/v2.5.
|
|
485
|
-
| <a id="verificationtype-1"></a> `verificationType` | [`OTP`](#otp) | The type of verification method. | `BaseWalletVerificationInfo.verificationType` | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:29](https://github.com/settlemint/sdk/blob/v2.5.
|
|
510
|
+
| <a id="algorithm"></a> `algorithm?` | [`OTPAlgorithm`](#otpalgorithm) | The hash algorithm to use for OTP generation. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:31](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L31) |
|
|
511
|
+
| <a id="digits"></a> `digits?` | `number` | The number of digits in the OTP code. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:33](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L33) |
|
|
512
|
+
| <a id="issuer"></a> `issuer?` | `string` | The issuer of the OTP. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:37](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L37) |
|
|
513
|
+
| <a id="name-3"></a> `name` | `string` | The name of the verification method. | - | `BaseWalletVerificationInfo.name` | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L9) |
|
|
514
|
+
| <a id="period"></a> `period?` | `number` | The time period in seconds for OTP validity. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:35](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L35) |
|
|
515
|
+
| <a id="verificationtype-1"></a> `verificationType` | [`OTP`](#otp) | The type of verification method. | `BaseWalletVerificationInfo.verificationType` | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:29](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L29) |
|
|
486
516
|
|
|
487
517
|
***
|
|
488
518
|
|
|
489
519
|
#### WalletPincodeVerificationInfo
|
|
490
520
|
|
|
491
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.
|
|
521
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L17)
|
|
492
522
|
|
|
493
523
|
Information for PIN code verification.
|
|
494
524
|
|
|
@@ -500,15 +530,15 @@ Information for PIN code verification.
|
|
|
500
530
|
|
|
501
531
|
| Property | Type | Description | Overrides | Inherited from | Defined in |
|
|
502
532
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
503
|
-
| <a id="name-4"></a> `name` | `string` | The name of the verification method. | - | `BaseWalletVerificationInfo.name` | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.
|
|
504
|
-
| <a id="pincode-1"></a> `pincode` | `string` | The PIN code to use for verification. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:21](https://github.com/settlemint/sdk/blob/v2.5.
|
|
505
|
-
| <a id="verificationtype-2"></a> `verificationType` | [`PINCODE`](#pincode) | The type of verification method. | `BaseWalletVerificationInfo.verificationType` | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:19](https://github.com/settlemint/sdk/blob/v2.5.
|
|
533
|
+
| <a id="name-4"></a> `name` | `string` | The name of the verification method. | - | `BaseWalletVerificationInfo.name` | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L9) |
|
|
534
|
+
| <a id="pincode-1"></a> `pincode` | `string` | The PIN code to use for verification. | - | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:21](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L21) |
|
|
535
|
+
| <a id="verificationtype-2"></a> `verificationType` | [`PINCODE`](#pincode) | The type of verification method. | `BaseWalletVerificationInfo.verificationType` | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:19](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L19) |
|
|
506
536
|
|
|
507
537
|
***
|
|
508
538
|
|
|
509
539
|
#### WalletSecretCodesVerificationInfo
|
|
510
540
|
|
|
511
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:43](https://github.com/settlemint/sdk/blob/v2.5.
|
|
541
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:43](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L43)
|
|
512
542
|
|
|
513
543
|
Information for secret recovery codes verification.
|
|
514
544
|
|
|
@@ -520,14 +550,14 @@ Information for secret recovery codes verification.
|
|
|
520
550
|
|
|
521
551
|
| Property | Type | Description | Overrides | Inherited from | Defined in |
|
|
522
552
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
523
|
-
| <a id="name-5"></a> `name` | `string` | The name of the verification method. | - | `BaseWalletVerificationInfo.name` | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.
|
|
524
|
-
| <a id="verificationtype-3"></a> `verificationType` | [`SECRET_CODES`](#secret_codes) | The type of verification method. | `BaseWalletVerificationInfo.verificationType` | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:45](https://github.com/settlemint/sdk/blob/v2.5.
|
|
553
|
+
| <a id="name-5"></a> `name` | `string` | The name of the verification method. | - | `BaseWalletVerificationInfo.name` | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:9](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L9) |
|
|
554
|
+
| <a id="verificationtype-3"></a> `verificationType` | [`SECRET_CODES`](#secret_codes) | The type of verification method. | `BaseWalletVerificationInfo.verificationType` | - | [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:45](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L45) |
|
|
525
555
|
|
|
526
556
|
***
|
|
527
557
|
|
|
528
558
|
#### WalletVerification
|
|
529
559
|
|
|
530
|
-
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:15](https://github.com/settlemint/sdk/blob/v2.5.
|
|
560
|
+
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:15](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L15)
|
|
531
561
|
|
|
532
562
|
Represents a wallet verification.
|
|
533
563
|
|
|
@@ -535,32 +565,54 @@ Represents a wallet verification.
|
|
|
535
565
|
|
|
536
566
|
| Property | Type | Description | Defined in |
|
|
537
567
|
| ------ | ------ | ------ | ------ |
|
|
538
|
-
| <a id="id-2"></a> `id` | `string` | The unique identifier of the verification. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.
|
|
539
|
-
| <a id="name-6"></a> `name` | `string` | The name of the verification method. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:19](https://github.com/settlemint/sdk/blob/v2.5.
|
|
540
|
-
| <a id="verificationtype-4"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification method. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:21](https://github.com/settlemint/sdk/blob/v2.5.
|
|
568
|
+
| <a id="id-2"></a> `id` | `string` | The unique identifier of the verification. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L17) |
|
|
569
|
+
| <a id="name-6"></a> `name` | `string` | The name of the verification method. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:19](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L19) |
|
|
570
|
+
| <a id="verificationtype-4"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification method. | [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:21](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L21) |
|
|
541
571
|
|
|
542
572
|
***
|
|
543
573
|
|
|
544
|
-
#### WalletVerificationChallenge
|
|
574
|
+
#### WalletVerificationChallenge\<ChallengeData\>
|
|
545
575
|
|
|
546
|
-
Defined in: [sdk/viem/src/custom-actions/
|
|
576
|
+
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts:6](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts#L6)
|
|
547
577
|
|
|
548
578
|
Represents a wallet verification challenge.
|
|
549
579
|
|
|
580
|
+
##### Type Parameters
|
|
581
|
+
|
|
582
|
+
| Type Parameter |
|
|
583
|
+
| ------ |
|
|
584
|
+
| `ChallengeData` |
|
|
585
|
+
|
|
550
586
|
##### Properties
|
|
551
587
|
|
|
552
588
|
| Property | Type | Description | Defined in |
|
|
553
589
|
| ------ | ------ | ------ | ------ |
|
|
554
|
-
| <a id="challenge"></a> `challenge` | `
|
|
555
|
-
| <a id="id-3"></a> `id` | `string` | The unique identifier of the challenge. | [sdk/viem/src/custom-actions/
|
|
556
|
-
| <a id="name-7"></a> `name` | `string` | The name of the challenge. | [sdk/viem/src/custom-actions/
|
|
557
|
-
| <a id="
|
|
590
|
+
| <a id="challenge"></a> `challenge` | `ChallengeData` | The challenge parameters specific to the verification type. | [sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts:16](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts#L16) |
|
|
591
|
+
| <a id="id-3"></a> `id` | `string` | The unique identifier of the challenge. | [sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts:8](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts#L8) |
|
|
592
|
+
| <a id="name-7"></a> `name` | `string` | The name of the challenge. | [sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts:10](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts#L10) |
|
|
593
|
+
| <a id="verificationid-2"></a> `verificationId` | `string` | The verification ID. | [sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts:12](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts#L12) |
|
|
594
|
+
| <a id="verificationtype-5"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification required. | [sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts:14](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/types/wallet-verification-challenge.ts#L14) |
|
|
595
|
+
|
|
596
|
+
***
|
|
597
|
+
|
|
598
|
+
#### WalletVerificationChallengeData
|
|
599
|
+
|
|
600
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L17)
|
|
601
|
+
|
|
602
|
+
Data specific to a wallet verification challenge.
|
|
603
|
+
|
|
604
|
+
##### Properties
|
|
605
|
+
|
|
606
|
+
| Property | Type | Description | Defined in |
|
|
607
|
+
| ------ | ------ | ------ | ------ |
|
|
608
|
+
| <a id="salt"></a> `salt?` | `string` | Optional salt for PINCODE verification type. | [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:19](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L19) |
|
|
609
|
+
| <a id="secret"></a> `secret?` | `string` | Optional secret for PINCODE verification type. | [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:21](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L21) |
|
|
558
610
|
|
|
559
611
|
***
|
|
560
612
|
|
|
561
613
|
#### WalletVerificationOptions
|
|
562
614
|
|
|
563
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
615
|
+
Defined in: [sdk/viem/src/viem.ts:248](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L248)
|
|
564
616
|
|
|
565
617
|
The options for the wallet client.
|
|
566
618
|
|
|
@@ -568,27 +620,53 @@ The options for the wallet client.
|
|
|
568
620
|
|
|
569
621
|
| Property | Type | Description | Defined in |
|
|
570
622
|
| ------ | ------ | ------ | ------ |
|
|
571
|
-
| <a id="challengeid"></a> `challengeId?` | `string` | The challenge id (used for HD wallets) | [sdk/viem/src/viem.ts:
|
|
572
|
-
| <a id="challengeresponse-1"></a> `challengeResponse` | `string` | The challenge response (used for HD wallets) | [sdk/viem/src/viem.ts:
|
|
573
|
-
| <a id="verificationid-
|
|
623
|
+
| <a id="challengeid"></a> `challengeId?` | `string` | The challenge id (used for HD wallets) | [sdk/viem/src/viem.ts:256](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L256) |
|
|
624
|
+
| <a id="challengeresponse-1"></a> `challengeResponse` | `string` | The challenge response (used for HD wallets) | [sdk/viem/src/viem.ts:260](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L260) |
|
|
625
|
+
| <a id="verificationid-3"></a> `verificationId?` | `string` | The verification id (used for HD wallets), if not provided, the challenge response will be validated against all active verifications. | [sdk/viem/src/viem.ts:252](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L252) |
|
|
574
626
|
|
|
575
627
|
### Type Aliases
|
|
576
628
|
|
|
577
|
-
#### AddressOrObject
|
|
629
|
+
#### AddressOrObject\<Extra\>
|
|
578
630
|
|
|
579
|
-
> **AddressOrObject
|
|
631
|
+
> **AddressOrObject**\<`Extra`\> = `string` \| `object` & `Extra`
|
|
580
632
|
|
|
581
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:
|
|
633
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L8)
|
|
582
634
|
|
|
583
635
|
Represents either a wallet address string or an object containing wallet address and optional verification ID.
|
|
584
636
|
|
|
637
|
+
##### Type Parameters
|
|
638
|
+
|
|
639
|
+
| Type Parameter | Default type |
|
|
640
|
+
| ------ | ------ |
|
|
641
|
+
| `Extra` | `object` |
|
|
642
|
+
|
|
643
|
+
***
|
|
644
|
+
|
|
645
|
+
#### AddressOrObjectWithChallengeId
|
|
646
|
+
|
|
647
|
+
> **AddressOrObjectWithChallengeId** = [`AddressOrObject`](#addressorobject-2) \| \{ `challengeId`: `string`; \}
|
|
648
|
+
|
|
649
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L18)
|
|
650
|
+
|
|
651
|
+
Represents either a wallet address string, an object containing wallet address and optional verification ID or a challenge ID.
|
|
652
|
+
|
|
653
|
+
##### Type declaration
|
|
654
|
+
|
|
655
|
+
[`AddressOrObject`](#addressorobject-2)
|
|
656
|
+
|
|
657
|
+
\{ `challengeId`: `string`; \}
|
|
658
|
+
|
|
659
|
+
| Name | Type | Description | Defined in |
|
|
660
|
+
| ------ | ------ | ------ | ------ |
|
|
661
|
+
| `challengeId` | `string` | ID of the challenge to verify against | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:22](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L22) |
|
|
662
|
+
|
|
585
663
|
***
|
|
586
664
|
|
|
587
665
|
#### ClientOptions
|
|
588
666
|
|
|
589
667
|
> **ClientOptions** = `Omit`\<`z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>, `"httpTransportConfig"`\> & `object`
|
|
590
668
|
|
|
591
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
669
|
+
Defined in: [sdk/viem/src/viem.ts:163](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L163)
|
|
592
670
|
|
|
593
671
|
Type representing the validated client options.
|
|
594
672
|
|
|
@@ -596,15 +674,25 @@ Type representing the validated client options.
|
|
|
596
674
|
|
|
597
675
|
| Name | Type | Defined in |
|
|
598
676
|
| ------ | ------ | ------ |
|
|
599
|
-
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:
|
|
677
|
+
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:164](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L164) |
|
|
678
|
+
|
|
679
|
+
***
|
|
680
|
+
|
|
681
|
+
#### CreateWalletVerificationChallengeResponse
|
|
682
|
+
|
|
683
|
+
> **CreateWalletVerificationChallengeResponse** = [`WalletVerificationChallenge`](#walletverificationchallenge)\<[`WalletVerificationChallengeData`](#walletverificationchallengedata)\>
|
|
684
|
+
|
|
685
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenge.action.ts#L27)
|
|
686
|
+
|
|
687
|
+
Response from creating wallet verification challenge.
|
|
600
688
|
|
|
601
689
|
***
|
|
602
690
|
|
|
603
691
|
#### CreateWalletVerificationChallengesResponse
|
|
604
692
|
|
|
605
|
-
> **CreateWalletVerificationChallengesResponse** = [`WalletVerificationChallenge`](#walletverificationchallenge)[]
|
|
693
|
+
> **CreateWalletVerificationChallengesResponse** = `Omit`\<[`WalletVerificationChallenge`](#walletverificationchallenge)\<`Record`\<`string`, `string`\>\>, `"verificationId"`\>[]
|
|
606
694
|
|
|
607
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:
|
|
695
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L16)
|
|
608
696
|
|
|
609
697
|
Response from creating wallet verification challenges.
|
|
610
698
|
|
|
@@ -614,7 +702,7 @@ Response from creating wallet verification challenges.
|
|
|
614
702
|
|
|
615
703
|
> **GetChainIdOptions** = `Omit`\<`z.infer`\<*typeof* [`GetChainIdOptionsSchema`](#getchainidoptionsschema)\>, `"httpTransportConfig"`\> & `object`
|
|
616
704
|
|
|
617
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
705
|
+
Defined in: [sdk/viem/src/viem.ts:413](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L413)
|
|
618
706
|
|
|
619
707
|
Type representing the validated get chain id options.
|
|
620
708
|
|
|
@@ -622,7 +710,7 @@ Type representing the validated get chain id options.
|
|
|
622
710
|
|
|
623
711
|
| Name | Type | Defined in |
|
|
624
712
|
| ------ | ------ | ------ |
|
|
625
|
-
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:
|
|
713
|
+
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:414](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L414) |
|
|
626
714
|
|
|
627
715
|
***
|
|
628
716
|
|
|
@@ -630,7 +718,7 @@ Type representing the validated get chain id options.
|
|
|
630
718
|
|
|
631
719
|
> **GetWalletVerificationsResponse** = [`WalletVerification`](#walletverification)[]
|
|
632
720
|
|
|
633
|
-
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.
|
|
721
|
+
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L27)
|
|
634
722
|
|
|
635
723
|
Response from getting wallet verifications.
|
|
636
724
|
|
|
@@ -640,7 +728,7 @@ Response from getting wallet verifications.
|
|
|
640
728
|
|
|
641
729
|
> **VerifyWalletVerificationChallengeResponse** = [`VerificationResult`](#verificationresult)[]
|
|
642
730
|
|
|
643
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:
|
|
731
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:46](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L46)
|
|
644
732
|
|
|
645
733
|
Response from verifying a wallet verification challenge.
|
|
646
734
|
|
|
@@ -650,7 +738,7 @@ Response from verifying a wallet verification challenge.
|
|
|
650
738
|
|
|
651
739
|
> **WalletVerificationInfo** = [`WalletPincodeVerificationInfo`](#walletpincodeverificationinfo) \| [`WalletOTPVerificationInfo`](#walletotpverificationinfo) \| [`WalletSecretCodesVerificationInfo`](#walletsecretcodesverificationinfo)
|
|
652
740
|
|
|
653
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:51](https://github.com/settlemint/sdk/blob/v2.5.
|
|
741
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:51](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L51)
|
|
654
742
|
|
|
655
743
|
Union type of all possible wallet verification information types.
|
|
656
744
|
|
|
@@ -660,7 +748,7 @@ Union type of all possible wallet verification information types.
|
|
|
660
748
|
|
|
661
749
|
> `const` **ClientOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `chainId`: `ZodString`; `chainName`: `ZodString`; `httpTransportConfig`: `ZodOptional`\<`ZodAny`\>; `rpcUrl`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
|
|
662
750
|
|
|
663
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
751
|
+
Defined in: [sdk/viem/src/viem.ts:137](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L137)
|
|
664
752
|
|
|
665
753
|
Schema for the viem client options.
|
|
666
754
|
|
|
@@ -670,7 +758,7 @@ Schema for the viem client options.
|
|
|
670
758
|
|
|
671
759
|
> `const` **GetChainIdOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `httpTransportConfig`: `ZodOptional`\<`ZodAny`\>; `rpcUrl`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
|
|
672
760
|
|
|
673
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
761
|
+
Defined in: [sdk/viem/src/viem.ts:395](https://github.com/settlemint/sdk/blob/v2.5.13/sdk/viem/src/viem.ts#L395)
|
|
674
762
|
|
|
675
763
|
Schema for the viem client options.
|
|
676
764
|
|