generateWallet
Last updated
Last updated
This function will generate an Arweave wallet, not a Koii wallet. To generate a Koii wallet please check .
This function creates a new Arweave wallet, but it does not return the private key of the generated wallet. Instead, it stores the info under the wallet
property and returns a boolean value of True
or False
.
use_mnemonic <boolean> - Flag for enabling mnemonic phrase wallet generation
This will return the contents of the JSON for your newly generated private key.
Promise <Boolean Value> - True or False depending on the state of the function.
wallet - has the key of the generated wallet, which is the private key to the wallet if saved as a .json file.
mnemonic - generates a wallet with mnemonic words
The generated wallet can be accessed via ktools.wallet
,
Save this info into a file in .JSON format and that's the Private Key to the generated wallet.
The wallet can also be accessed via ktools.mnemonic
,
If you selected to generate a mnemonic wallet via parameters.