Keypair
Last updated
Last updated
- Creates an instance of WalletKeypar
using password.
This method is used to restore a wallet keypair. The Keypair contains some essential information, such as:
address
public key
key store
and so on, and it is used for pretty much any personalized operation that user can do using FractalSdk
Parameters:
<string>
- Password to be used to generate an encrypted KeyStore
Results:
Promise<WalletKeypar>
- An instance of WalletKeypar
Example:
- Get wallet address by given public key Using this function user can retrieve the wallet address by given public key
<string>
- Public key
Promise<string>
- A wallet address.
- Create an instance of LightWalletKeypair
using given wallet address.
This method is used to create a light version of the WalletKeypar using given wallet address.The LightWalletKeypair contains two essential information:
address
public key
It's a light version of the WalletKeypar, containing only the address and public key
<string>
- Wallet address
Promise<LightWalletKeypair>
- An instance of LightWalletKeypair
.
- Creates an array of Mnemonic phrases. This method is used to create an array of Mnemonic phrases.
<number>
- Desired length of mnemonic phrases. It can only be 12/15/18/21/24.
<string>
- (optional) Default is en
.
Promise<LightWalletKeypair>
- An instance of LightWalletKeypair
.
- Creates an instance of WalletKeypar
using Mnemonic and password.
This method is used to restore a wallet keypair. The Keypair contains some essential information, such as:
address
public key
key store
and so on. It is used for almost any personalized operation that the user can do using FindoraSdk
<string[]>
- mnemonic words
<string>
- Password to be used to generate an encrypted KeyStore
Promise<WalletKeypar>
- An instance of WalletKeypar
.
- Creates an instance of WalletKeypar
using given private key and password.
This method is used to restore a wallet keypair. The Keypair contains some essential information, such as:
address
public key
key store
and so on, and it is used for pretty much any personalized operation that user can do using FindoraSdk
<string>
- Private key
<string>
- Password to be used to generate an encrypted KeyStore
Promise<WalletKeypar>
- An instance of WalletKeypar
.
Parameters:
Results:
Example:
Parameters:
Results:
Example:
Parameters:
Results:
Example:
Parameters:
Results:
Example:
Parameters:
Results:
Example: