Orb3 Protocol
WebsiteSwap AMMExplorerSocialTelegramHub
  • ☄️Introducing Orb3
    • ReLaunch Event
  • Orb3 BlockChain
    • 🤩Welcome to Orb3
      • Orb3 chain
      • Orb3 Foundation
      • Orb3 Token
      • Blockchaing Gaming
        • Current Limitations
        • The Future of Gaming
        • Gaming Evolved
      • Partnership's
      • FAQ's
    • Protocol
      • Protocol Features
        • Basic Concepts
        • AnyTrust
          • Reducing Costs
          • Keysets
          • Sequencer
      • Tokenomics
        • Utility & Purpose
        • The Redemption Process
        • Initial Allocation of Orb3
        • Emissions & Burning
        • Estimated Network Rewards
        • Estimated Reward Value
      • Sentry Nodes
        • Sentry Nodes Work?
        • Who Can Operate
        • Referee Smart Contract
        • Challenger Component
        • Key
        • Sentry Download and Operation
        • Sentry Wallet
        • Licensing
        • Node Software Requirements
        • Node Utility
      • Roadmap
      • Arbitrum
      • Contracts
    • Estimate Gas on Orb3
    • Troubleshooting dApps Built on Orb3
    • Important Links
    • Bridge ETH
  • 🎮Orb3 Releases
    • Quick Start
    • 🖐️Social.Orb3
      • Introduction to the Social.Orb3
      • Influencers
    • Introduction to EthArena
      • Important Links
      • Game Releases
      • Game Deployment Stage
    • CryptoCartel
      • Where to Get C.C airdrop
    • NFT.Orb3
      • Introducing
      • Getting Started
      • NFT Standards
      • Features
        • Collections
        • Minting
        • Purchasing NFT's
        • Selling NFT's
      • MarketPlace
    • Orb3 Support
  • 🎗️Hackathon
    • Dorahacks
      • Getting Started
        • Overview of Hackathon
        • Key Features and Benfits
      • Prizes and Judging
        • Prize Categories
        • Judging Process
      • FAQs
    • Devpost
    • HackerEarth
  • 🔱MainNet & TestNet
    • Quick Start
    • Connect To Orb3 MainNet
    • Connect to Orb3 Testnet
    • Bridge testnet ETH from Arbitrum Goerli to Orb3 testnet
    • Testnet FAQ's
Powered by GitBook
LogoLogo

EthArena

  • Social

P2E

  • TheHeist

Nex Gen Layer3

On this page
  • 🛠️ Troubleshooting: Building dApps on Orb3 with Arbitrum
  • Creating Retryable Tickets and Debugging Issues:
  • Computing the L1 Portion of Gas Fee:
  • Handling Retryable Tickets and Submission Fees:
  • Submitting Retryable Tickets:
  • Understanding Custom Transaction Types and Hardhat Usage:
  • Dealing with Gas Estimation Variations:
  • Handling "429 Too Many Requests" Error:
  • Understanding Block Numbers and Timestamps:
  • Final Considerations for dApp Developers:

Was this helpful?

  1. Orb3 BlockChain

Troubleshooting dApps Built on Orb3

🛠️ Troubleshooting: Building dApps on Orb3 with Arbitrum

Building decentralized applications (dApps) on Orb3, which utilizes Arbitrum technology, involves understanding how gas works and addressing common issues. Here's a guide to help developers navigate these aspects effectively.

Understanding Gas on Arbitrum in Orb3:

  • Fees Collection: Fees on Orb3 chains using Arbitrum are collected on Layer 2 (L2) in ETH.

  • Transaction Fee Components: A transaction fee includes both an L1 component, compensating the Sequencer for posting transactions on L1, and an L2 component covering the cost of operating the L2 chain. The L2 gas price adjusts responsively to chain congestion (See EIP 1559).

Creating Retryable Tickets and Debugging Issues:

  • Common Errors: When creating retryable tickets, transactions might revert on L1 due to errors like InsufficientValue or InsufficientSubmissionCost.

  • Debugging: Use etherscan's Parity VM trace support to pinpoint the error causing the transaction to revert. Check the "Raw Traces" tab for the "output" field of the last subtrace to find the custom error signature.

Computing the L1 Portion of Gas Fee:

  • L1 Fee Calculation: The L1 fee is determined by compressing the transaction's data and multiplying the size by ArbOS's current calldata price. This can be queried via the getPricesInWei method of the ArbGasInfo precompile.

Handling Retryable Tickets and Submission Fees:

  • Calculating Submission Fee: The submission fee, proportional to the size of the L1 calldata, can be queried using Inbox.calculateRetryableSubmissionFee. Insufficient fees will cause the transaction to revert on L1.

Submitting Retryable Tickets:

  • Recommended Method: Use Inbox.createRetryableTicket for most cases. For advanced users, Inbox.unsafeCreateRetryableTicket is available but requires a deep understanding of its implications.

Understanding Custom Transaction Types and Hardhat Usage:

  • Custom Transaction Support: Arbitrum uses non-standard EIP-2718 typed transactions. Hardhat v2.12.2 or newer supports these custom types for Arbitrum.

Dealing with Gas Estimation Variations:

  • Gas Estimate Changes: The eth_estimateGas RPC returns a value covering both L1 and L2 components. Changes in the L1 calldata price can make it appear as if the gas limit is fluctuating.

Handling "429 Too Many Requests" Error:

  • Rate Limits on Public RPCs: Offchain Labs limits requests on its public RPCs to prevent DOS attacks. Consider running your own node or using a third-party provider if you encounter rate limits.

Understanding Block Numbers and Timestamps:

  • Arbitrum's Block Number Behavior: block.number and block.timestamp on Arbitrum reflect the L1 block number and timestamp but are updated on a slight delay.

Final Considerations for dApp Developers:

  • No Special Libraries Required: For web3.js or ethers.js, no special npm libraries are needed.

  • Transaction Finality: Use eth_getBlockByNumber() with different strings like "latest", "safe", or "finalized" for varying degrees of finality.

PreviousEstimate Gas on Orb3NextImportant Links

Last updated 1 year ago

Was this helpful?