Create Wallet
Creating an Arweave wallet
Last updated
Was this helpful?
Creating an Arweave wallet
Last updated
Was this helpful?
The createWallet
function creates a new wallet capable of interacting with Arweave and Arweave based applications.
The function is called as follows:
The following params are available for this function and they must be passed in as an object:
seedPhrase: boolean
(optional) : Returns the seed phrase of the newly created wallet if set to true
.
environment: 'local' | 'mainnet'
(optional) : The environment for creating the wallet. The wallet created is funded with 1000000000000 Winston
for the local
environment. Wallets created on the mainnet
need to be funded separately.
The function call returns the following data:
The key provides access to a wallet and any assets associated with it. It is crucial to keep the key secure and not publish it anywhere.
walletAddress: string
: The wallet address is derived from the public key by truncating it down to 43 characters.
seedPhrase: string
(optional) : This is a 12 word string
that can be used to recover a wallet and any assets associated with it.
It is is crucial to keep the seed phrase secure and not publish it anywhere.
key: JWKInterface
: The private key is a JSON object. Read more about the Arweave compatible key format .