Lunar
WEBSITE
  • Lunar Core
    • What is Lunar Chain?
      • Settlement on Ethereum
      • Execution with Solana Virtual Machine (SVM)
      • Data Availability via Celestia
      • Zero-Knowledge Proofs with RISC Zero
    • What Sets Lunar Apart?
    • Why Choose Lunar?
    • From Start to Finish: A Lunar Transaction
  • users/developers
    • First Steps for Users
      • Configure Your Lunar Wallet
      • Fund Your Wallet with Bridged Assets
      • Discover the Lunar Ecosystem
      • Join the Lunar Community
    • Information for Developers
    • Lunar vs. Solana: What Sets Them Apart
  • token
    • $LUNAR Token
    • Roadmap
Powered by GitBook
On this page
  • Native Token
  • Priority Fees
  • Wallets
  • dApps
  1. users/developers

Lunar vs. Solana: What Sets Them Apart

While developing and interacting with dApps on Lunar is very similar to Solana, there are some key differences that users and developers should be aware of. These differences ensure that Lunar provides enhanced functionality and interoperability while maintaining familiarity for Solana users.

Native Token

  • ETH as the Native Token: On Lunar, the native token is ETH, which uses 9 decimal places instead of the standard Ethereum 18. This provides higher precision and aligns with Lunar’s design philosophy. Users can obtain ETH on Lunar by:

    • Bridging from Ethereum: Transfer ETH directly from Ethereum mainnet.

    • Bridging from Solana: Transfer SOL or USDC via supported bridging tools.

  • Wrapped Tokens: Similar to Solana, Lunar supports wrapped versions of its native token for both SPL Token and SPL Token 2022 standards. These tokens also have 9 decimal places and share the same addresses as Solana:

    • SPL Token: So11111111111111111111111111111111111111112

    • SPL Token 2022: 9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP

    These wrapped tokens maintain compatibility across ecosystems, allowing seamless interaction with Solana-based applications.

Priority Fees

  • Fee Payments: Priority fees on Lunar are paid in ETH but follow the same logic as Solana. While libraries such as @solana/web3.js may display fees as micro-lamports, the actual calculation uses ETH with the same precision:

    • 1 micro-lamport = 10^-6 lamports = 10^-15 SOL = 1 Kwei

  • Fee Calculation Recommendations: To ensure accurate fee payments and minimize costs:

    • Use getRecentPriorityFees to fetch the most up-to-date fee information.

    • Avoid relying on default values due to differences in USD pricing between micro-lamports and Kwei.

Wallets

Lunar supports a variety of compatible wallets for storing and transacting with ETH and SPL tokens.

dApps

  • Building and Deploying dApps: The process for building and deploying programs on Lunar is identical to Solana. Developers should:

    • Ensure any hardcoded program addresses are updated to match Lunar.

    • Follow Lunar’s deployment guide for detailed instructions.

  • Interoperability: dApps built for Solana can seamlessly operate on Lunar, provided they account for the differences in token standards and priority fees.

By addressing these differences, Lunar enhances usability while maintaining compatibility with Solana’s development ecosystem, offering a seamless transition for developers and users alike.

PreviousInformation for DevelopersNext$LUNAR Token

Last updated 5 months ago

Page cover image
Cover

Cover

Cover

MetaMask Wallet
Phantom Wallet
TRUST Wallet