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)
    • Yield From Real World Treasury Bills
  • 🛠️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. Eclipse Testnet ETH Transfer Transaction Fee Estimator

Program Execution

PreviousProgram JSX & CSSNextPyth: How to Use Real-Time Data in Solana Programs

Last updated 1 year ago

Run the Development Server to start this React app:

  • Execute the following command to start the development server:

    npm start
  • Alternatively, if you have configured your project to use react-app-rewired for overriding the Webpack configuration without ejecting from create-react-app, make sure to run:

    npm run start
  • This command compiles your application and serves it locally, usually opening your default web browser to http://localhost:3000/ automatically, where you can view your running application.

To validate the accuracy of the estimated fee component's output, you can perform a real-world test by executing an Ethereum (ETH) transfer transaction on the Eclipse testnet using Eclipse's form of the Salmon Wallet. This practical approach allows you to compare the estimated transaction fee provided by the program against the actual gas used by the transaction as recorded on the blockchain. Here's a brief overview of how to carry out this verification process:

  1. Initiate an ETH Transfer: Use the Eclipse wallet to create and send an ETH transfer transaction to another address on the Eclipse Testnet. Ensure that the transaction details (e.g., sender, receiver, and amount) closely match those used by the program for a meaningful comparison.

  2. Compare the Estimates: Compare the gas estimate provided by the estimator with the actual gas used as recorded on the blockchain. This comparison will help you assess the accuracy and reliability of the estimated fees generated by the component.

By following these steps, you can confirm the effectiveness of the estimator in predicting the transaction fees for ETH transfers on the Eclipse Testnet. This method provides a practical way to gauge the estimator's performance in real-world conditions.

Prepare the Eclipse Wallet: Ensure you have the Eclipse wallet set up and funded with testnet ETH on the Eclipse testnet. The wallet should be configured to interact with the Eclipse testnet environment. Full guide on installing Eclipse wallet:

Record the Actual Gas Used: After executing the transaction, note the actual gas used. This information can typically be found in the transaction details on a blockchain explorer that supports the Eclipse Testnet. Eclipse Testnet Explorer:

📖
https://docs.eclipse.builders/building-on-eclipse/wallet
https://explorer.dev.eclipsenetwork.xyz/?cluster=testnet
Eclipse testnet ETH Transfer Transaction Fee Estimator
Compare estimate to real fee value