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
  • Eclipse Deposit CLI
  • Prerequisites
  • 1. Yarn
  • 2. Ethereum Wallet
  • 3. Solana CLI
  • Installation (via npm)
  • Installation (via GitHub)
  • Create a Deposit
  • Security Note
Edit on GitHub
  1. Developers
  2. Bridges

Eclipse Canonical Bridge

PreviousBridgesNextHyperlane

Last updated 6 months ago

Our enshrined canonical bridge is live for Eclipse Mainnet & Testnet. Withdrawals from the Eclipse Bridge are currently disabled. You can bridge using the official bridge site at:

Our canonical bridge deployed directly to Ethereum is the primary way to bring assets to Eclipse Mainnet. You are able to bridge ETH and eventually other assets via our bridge. ETH is the native token for Eclipse Mainnet. We do not have any other native token for Eclipse Mainnet.


Eclipse Deposit CLI

This CLI tool allows end users to deposit Ether from Ethereum Mainnet or the Sepolia test network into the Eclipse rollup, which utilizes the Solana Virtual Machine (SVM).

This Eclipse Deposit CLI allows end users to deposit Ether from:

  • Ethereum Mainnet into Eclipse Mainnet

  • Sepolia Testnet to the Eclipse Testnet


Prerequisites

1. Yarn

Yarn is required for installation. For Mac users, Yarn can be installed via Homebrew using brew install yarn. Alternatively, if npm is available, use npm install -g yarn.

2. Ethereum Wallet

For Metamask:

  1. Choose the account you wish to use and copy its address.

  2. Navigate to 'account details' in MetaMask and select 'reveal private key'. Store this key in a secure file.

3. Solana CLI

The Solana CLI tools are necessary for generating a deposit address on the rollup.

To generate a wallet for deposits:

  1. Install the Solana CLI tools.

  2. To generate a wallet:

    • Execute solana-keygen new --no-outfile or solana-keygen new --outfile my-wallet.json.

  3. Copy the public key from the output, which should resemble 6g8wB6cJbodeYaEb5aD9QYqhdxiS8igfcHpz36oHY7p8.


Installation (via npm)

  • COMING SOON

Installation (via GitHub)

  1. Clone this repository:

    git clone https://github.com/Eclipse-Laboratories-Inc/eclipse-deposit.git
    cd eclipse-deposit
  2. Install the necessary dependencies:

    yarn install

Create a Deposit

  1. Run the CLI tool with the necessary options:

    node bin/cli.js -k <path_to_private_key> -d <solana_destination_address> -a <amount_in_ether> --mainnet|--sepolia 

    For example:

    Mainnet Deposit:

    node bin/cli.js -k private-key.txt -d 6g8wB6cJbodeYaEb5aD9QYqhdxiS8igfcHpz36oHY7p8 -a 0.002 --mainnet

    Sepolia Testnet Deposit:

    node bin/cli.js -k private-key.txt -d 6g8wB6cJbodeYaEb5aD9QYqhdxiS8igfcHpz36oHY7p8 -a 0.002 --sepolia

    • The -k, --key-file option specifies the path to the Ethereum private key file.

    • The -d, --destination option specifies the Solana destination address on the rollup (base58 encoded).

    • The -a, --amount option specifies the amount of Ether to deposit.

    • Use --mainnet or --sepolia to select the network. The tool will use different contract addresses depending on the network.

    • The -r, --rpc-url option is optional and allows overriding the default JSON RPC URL.

Deposits will finalize and be processed in about 2-3 minutes.


Security Note

Keep your Ethereum private key secure. Do not share it publicly or expose it in untrusted environments.

An Ethereum wallet such as or Metamask is needed.

Visit the to airdrop tokens to yourself, if using Sepolia.

🛠️
Backpack
Sepolia faucet
https://bridge.eclipse.xyz/
LogoEclipse Apps
Eclipse Bridge Walkthrough