2026-03-16 01:09:32 +03:00

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).