@settlemint/sdk-viem 2.5.7 → 2.5.9
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 +157 -95
- package/dist/browser/viem.d.ts +62 -9
- package/dist/browser/viem.js +139 -11
- package/dist/browser/viem.js.map +1 -1
- package/dist/viem.cjs +139 -11
- package/dist/viem.cjs.map +1 -1
- package/dist/viem.d.cts +62 -9
- package/dist/viem.d.ts +62 -9
- package/dist/viem.js +139 -11
- package/dist/viem.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -79,21 +79,40 @@ The SettleMint Viem SDK provides a lightweight wrapper that automatically config
|
|
|
79
79
|
|
|
80
80
|
> **getChainId**(`options`): `Promise`\<`number`\>
|
|
81
81
|
|
|
82
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
82
|
+
Defined in: [sdk/viem/src/viem.ts:485](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L485)
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
Discovers the chain ID from an RPC endpoint without requiring prior knowledge.
|
|
85
85
|
|
|
86
86
|
##### Parameters
|
|
87
87
|
|
|
88
88
|
| Parameter | Type | Description |
|
|
89
89
|
| ------ | ------ | ------ |
|
|
90
|
-
| `options` | [`GetChainIdOptions`](#getchainidoptions) |
|
|
90
|
+
| `options` | [`GetChainIdOptions`](#getchainidoptions) | Minimal options with RPC URL and optional authentication |
|
|
91
91
|
|
|
92
92
|
##### Returns
|
|
93
93
|
|
|
94
94
|
`Promise`\<`number`\>
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
Promise resolving to the network's chain ID as a number
|
|
97
|
+
|
|
98
|
+
##### Remarks
|
|
99
|
+
|
|
100
|
+
UTILITY: Enables chain discovery for dynamic network configuration scenarios.
|
|
101
|
+
Unlike other client functions, this creates a minimal, non-cached client for one-time queries.
|
|
102
|
+
|
|
103
|
+
USE CASE: Chain ID discovery during initial network setup or validation.
|
|
104
|
+
Alternative to requiring users to know chain IDs in advance.
|
|
105
|
+
|
|
106
|
+
PERFORMANCE: No caching because chain IDs are typically discovered once
|
|
107
|
+
during setup rather than repeatedly during runtime operations.
|
|
108
|
+
|
|
109
|
+
##### Throws
|
|
110
|
+
|
|
111
|
+
NetworkError when RPC endpoint is unreachable
|
|
112
|
+
|
|
113
|
+
##### Throws
|
|
114
|
+
|
|
115
|
+
AuthenticationError when access token is invalid
|
|
97
116
|
|
|
98
117
|
##### Example
|
|
99
118
|
|
|
@@ -113,21 +132,40 @@ console.log(chainId);
|
|
|
113
132
|
|
|
114
133
|
> **getPublicClient**(`options`): \{ \} \| \{ \}
|
|
115
134
|
|
|
116
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
135
|
+
Defined in: [sdk/viem/src/viem.ts:246](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L246)
|
|
117
136
|
|
|
118
|
-
|
|
137
|
+
Creates an optimized public client for blockchain read operations.
|
|
119
138
|
|
|
120
139
|
##### Parameters
|
|
121
140
|
|
|
122
141
|
| Parameter | Type | Description |
|
|
123
142
|
| ------ | ------ | ------ |
|
|
124
|
-
| `options` | [`ClientOptions`](#clientoptions) |
|
|
143
|
+
| `options` | [`ClientOptions`](#clientoptions) | Client configuration including chain details and authentication |
|
|
125
144
|
|
|
126
145
|
##### Returns
|
|
127
146
|
|
|
128
147
|
\{ \} \| \{ \}
|
|
129
148
|
|
|
130
|
-
|
|
149
|
+
Cached or newly created public client with read-only blockchain access
|
|
150
|
+
|
|
151
|
+
##### Remarks
|
|
152
|
+
|
|
153
|
+
PERFORMANCE: Implements intelligent caching to minimize client creation overhead.
|
|
154
|
+
Cache hit rates of 80%+ typical in production workloads with repeated chain access.
|
|
155
|
+
|
|
156
|
+
SECURITY: Each access token gets isolated cache entries to prevent cross-tenant data exposure.
|
|
157
|
+
Client instances are immutable once cached to prevent credential pollution.
|
|
158
|
+
|
|
159
|
+
RESOURCE MANAGEMENT: 500ms polling interval balances responsiveness with server load.
|
|
160
|
+
60-second timeout prevents hanging connections in unstable network conditions.
|
|
161
|
+
|
|
162
|
+
##### Throws
|
|
163
|
+
|
|
164
|
+
ValidationError when options don't match required schema
|
|
165
|
+
|
|
166
|
+
##### Throws
|
|
167
|
+
|
|
168
|
+
NetworkError when RPC endpoint is unreachable during client creation
|
|
131
169
|
|
|
132
170
|
##### Example
|
|
133
171
|
|
|
@@ -152,21 +190,44 @@ console.log(block);
|
|
|
152
190
|
|
|
153
191
|
> **getWalletClient**(`options`): `any`
|
|
154
192
|
|
|
155
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
193
|
+
Defined in: [sdk/viem/src/viem.ts:361](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L361)
|
|
156
194
|
|
|
157
|
-
|
|
195
|
+
Creates a factory function for wallet clients with runtime verification support.
|
|
158
196
|
|
|
159
197
|
##### Parameters
|
|
160
198
|
|
|
161
199
|
| Parameter | Type | Description |
|
|
162
200
|
| ------ | ------ | ------ |
|
|
163
|
-
| `options` | [`ClientOptions`](#clientoptions) |
|
|
201
|
+
| `options` | [`ClientOptions`](#clientoptions) | Base client configuration (chain, RPC, auth) |
|
|
164
202
|
|
|
165
203
|
##### Returns
|
|
166
204
|
|
|
167
205
|
`any`
|
|
168
206
|
|
|
169
|
-
|
|
207
|
+
Factory function that accepts runtime verification options
|
|
208
|
+
|
|
209
|
+
##### Remarks
|
|
210
|
+
|
|
211
|
+
DESIGN PATTERN: Returns a factory function rather than a client instance because
|
|
212
|
+
wallet operations require runtime verification parameters (challenge responses, etc.)
|
|
213
|
+
that cannot be known at factory creation time.
|
|
214
|
+
|
|
215
|
+
SECURITY: Verification headers are injected per-operation to support:
|
|
216
|
+
- HD wallet challenge/response flows
|
|
217
|
+
- Multi-signature verification workflows
|
|
218
|
+
- Time-sensitive authentication tokens
|
|
219
|
+
|
|
220
|
+
PERFORMANCE: Factory caching amortizes expensive setup (chain resolution, transport config)
|
|
221
|
+
while allowing runtime parameter injection for each wallet operation.
|
|
222
|
+
|
|
223
|
+
FEATURE EXTENSIONS: Automatically extends client with SettleMint-specific wallet actions:
|
|
224
|
+
- Wallet creation and management
|
|
225
|
+
- Verification challenge handling
|
|
226
|
+
- Multi-factor authentication flows
|
|
227
|
+
|
|
228
|
+
##### Throws
|
|
229
|
+
|
|
230
|
+
ValidationError when options don't match required schema
|
|
170
231
|
|
|
171
232
|
##### Example
|
|
172
233
|
|
|
@@ -200,7 +261,7 @@ console.log(transactionHash);
|
|
|
200
261
|
|
|
201
262
|
#### OTPAlgorithm
|
|
202
263
|
|
|
203
|
-
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
264
|
+
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:18](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L18)
|
|
204
265
|
|
|
205
266
|
Supported hash algorithms for One-Time Password (OTP) verification.
|
|
206
267
|
These algorithms determine the cryptographic function used to generate OTP codes.
|
|
@@ -209,21 +270,21 @@ These algorithms determine the cryptographic function used to generate OTP codes
|
|
|
209
270
|
|
|
210
271
|
| Enumeration Member | Value | Description | Defined in |
|
|
211
272
|
| ------ | ------ | ------ | ------ |
|
|
212
|
-
| <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.
|
|
213
|
-
| <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.
|
|
214
|
-
| <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.
|
|
215
|
-
| <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.
|
|
216
|
-
| <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.
|
|
217
|
-
| <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.
|
|
218
|
-
| <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.
|
|
219
|
-
| <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.
|
|
220
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L20) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L22) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L24) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L30) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L32) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L34) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L36) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L26) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L28) |
|
|
221
282
|
|
|
222
283
|
***
|
|
223
284
|
|
|
224
285
|
#### WalletVerificationType
|
|
225
286
|
|
|
226
|
-
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:5](https://github.com/settlemint/sdk/blob/v2.5.
|
|
287
|
+
Defined in: [sdk/viem/src/custom-actions/types/wallet-verification.enum.ts:5](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L5)
|
|
227
288
|
|
|
228
289
|
Types of wallet verification methods supported by the system.
|
|
229
290
|
Used to identify different verification mechanisms when creating or managing wallet verifications.
|
|
@@ -232,15 +293,15 @@ Used to identify different verification mechanisms when creating or managing wal
|
|
|
232
293
|
|
|
233
294
|
| Enumeration Member | Value | Description | Defined in |
|
|
234
295
|
| ------ | ------ | ------ | ------ |
|
|
235
|
-
| <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.
|
|
236
|
-
| <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.
|
|
237
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L9) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L7) |
|
|
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.9/sdk/viem/src/custom-actions/types/wallet-verification.enum.ts#L11) |
|
|
238
299
|
|
|
239
300
|
### Interfaces
|
|
240
301
|
|
|
241
302
|
#### CreateWalletParameters
|
|
242
303
|
|
|
243
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:14](https://github.com/settlemint/sdk/blob/v2.5.
|
|
304
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:14](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L14)
|
|
244
305
|
|
|
245
306
|
Parameters for creating a wallet.
|
|
246
307
|
|
|
@@ -248,14 +309,14 @@ Parameters for creating a wallet.
|
|
|
248
309
|
|
|
249
310
|
| Property | Type | Description | Defined in |
|
|
250
311
|
| ------ | ------ | ------ | ------ |
|
|
251
|
-
| <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:16](https://github.com/settlemint/sdk/blob/v2.5.
|
|
252
|
-
| <a id="walletinfo"></a> `walletInfo` | [`WalletInfo`](#walletinfo-1) | Information about the wallet to be created. | [sdk/viem/src/custom-actions/create-wallet.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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:16](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L16) |
|
|
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:18](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L18) |
|
|
253
314
|
|
|
254
315
|
***
|
|
255
316
|
|
|
256
317
|
#### CreateWalletResponse
|
|
257
318
|
|
|
258
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:24](https://github.com/settlemint/sdk/blob/v2.5.
|
|
319
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:24](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L24)
|
|
259
320
|
|
|
260
321
|
Response from creating a wallet.
|
|
261
322
|
|
|
@@ -263,16 +324,16 @@ Response from creating a wallet.
|
|
|
263
324
|
|
|
264
325
|
| Property | Type | Description | Defined in |
|
|
265
326
|
| ------ | ------ | ------ | ------ |
|
|
266
|
-
| <a id="address"></a> `address` | `string` | The blockchain address of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:30](https://github.com/settlemint/sdk/blob/v2.5.
|
|
267
|
-
| <a id="derivationpath"></a> `derivationPath` | `string` | The HD derivation path used to create the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:32](https://github.com/settlemint/sdk/blob/v2.5.
|
|
268
|
-
| <a id="id"></a> `id` | `string` | The unique identifier of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:26](https://github.com/settlemint/sdk/blob/v2.5.
|
|
269
|
-
| <a id="name"></a> `name` | `string` | The name of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:28](https://github.com/settlemint/sdk/blob/v2.5.
|
|
327
|
+
| <a id="address"></a> `address` | `string` | The blockchain address of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:30](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L30) |
|
|
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:32](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L32) |
|
|
329
|
+
| <a id="id"></a> `id` | `string` | The unique identifier of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:26](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L26) |
|
|
330
|
+
| <a id="name"></a> `name` | `string` | The name of the wallet. | [sdk/viem/src/custom-actions/create-wallet.action.ts:28](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L28) |
|
|
270
331
|
|
|
271
332
|
***
|
|
272
333
|
|
|
273
334
|
#### CreateWalletVerificationChallengesParameters
|
|
274
335
|
|
|
275
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.
|
|
336
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:8](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L8)
|
|
276
337
|
|
|
277
338
|
Parameters for creating wallet verification challenges.
|
|
278
339
|
|
|
@@ -280,13 +341,13 @@ Parameters for creating wallet verification challenges.
|
|
|
280
341
|
|
|
281
342
|
| Property | Type | Description | Defined in |
|
|
282
343
|
| ------ | ------ | ------ | ------ |
|
|
283
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L10) |
|
|
284
345
|
|
|
285
346
|
***
|
|
286
347
|
|
|
287
348
|
#### CreateWalletVerificationParameters
|
|
288
349
|
|
|
289
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:59](https://github.com/settlemint/sdk/blob/v2.5.
|
|
350
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:59](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L59)
|
|
290
351
|
|
|
291
352
|
Parameters for creating a wallet verification.
|
|
292
353
|
|
|
@@ -294,14 +355,14 @@ Parameters for creating a wallet verification.
|
|
|
294
355
|
|
|
295
356
|
| Property | Type | Description | Defined in |
|
|
296
357
|
| ------ | ------ | ------ | ------ |
|
|
297
|
-
| <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.
|
|
298
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L61) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L63) |
|
|
299
360
|
|
|
300
361
|
***
|
|
301
362
|
|
|
302
363
|
#### CreateWalletVerificationResponse
|
|
303
364
|
|
|
304
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:69](https://github.com/settlemint/sdk/blob/v2.5.
|
|
365
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:69](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L69)
|
|
305
366
|
|
|
306
367
|
Response from creating a wallet verification.
|
|
307
368
|
|
|
@@ -309,16 +370,16 @@ Response from creating a wallet verification.
|
|
|
309
370
|
|
|
310
371
|
| Property | Type | Description | Defined in |
|
|
311
372
|
| ------ | ------ | ------ | ------ |
|
|
312
|
-
| <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.
|
|
313
|
-
| <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.
|
|
314
|
-
| <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.
|
|
315
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L71) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L73) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L77) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L75) |
|
|
316
377
|
|
|
317
378
|
***
|
|
318
379
|
|
|
319
380
|
#### DeleteWalletVerificationParameters
|
|
320
381
|
|
|
321
|
-
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.
|
|
382
|
+
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L6)
|
|
322
383
|
|
|
323
384
|
Parameters for deleting a wallet verification.
|
|
324
385
|
|
|
@@ -326,14 +387,14 @@ Parameters for deleting a wallet verification.
|
|
|
326
387
|
|
|
327
388
|
| Property | Type | Description | Defined in |
|
|
328
389
|
| ------ | ------ | ------ | ------ |
|
|
329
|
-
| <a id="userwalletaddress-1"></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.
|
|
330
|
-
| <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.
|
|
390
|
+
| <a id="userwalletaddress-1"></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.9/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L8) |
|
|
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.9/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L10) |
|
|
331
392
|
|
|
332
393
|
***
|
|
333
394
|
|
|
334
395
|
#### DeleteWalletVerificationResponse
|
|
335
396
|
|
|
336
|
-
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.
|
|
397
|
+
Defined in: [sdk/viem/src/custom-actions/delete-wallet-verification.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L16)
|
|
337
398
|
|
|
338
399
|
Response from deleting a wallet verification.
|
|
339
400
|
|
|
@@ -341,13 +402,13 @@ Response from deleting a wallet verification.
|
|
|
341
402
|
|
|
342
403
|
| Property | Type | Description | Defined in |
|
|
343
404
|
| ------ | ------ | ------ | ------ |
|
|
344
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/delete-wallet-verification.action.ts#L18) |
|
|
345
406
|
|
|
346
407
|
***
|
|
347
408
|
|
|
348
409
|
#### GetWalletVerificationsParameters
|
|
349
410
|
|
|
350
|
-
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:7](https://github.com/settlemint/sdk/blob/v2.5.
|
|
411
|
+
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:7](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L7)
|
|
351
412
|
|
|
352
413
|
Parameters for getting wallet verifications.
|
|
353
414
|
|
|
@@ -355,13 +416,13 @@ Parameters for getting wallet verifications.
|
|
|
355
416
|
|
|
356
417
|
| Property | Type | Description | Defined in |
|
|
357
418
|
| ------ | ------ | ------ | ------ |
|
|
358
|
-
| <a id="userwalletaddress-2"></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.
|
|
419
|
+
| <a id="userwalletaddress-2"></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.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L9) |
|
|
359
420
|
|
|
360
421
|
***
|
|
361
422
|
|
|
362
423
|
#### VerificationResult
|
|
363
424
|
|
|
364
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:26](https://github.com/settlemint/sdk/blob/v2.5.
|
|
425
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:26](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L26)
|
|
365
426
|
|
|
366
427
|
Result of a wallet verification challenge.
|
|
367
428
|
|
|
@@ -369,13 +430,13 @@ Result of a wallet verification challenge.
|
|
|
369
430
|
|
|
370
431
|
| Property | Type | Description | Defined in |
|
|
371
432
|
| ------ | ------ | ------ | ------ |
|
|
372
|
-
| <a id="verified"></a> `verified` | `boolean` | Whether the verification was successful. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:28](https://github.com/settlemint/sdk/blob/v2.5.
|
|
433
|
+
| <a id="verified"></a> `verified` | `boolean` | Whether the verification was successful. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:28](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L28) |
|
|
373
434
|
|
|
374
435
|
***
|
|
375
436
|
|
|
376
437
|
#### VerifyWalletVerificationChallengeParameters
|
|
377
438
|
|
|
378
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.
|
|
439
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L16)
|
|
379
440
|
|
|
380
441
|
Parameters for verifying a wallet verification challenge.
|
|
381
442
|
|
|
@@ -383,14 +444,14 @@ Parameters for verifying a wallet verification challenge.
|
|
|
383
444
|
|
|
384
445
|
| Property | Type | Description | Defined in |
|
|
385
446
|
| ------ | ------ | ------ | ------ |
|
|
386
|
-
| <a id="addressorobject-1"></a> `addressOrObject` | [`AddressOrObject`](#addressorobject-2) | The wallet address or object containing wallet address and optional verification ID. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
387
|
-
| <a id="challengeresponse"></a> `challengeResponse` | `string` | The response to the verification challenge. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:20](https://github.com/settlemint/sdk/blob/v2.5.
|
|
447
|
+
| <a id="addressorobject-1"></a> `addressOrObject` | [`AddressOrObject`](#addressorobject-2) | The wallet address or object containing wallet address and optional verification ID. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L18) |
|
|
448
|
+
| <a id="challengeresponse"></a> `challengeResponse` | `string` | The response to the verification challenge. | [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:20](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L20) |
|
|
388
449
|
|
|
389
450
|
***
|
|
390
451
|
|
|
391
452
|
#### WalletInfo
|
|
392
453
|
|
|
393
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.
|
|
454
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L6)
|
|
394
455
|
|
|
395
456
|
Information about the wallet to be created.
|
|
396
457
|
|
|
@@ -398,13 +459,13 @@ Information about the wallet to be created.
|
|
|
398
459
|
|
|
399
460
|
| Property | Type | Description | Defined in |
|
|
400
461
|
| ------ | ------ | ------ | ------ |
|
|
401
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet.action.ts#L8) |
|
|
402
463
|
|
|
403
464
|
***
|
|
404
465
|
|
|
405
466
|
#### WalletOTPVerificationInfo
|
|
406
467
|
|
|
407
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.
|
|
468
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L27)
|
|
408
469
|
|
|
409
470
|
Information for One-Time Password (OTP) verification.
|
|
410
471
|
|
|
@@ -416,18 +477,18 @@ Information for One-Time Password (OTP) verification.
|
|
|
416
477
|
|
|
417
478
|
| Property | Type | Description | Overrides | Inherited from | Defined in |
|
|
418
479
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
419
|
-
| <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.
|
|
420
|
-
| <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.
|
|
421
|
-
| <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.
|
|
422
|
-
| <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.
|
|
423
|
-
| <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.
|
|
424
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L31) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L33) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L37) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L9) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L35) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L29) |
|
|
425
486
|
|
|
426
487
|
***
|
|
427
488
|
|
|
428
489
|
#### WalletPincodeVerificationInfo
|
|
429
490
|
|
|
430
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.
|
|
491
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:17](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L17)
|
|
431
492
|
|
|
432
493
|
Information for PIN code verification.
|
|
433
494
|
|
|
@@ -439,15 +500,15 @@ Information for PIN code verification.
|
|
|
439
500
|
|
|
440
501
|
| Property | Type | Description | Overrides | Inherited from | Defined in |
|
|
441
502
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
442
|
-
| <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.
|
|
443
|
-
| <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.
|
|
444
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L9) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L21) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L19) |
|
|
445
506
|
|
|
446
507
|
***
|
|
447
508
|
|
|
448
509
|
#### WalletSecretCodesVerificationInfo
|
|
449
510
|
|
|
450
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:43](https://github.com/settlemint/sdk/blob/v2.5.
|
|
511
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:43](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L43)
|
|
451
512
|
|
|
452
513
|
Information for secret recovery codes verification.
|
|
453
514
|
|
|
@@ -459,14 +520,14 @@ Information for secret recovery codes verification.
|
|
|
459
520
|
|
|
460
521
|
| Property | Type | Description | Overrides | Inherited from | Defined in |
|
|
461
522
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
462
|
-
| <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.
|
|
463
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L9) |
|
|
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.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L45) |
|
|
464
525
|
|
|
465
526
|
***
|
|
466
527
|
|
|
467
528
|
#### WalletVerification
|
|
468
529
|
|
|
469
|
-
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:15](https://github.com/settlemint/sdk/blob/v2.5.
|
|
530
|
+
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:15](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L15)
|
|
470
531
|
|
|
471
532
|
Represents a wallet verification.
|
|
472
533
|
|
|
@@ -474,15 +535,15 @@ Represents a wallet verification.
|
|
|
474
535
|
|
|
475
536
|
| Property | Type | Description | Defined in |
|
|
476
537
|
| ------ | ------ | ------ | ------ |
|
|
477
|
-
| <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.
|
|
478
|
-
| <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.
|
|
479
|
-
| <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.
|
|
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.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L17) |
|
|
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.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L19) |
|
|
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.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L21) |
|
|
480
541
|
|
|
481
542
|
***
|
|
482
543
|
|
|
483
544
|
#### WalletVerificationChallenge
|
|
484
545
|
|
|
485
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.
|
|
546
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:16](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L16)
|
|
486
547
|
|
|
487
548
|
Represents a wallet verification challenge.
|
|
488
549
|
|
|
@@ -490,16 +551,16 @@ Represents a wallet verification challenge.
|
|
|
490
551
|
|
|
491
552
|
| Property | Type | Description | Defined in |
|
|
492
553
|
| ------ | ------ | ------ | ------ |
|
|
493
|
-
| <a id="challenge"></a> `challenge` | `Record`\<`string`, `string`\> | The challenge parameters specific to the verification type. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:24](https://github.com/settlemint/sdk/blob/v2.5.
|
|
494
|
-
| <a id="id-3"></a> `id` | `string` | The unique identifier of the challenge. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
495
|
-
| <a id="name-7"></a> `name` | `string` | The name of the challenge. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:20](https://github.com/settlemint/sdk/blob/v2.5.
|
|
496
|
-
| <a id="verificationtype-5"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification required. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:22](https://github.com/settlemint/sdk/blob/v2.5.
|
|
554
|
+
| <a id="challenge"></a> `challenge` | `Record`\<`string`, `string`\> | The challenge parameters specific to the verification type. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:24](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L24) |
|
|
555
|
+
| <a id="id-3"></a> `id` | `string` | The unique identifier of the challenge. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:18](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L18) |
|
|
556
|
+
| <a id="name-7"></a> `name` | `string` | The name of the challenge. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:20](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L20) |
|
|
557
|
+
| <a id="verificationtype-5"></a> `verificationType` | [`WalletVerificationType`](#walletverificationtype) | The type of verification required. | [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:22](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L22) |
|
|
497
558
|
|
|
498
559
|
***
|
|
499
560
|
|
|
500
561
|
#### WalletVerificationOptions
|
|
501
562
|
|
|
502
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
563
|
+
Defined in: [sdk/viem/src/viem.ts:293](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L293)
|
|
503
564
|
|
|
504
565
|
The options for the wallet client.
|
|
505
566
|
|
|
@@ -507,8 +568,9 @@ The options for the wallet client.
|
|
|
507
568
|
|
|
508
569
|
| Property | Type | Description | Defined in |
|
|
509
570
|
| ------ | ------ | ------ | ------ |
|
|
510
|
-
| <a id="
|
|
511
|
-
| <a id="
|
|
571
|
+
| <a id="challengeid"></a> `challengeId?` | `string` | The challenge id (used for HD wallets) | [sdk/viem/src/viem.ts:302](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L302) |
|
|
572
|
+
| <a id="challengeresponse-1"></a> `challengeResponse` | `string` | The challenge response (used for HD wallets) | [sdk/viem/src/viem.ts:306](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L306) |
|
|
573
|
+
| <a id="verificationid-1"></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:297](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L297) |
|
|
512
574
|
|
|
513
575
|
### Type Aliases
|
|
514
576
|
|
|
@@ -516,7 +578,7 @@ The options for the wallet client.
|
|
|
516
578
|
|
|
517
579
|
> **AddressOrObject** = `string` \| \{ `userWalletAddress`: `string`; `verificationId?`: `string`; \}
|
|
518
580
|
|
|
519
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.
|
|
581
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:6](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L6)
|
|
520
582
|
|
|
521
583
|
Represents either a wallet address string or an object containing wallet address and optional verification ID.
|
|
522
584
|
|
|
@@ -526,7 +588,7 @@ Represents either a wallet address string or an object containing wallet address
|
|
|
526
588
|
|
|
527
589
|
> **ClientOptions** = `Omit`\<`z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>, `"httpTransportConfig"`\> & `object`
|
|
528
590
|
|
|
529
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
591
|
+
Defined in: [sdk/viem/src/viem.ts:208](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L208)
|
|
530
592
|
|
|
531
593
|
Type representing the validated client options.
|
|
532
594
|
|
|
@@ -534,7 +596,7 @@ Type representing the validated client options.
|
|
|
534
596
|
|
|
535
597
|
| Name | Type | Defined in |
|
|
536
598
|
| ------ | ------ | ------ |
|
|
537
|
-
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:
|
|
599
|
+
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:209](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L209) |
|
|
538
600
|
|
|
539
601
|
***
|
|
540
602
|
|
|
@@ -542,7 +604,7 @@ Type representing the validated client options.
|
|
|
542
604
|
|
|
543
605
|
> **CreateWalletVerificationChallengesResponse** = [`WalletVerificationChallenge`](#walletverificationchallenge)[]
|
|
544
606
|
|
|
545
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:30](https://github.com/settlemint/sdk/blob/v2.5.
|
|
607
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts:30](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification-challenges.action.ts#L30)
|
|
546
608
|
|
|
547
609
|
Response from creating wallet verification challenges.
|
|
548
610
|
|
|
@@ -552,7 +614,7 @@ Response from creating wallet verification challenges.
|
|
|
552
614
|
|
|
553
615
|
> **GetChainIdOptions** = `Omit`\<`z.infer`\<*typeof* [`GetChainIdOptionsSchema`](#getchainidoptionsschema)\>, `"httpTransportConfig"`\> & `object`
|
|
554
616
|
|
|
555
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
617
|
+
Defined in: [sdk/viem/src/viem.ts:452](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L452)
|
|
556
618
|
|
|
557
619
|
Type representing the validated get chain id options.
|
|
558
620
|
|
|
@@ -560,7 +622,7 @@ Type representing the validated get chain id options.
|
|
|
560
622
|
|
|
561
623
|
| Name | Type | Defined in |
|
|
562
624
|
| ------ | ------ | ------ |
|
|
563
|
-
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:
|
|
625
|
+
| `httpTransportConfig?` | `HttpTransportConfig` | [sdk/viem/src/viem.ts:453](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L453) |
|
|
564
626
|
|
|
565
627
|
***
|
|
566
628
|
|
|
@@ -568,7 +630,7 @@ Type representing the validated get chain id options.
|
|
|
568
630
|
|
|
569
631
|
> **GetWalletVerificationsResponse** = [`WalletVerification`](#walletverification)[]
|
|
570
632
|
|
|
571
|
-
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.
|
|
633
|
+
Defined in: [sdk/viem/src/custom-actions/get-wallet-verifications.action.ts:27](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/get-wallet-verifications.action.ts#L27)
|
|
572
634
|
|
|
573
635
|
Response from getting wallet verifications.
|
|
574
636
|
|
|
@@ -578,7 +640,7 @@ Response from getting wallet verifications.
|
|
|
578
640
|
|
|
579
641
|
> **VerifyWalletVerificationChallengeResponse** = [`VerificationResult`](#verificationresult)[]
|
|
580
642
|
|
|
581
|
-
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:34](https://github.com/settlemint/sdk/blob/v2.5.
|
|
643
|
+
Defined in: [sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts:34](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/verify-wallet-verification-challenge.action.ts#L34)
|
|
582
644
|
|
|
583
645
|
Response from verifying a wallet verification challenge.
|
|
584
646
|
|
|
@@ -588,7 +650,7 @@ Response from verifying a wallet verification challenge.
|
|
|
588
650
|
|
|
589
651
|
> **WalletVerificationInfo** = [`WalletPincodeVerificationInfo`](#walletpincodeverificationinfo) \| [`WalletOTPVerificationInfo`](#walletotpverificationinfo) \| [`WalletSecretCodesVerificationInfo`](#walletsecretcodesverificationinfo)
|
|
590
652
|
|
|
591
|
-
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:51](https://github.com/settlemint/sdk/blob/v2.5.
|
|
653
|
+
Defined in: [sdk/viem/src/custom-actions/create-wallet-verification.action.ts:51](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/custom-actions/create-wallet-verification.action.ts#L51)
|
|
592
654
|
|
|
593
655
|
Union type of all possible wallet verification information types.
|
|
594
656
|
|
|
@@ -598,7 +660,7 @@ Union type of all possible wallet verification information types.
|
|
|
598
660
|
|
|
599
661
|
> `const` **ClientOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `chainId`: `ZodString`; `chainName`: `ZodString`; `httpTransportConfig`: `ZodOptional`\<`ZodAny`\>; `rpcUrl`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
|
|
600
662
|
|
|
601
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
663
|
+
Defined in: [sdk/viem/src/viem.ts:182](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L182)
|
|
602
664
|
|
|
603
665
|
Schema for the viem client options.
|
|
604
666
|
|
|
@@ -608,7 +670,7 @@ Schema for the viem client options.
|
|
|
608
670
|
|
|
609
671
|
> `const` **GetChainIdOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `httpTransportConfig`: `ZodOptional`\<`ZodAny`\>; `rpcUrl`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
|
|
610
672
|
|
|
611
|
-
Defined in: [sdk/viem/src/viem.ts:
|
|
673
|
+
Defined in: [sdk/viem/src/viem.ts:434](https://github.com/settlemint/sdk/blob/v2.5.9/sdk/viem/src/viem.ts#L434)
|
|
612
674
|
|
|
613
675
|
Schema for the viem client options.
|
|
614
676
|
|