After a few seconds, your wallet will be funded with Devnet SOL — enough to deploy and test programs.
Getting Your BS58 Private Key
From Phantom Wallet
1)Open Phantom
2)Click the gear icon
3)Select Manage Accounts
4)Choose your wallet
5)Click Show Private Key
6)Enter your password
7)Copy the private key and paste it into the OctoMCP config
From Solflare Wallet
Open Solflare wallet
Click on your wallet name at the top
Click "Export Private Key"
Enter your password
Copy the private key (this is in BS58 format)
From Solana CLI Keypair
If you have a Solana CLI keypair file, you can convert it to BS58 format:
From Secret Key Array (Legacy Support)
If you have your secret key as an array of numbers, you can convert it to BS58:
Security Best Practices
⚠️ IMPORTANT SECURITY WARNING ⚠️
Never share your private key with anyone
Keep your MCP configuration file secure and never commit it to public repositories
Consider using environment variables instead of hardcoding keys in config files
Use devnet for testing before deploying to mainnet
Regularly rotate your keys if they may have been compromised
Environment Variables Setup
For enhanced security, you can set environment variables instead of putting keys in config files:
# First, get the byte array from your keypair
solana-keygen dump-keypair --keypair /path/to/your/keypair.json
# Then use this Node.js script to convert to BS58:
node -e "
const bs58 = require('bs58');
const secretKey = [YOUR_SECRET_KEY_ARRAY_HERE]; // Replace with actual array
console.log(bs58.encode(Buffer.from(secretKey)));
"