If you are new to building with crypto, you will need a wallet to continue.
Install Solana CLI
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
Create a new Solana wallet
# Create a new wallet solana-keygen new --outfile client-wallet.json # Get the publicKey address solana address -k client-wallet.json
Secure your wallet
client-wallet.json
.gitignore
client-wallet.json *.json
Install Base Account SDK
npm install @base-org/account
Create a new Base wallet
import { generateKeyPair } from '@base-org/account'; const keyPair = await generateKeyPair(); console.log('Public key:', keyPair.publicKey);
{ publicKey: "0x04a1b2c3d4e5f6...", privateKey: "0x1a2b3c4d5e6f7a..." }
Secure your Wallet
Was this page helpful?