Skip to main content

Setup Wallet

To interact with the Previous Network, you need accounts to submit transactions to both the Previous chain and the universe chain.

This guide assumes we are in universe 84532, i.e., the Base Sepolia universe, and you already have a wallet on the Base Sepolia chain. If that is not the case, refer to Using Base with your wallet.

Now let's set up your wallet for the Previous chain.

Using pre-cli

Generate a New Account

To generate a new account, use the following command:

pre wallet generate account1 -t sr25519 --password YOUR_PASSWORD

Import an Existing Account

If you already have an account, you can import it using the following command:

pre wallet import account1 PRIVATE_KEY_OF_YOUR_ACCOUNT -t sr25519 --password YOUR_PASSWORD

In either case, pre-cli will create a keystore file at the path ~/.previous/keystore/account1. You can check the account by executing:

pre wallet inspect account1 --password YOUR_PASSWORD

For more information about the command, you can run pre wallet --help, or check the Pre-cli Reference.

Using SubWallet

Install SubWallet

To install the SubWallet extension to your browser, follow the guide Install SubWallet.

Create a New Account

To create a new account using SubWallet, refer to the guide Create a New Account.

By following these steps, you'll be able to set up your wallet on the Previous chain and the universe chain, allowing you to interact with the Previous Network seamlessly.