23 lines
752 B
Plaintext
23 lines
752 B
Plaintext
# Bot Wallet Setup
|
|
|
|
Bots require a private key in order to sign transactions. The private key is stored in a wallet file and can either be in base58 format, or a numbers array format.
|
|
|
|
## Generate a Fresh keypair
|
|
|
|
### 1. Download and install the Solana CLI
|
|
|
|
First download and install the Solana CLI following the [official instructions](https://docs.solanalabs.com/cli/install).
|
|
|
|
### 2. Generate a new keypair
|
|
|
|
Create a new keypair file named `new_keypair.json`:
|
|
```
|
|
solana-keygen new -o new_keypair.json
|
|
```
|
|
|
|
This will contain a new keypair in JSON format.
|
|
|
|
|
|
## Export Keypair from a browser wallet
|
|
|
|
Alternatively you may export the private key from an existing browser wallet such as [Phantom](/protocol/getting-started/wallet-setup/phantom-wallet). |