Eclipse Documentation
HomeBridge
  • 🐮Users
    • Getting Started
      • 1. Set Up Your Eclipse Wallet
      • 2. Bridge Assets for Gas and Transactions
      • 3. Explore the Eclipse Ecosystem
      • 4. Engage with the Community on Discord
    • User Resources
    • Unified Restaking Tokens (URTs)
    • Turbo Tap FAQ
  • 🛠️Developers
    • Getting Started
    • Wallet
      • Mainnet Wallets
      • Testnet & Devnet Wallets
        • Adding Eclipse Wallet to dApp
        • Custom Wallets
    • RPC & Block Explorers
      • Dragon's Mouth gRPC Subscriptions
    • Bridges
      • Eclipse Canonical Bridge
      • Hyperlane
    • Oracles
      • Pyth Network
      • Switchboard
    • NFTs
      • Metaplex
      • Nifty Asset
      • Libreplex (Token-2022)
    • Developer Tooling
      • Faucet
      • Benchmarking
        • Running AMM benchmarking tests
      • Decentralized Identities
        • AllDomains
      • OpenBook Quickstart
      • Multisig
    • Eclipse Bug Bounty Program
    • Eclipse Status Page
    • Frequently Asked Questions
    • Differences Between Eclipse and Solana
    • Eclipse Program Registry Guide
  • 📖Tutorials & Guides
    • Developer Guides
      • Quick Start: "Hello World"
        • Deployment Walkthrough
      • Reading from the blockchain
      • Modifying a Solana dApp to Support Eclipse: "Chomping Glass"
        • Developing on the Solana Virtual Machine (SVM)
        • Multi-chain toggle frontend component
      • Dapp Deployment Tutorial - Eclipse Devnet
        • ⚙️Install Dependencies - Windows
          • Step 1: Install Visual Studio Code (VSC)
          • Step 2: Install Rust and Cargo
          • Step 3: Download Visual Studio C++ Build Tools
          • Step 4: Download Node.js
          • Step 5: Install Git on Windows
          • Step 6: Install the Solana CLI
          • Step 7: Install WSL on Visual Studio Code and Upgrade to WSL2
          • Step 8: Set Up Development Environment in Ubuntu WSL
          • Step 9: Install Anchor on Windows and WSL
        • 🏝️Solana CLI & Solana Keypair
          • Step 1: Set Solana CLI to Use Eclipse Devnet
          • Step 2: Verify Solana CLI Configuration
          • Step 3: Generate a New Solana Keypair
          • Step 4: Claim Devnet ETH for Transaction Fees
          • Optional Step: View Balance on Devnet Explorer
        • 🖥️Creating an Anchor Project in Visual Studio Code
          • Step 1: Initialize Anchor Project
          • Step 2: Update the lib.rs File with Smart Contract Code
          • Step 3: Update the Smart Contract's Cargo.toml File
          • Step 4: Update the Project's Root Cargo.toml File
          • Step 5: Compile Your Program with anchor build
          • Step 6: Deploy Your Project to the Eclipse Devnet
          • Step 7: Verify Program Deployment on the Eclipse Devnet Explorer
        • ✨Building a React App Front-End
          • Step 1: Create a New React Project with TypeScript
          • Step 2: Install Solana Web3.js and Wallet Adapter Dependencies
          • Step 3: Install Additional Dependencies for Enhanced Functionality and Compatibility
          • Step 4: Configure Webpack for Browser Compatibility
          • Step 5: Start the Development Server and Verify Setup
          • Step 6: Implement the UI for Your NFT Minter in App.tsx with Updated Code
      • Eclipse Testnet ETH Transfer Transaction Fee Estimator
        • Program Breakdown
        • Program JSX & CSS
        • Program Execution
      • Pyth: How to Use Real-Time Data in Solana Programs
      • Quick Start: User Guide - Testnet
      • cNFTs on Eclipse
        • Create 1 Million NFTs on Eclipse
        • How to Interact with cNFTs
  • 🧠Eclipse Architecture
    • What is Eclipse Mainnet?
      • Settlement - Ethereum
      • Execution - Solana Virtual Machine (SVM)
      • Data Availability - Celestia
      • Proving - RISC Zero
      • Why Eclipse, Why Ethereum, Why Now
    • Lifecycle of an Eclipse Transaction
  • 📚Additional Resources
    • External Documentation
    • Disclosures
Powered by GitBook
On this page
Edit on GitHub
  1. Tutorials & Guides
  2. Developer Guides
  3. Dapp Deployment Tutorial - Eclipse Devnet
  4. Solana CLI & Solana Keypair

Step 3: Generate a New Solana Keypair

PreviousStep 2: Verify Solana CLI ConfigurationNextStep 4: Claim Devnet ETH for Transaction Fees

Last updated 1 year ago

A keypair in Solana/Eclipse consists of a public key (wallet address) and a private key (secret key), which are essential for interacting with the blockchain. The public key is used to receive funds or identify your account, while the private key is used to sign transactions securely. If you're new to the Solana CLI, generating a new keypair is one of the first steps you'll need to take to start working with the Eclipse blockchain.

Why You Need a Keypair

  • Identity: Your keypair serves as your identity on the blockchain, allowing you to own and transact with ETH and other tokens.

  • Security: The private key in the keypair is used to sign transactions, ensuring that only the key owner can authorize actions associated with the account.

Generating a Keypair

  1. Open Your Terminal:

    • Ensure you have access to your terminal or command line interface where the Solana CLI is installed. Windows users should use WSL for this process.

  2. Run the Keypair Generation Command:

    • Enter the following command to generate a new keypair:

      solana-keygen new
    • The Solana CLI will generate a new keypair and save the keys to a file in your home directory (by default). It will also display the public key, which represents your new Eclipse blockchain address.

  3. Secure Your Keypair:

    • Upon generating a new keypair, the CLI will prompt you to save the seed phrase associated with your keypair. It's crucial to write down this seed phrase and store it in a secure location. The seed phrase can be used to recover your keypair in case you lose access to your computer or the file where your keys are stored.

      Example Output

Next Steps

  • With your new keypair generated, you're now equipped with a fundamental tool required for Eclipse blockchain development. This keypair will be used for various tasks, including sending and receiving ETH, deploying programs, and interacting with contracts on the blockchain.

  • Remember to keep your private key and seed phrase secure at all times. Anyone with access to your private key can control your blockchain assets.

Troubleshooting

  • If you encounter any issues during the keypair generation process, ensure that your Solana CLI is correctly installed and updated to the latest version. Running solana --version can verify your CLI version.

📖
🏝️