You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`network`| The Web3auth network is to be used by the SDK. Supported values are `Web3AuthNetwork.SAPPHIRE_MAINNET`, `Web3AuthNetwork.SAPPHIRE_DEVNET` ,`Web3AuthNetwork.MAINNET`, `Web3AuthNetwork.TESTNET`, `Web3AuthNetwork.CYAN`, and `Web3AuthNetwork.AQUA`|
25
-
|`clientId`| The clientId for your Web3Auth project. You can get it from [Web3Auth dashboard](https://dashboard.web3auth.io/). |
26
-
|`sessionTime`| Specifies the session duration in seconds. By default, the value is set to 86400 seconds (1 day), with a maximum session duration of up to 30 days. |
27
-
|`serverTimeOffset`| Specify a custom server time offset. The default value is 0. |
28
-
|`storageServerUrl?`| Specifies the storage server URL. The default value is `https://session.web3auth.io`. |
|`network`| The Web3auth network is to be used by the SDK. Supported values are `Web3AuthNetwork.SAPPHIRE_MAINNET`, `Web3AuthNetwork.SAPPHIRE_DEVNET` ,`Web3AuthNetwork.MAINNET`, `Web3AuthNetwork.TESTNET`, `Web3AuthNetwork.CYAN`, and `Web3AuthNetwork.AQUA`|
25
+
|`clientId`| The clientId for your Web3Auth project. You can get it from [Web3Auth dashboard](https://dashboard.web3auth.io/). |
26
+
|`sessionTime`| Specifies the session duration in seconds. By default, the value is set to 86400 seconds (1 day), with a maximum session duration of up to 30 days. |
27
+
|`serverTimeOffset`| Specify a custom server time offset. The default value is 0. |
28
+
|`storageServerUrl?`| Specifies the storage server URL. The default value is `https://session.web3auth.io`. |
29
+
|`whiteLabel?`| You can pass the white labeling options for web3auth. It helps you define your brand app's custom UI, and branding for the Wallet Services feature. The recommended way to configure the `whiteLabel` is through the Web3Auth Dashboard. [Learn how to configure the `whiteLabel` via Web3Auth Dashboard](/docs/features/whitelabel#new-whitelabeling-via-the-dashboard). |
30
+
|`redirectUri?`| URL that Web3Auth will redirect API responses upon successful `request` method call. Please note, that it's mandatory to configure the `redirectUri` if you are using the `request` method. |
|`chainConifg`| Defines the chain to be used for signature request. Learn more about [ChainConfig](#parameters-1). |
283
+
|`method`| JSON RPC method name in `String`. Currently, the request method only supports the singing methods. |
284
+
|`requestParams`| Parameters for the corresponding method. The parameters should be in the list and correct sequence. Take a look at [RPC methods](https://docs.metamask.io/wallet/reference/json-rpc-api/) to know more. |
285
+
286
+
### Usage
287
+
288
+
```kotlin
289
+
val params =JsonArray().apply {
290
+
// Message to be signed
291
+
add("Hello, World!")
292
+
// User's EOA address
293
+
add(address)
294
+
}
295
+
296
+
val chainConfig =ChainConfig(
297
+
chainId ="0x1",
298
+
rpcTarget ="https://rpc.ankr.com/eth",
299
+
ticker ="ETH",
300
+
chainNamespace =ChainNamespace.EIP155
301
+
)
302
+
303
+
// focus-start
304
+
val signMsgCompletableFuture = singleFactorAuth.request(
0 commit comments