Wallet..::..InitWallet Method

Initializes the wallet.

Namespace:  SecretNET
Assembly:  SecretNET (in SecretNET.dll)

Syntax


public static Task<Wallet> InitWallet(
	byte[] data,
	bool fromSeed,
	CreateWalletOptions options
)

Parameters

data
Type: array<Byte>[]()[][]
The data.
fromSeed
Type: Boolean
if set to true [from seed].
options
Type: CreateWalletOptions
The options.

Return Value

Wallet.

Exceptions


ExceptionCondition
[System.ArgumentOutOfRangeException]No valid address
[Exception]Could not save private key data