Botanix
Visit websiteTry Testnet
  • Welcome!
  • Get to know the Technology
    • Introduction to Botanix Labs
    • Risk warning
    • Terminology
    • Basic knowledge
      • Proof-of-Stake
      • Ethereum Virtual Machine (EVM)
      • UTXO vs Account Based Model
    • Introductory concepts
      • The Botanix EVM
      • The Spiderchain
      • Orchestrator node
      • Deposit & Withdraw
      • Transaction fees
    • Advanced concepts
      • Bitcoin security inheritance
      • Bridging
      • Consensus
      • Finality
        • Finality in a Proof-of-Work (PoW)
        • Finality in a Proof-of-Stake (PoS)
        • Finality on Botanix EVM
      • Forward security
        • Forward security in cryptography
        • The Spiderchain's Forward Security
        • Inventory management
      • FROST
      • Reth
      • Orchestrators
      • Staking
    • Roadmap to Spiderchain
      • Single Node (Testnet)
      • Botanix Federation
        • Consensus - CometBFT
          • Byzantine Fault Tolerance (BFT)
        • Node types
        • Multisig details - FROST
        • Peg-in / Peg-out
      • Botanix Federation with Staking
      • Slashing
      • Spiderchain DynaFed
      • Permissionless staking
      • Fully Decentralized Layer 2
    • Deeper dive: Whitepaper
  • How to use the Botanix EVM
    • Getting started with the Botanix EVM (testnet)
    • Risk warning
    • Step 1 - Set up your wallet
    • Step 2 - Get test funds
    • Step 3 - Send a transaction
    • Step 4 - Use dApps
    • Step 5 - Deploy your first contract / Launch your own token
    • Step 6 - Withdraw
    • FAQ - Testnet V1
  • Build dApps
    • Introduction
    • Risk warning
    • Tools
      • Useful links
      • Development Frameworks
      • Web3 libraries and tools
      • Oracle Tools
      • Block explorer
        • Routescan
      • Indexers
        • The Graph
        • SubQuery
      • WalletConnect
      • Account Abstraction with BTC Connect
      • Muticall3
    • Build on the Botanix EVM
      • Basic Botanix EVM Information
      • Gas fees
      • Develop a new dApp
      • Migrate existing dApps
      • Quickstart - Build a dApp with Botanix (Solidity, Hardhat)
  • Run a node
    • Introduction
    • Run an RPC Node
  • Glossary
Powered by GitBook
On this page
  • Gas fees
  • Layer 1 <> Layer 2
  • Fees for Layer 1 to Layer 2 Transactions
  • Fees for Layer 2 to Layer 1 Transactions

Was this helpful?

  1. Get to know the Technology
  2. Introductory concepts

Transaction fees

PreviousDeposit & WithdrawNextAdvanced concepts

Last updated 1 month ago

Was this helpful?

TL;DR

Transaction fees on the Botanix EVM are a little different from Bitcoin and resemble more the Ethereum network.

There are 3 primary actions when interacting with the Botanix EVM that can result in transaction fees.

  • Layer 2 transactions (i.e. transactions on the Botanix EVM itself)

  • Layer 1 to Layer 2 transactions (i.e. transactions from the Bitcoin main chain to Botanix EVM = bridge-in)

  • Layer 2 to Layer 1 transactions (i.e. transactions from Botanix EVM to the main chain = bridge-out)

Gas fees

Fees on the Botanix EVM are denominated in bitcoin. This also means that the staking rewards for the Spiderchain stakers, or Orchestrators, will receive their staking rewards in bitcoin.

The formula is the same as what you see on the Ethereum platform.

  • Fee = transaction.gasPrice * gasUsed

You should use eth_gasPrice to determine the appropriate gas price needed. Also, eth_estimateGas is used to find an appropriate gas limit.

  • Note that if the transaction.gasPrice is too low, your transaction will be rejected.

  • If you supply a transaction.gasLimit less than the value of eth_estimateGas, your transaction will be rejected.

Layer 1 <> Layer 2

Fees for Layer 1 to Layer 2 Transactions

When you create an L1 to L2 transaction (i.e. bridge-in), you need to pay for:

  1. The standard bitcoin transaction cost (This you will find in your BTC wallet of choice)

  2. The gas cost to call the minting contract (Shown on our bridge)

Fees for Layer 2 to Layer 1 Transactions

When you want to withdraw your funds back to L1 (i.e. bridge-out), you need to pay essentially for the same things as when you bridge-in. The biggest difference here is that we will batch all outgoing transactions which could lead to lower fees and both steps are automated.

A transaction from L2 to L1 will consist of the following:

  • A Layer 2 transaction that initiates the burning on the Botanix EVM.

  • A Layer 1 transaction on bitcoin that returns the bitcoin to you.

The cost of the initialization transaction is determined in the same way as any other L2 transaction. The cost of the finalization transaction depends on the mempool and current L1 congestion level.

The cost of the initialization transaction depends on the and current L1 congestion level. The cost of the finalization transaction is determined in the same way as any other L2 transaction.

mempool