Skip to content

Celestia Gas Calculator

Interactive calculator to estimate Celestia DA costs based on your rollup's block production rate and transaction throughput. All calculations mirror Celestia's DefaultEstimateGas logic, with fees reported in TIA based on your specified gas price in uTIA / gas.

Important: These are estimates only. Actual costs may vary based on network conditions, gas price fluctuations, and blob size optimizations. Use these projections as a planning guide, not exact values.

How it works

The calculator is organized into five sections:

1. Block production

Configure your rollup's block production rate. Set your block time (e.g., 250ms, 1s) to establish the base cadence of block production.

2. Batching strategy

Select how blocks are batched before submission to the DA layer. Four strategies are available:

  • Immediate: Submits as soon as any blocks are available. Best for low-latency requirements where cost is not a concern.
  • Size-based: Waits until the batch reaches a size threshold (fraction of max blob size). Best for maximizing blob utilization and minimizing costs when latency is flexible.
  • Time-based: Waits for a time interval before submitting. Provides predictable submission timing aligned with DA block times.
  • Adaptive (Recommended): Balances between size and time constraints—submits when either the size threshold is reached OR the max delay expires.

Configure strategy parameters:

  • DA block time: The block time of the DA chain (default: 6s for Celestia)
  • Batch size threshold: For size/adaptive strategies, the fraction of max blob size to fill before submitting (default: 80%)
  • Batch max delay: For time/adaptive strategies, the maximum wait time before submitting (default: DA block time)
  • Batch minimum items: Minimum number of blocks to accumulate before submission

3. Data workload

Model your transaction throughput and calldata usage:

  • EVM mode: Customize your transaction mix across common ERC-20, ERC-721, ERC-1155, and native transfers. The visual donut chart shows the weighted distribution of transaction types and calculates the average calldata bytes per transaction. Use "Randomize configuration" for quick testing or manually adjust weights in the customization panel.
  • Cosmos SDK mode: Coming soon

The calculator translates your transaction rate and calldata into Celestia blob gas requirements, projecting costs per submission, per second, and annually.

For EVM workloads, data submissions are chunked into 500 KiB blobs (mirroring the batching logic in da_submitter.go). If a cadence produces more than 500 KiB of calldata in a window, the tool automatically simulates multiple blobs—and therefore multiple PayForBlobs transactions—so base gas and data gas scale accordingly.

4. Gas parameters

Review the Celestia mainnet gas parameters used for calculations:

  • Fixed cost: 65,000 gas per submission
  • Gas per blob byte: 8 gas per byte
  • Share size: 480 bytes
  • Per-blob static gas: 0 gas

Set your expected gas price and optionally account for the one-time 10,000 gas surcharge if this is the first transaction for the account.

Note: Gas parameters are currently locked to Celestia mainnet defaults. Live parameter fetching and manual overrides will be added in a future update.

5. Estimation

View comprehensive cost breakdowns including:

  • Total gas per submission and corresponding fees
  • Detailed breakdown of header costs, data costs, and baseline gas
  • Annual cost projections
  • Throughput metrics (transactions per second, month, and year)

Block production

  • Blocks / second4

Batching strategy

Controls how blocks are batched before submission to the DA layer. Different strategies offer trade-offs between latency, cost efficiency, and throughput.

Time-based: Waits for a time interval before submitting. Provides predictable submission timing aligned with DA block times.

seconds
seconds (0 = DA block time)

Header and data submission rates are shown in the Estimation section below, based on your data workload configuration.

Data workload

96
bytes avg
  • Native value transfer11.1% • 0 bytes
  • ERC-20 transfer27.8% • 68 bytes
  • ERC-20 approve16.7% • 68 bytes
  • ERC-20 transferFrom11.1% • 100 bytes
  • ERC-721 transferFrom5.6% • 100 bytes
  • ERC-721 safeTransferFrom5.6% • 164 bytes
  • ERC-721 mint5.6% • 68 bytes
  • ERC-1155 safeTransferFrom5.6% • 196 bytes
  • ERC-1155 safeBatchTransferFrom5.6% • 228 bytes
  • EIP-2612 permit5.6% • 228 bytes
Customize transaction mix
Average calldata bytes / tx96
Transactions / submission60
Data blobs / submission1
Average blob size (bytes)5,760
Data bytes / submission5,760
Data shares / submission12

Gas parameters

Locked to Celestia mainnet defaults until live parameter fetching and manual overrides ship.

  • Fixed cost65,000 gas
  • Gas per blob byte8 gas / byte
  • Share size482 bytes

Estimation

Total yearly fee (TIA)4,435.5594
Fee / second (TIA)0.000141
Header fee / year (TIA)2,096.1769
Data fee / year (TIA)2,339.3825
Header costs
  • Header submission interval (s)6
  • Headers / submission24
  • Header bytes / submission4,200
  • Header submissions / year5,256,000
  • Header gas / submission34,704
  • Header fee / submission (TIA)0.000399
  • Header fee / year (TIA)2,096.1769
Data costs
  • Data bytes / second960
  • Data submission interval (s)6
  • Data submissions / year5,256,000
  • Average calldata bytes / tx96
  • Transactions / data submission60
  • Data bytes / submission5,760
  • Data blobs / submission1
  • Data gas / submission46,272
  • Data fee / submission (TIA)0.000445
  • Data fee / year (TIA)2,339.3825
Fixed costs (PFB base gas)
  • Header PFB base gas65,000 gas
  • Header fixed fee / year (TIA)1,366.56
  • Data blobs / submission1
  • Data fixed fee / year (TIA)1,366.56
  • Total fixed fee / year (TIA)2,733.12
Throughput metrics
  • Transactions per second10
  • Transactions per year315,360,000
  • Header submissions / year5,256,000
  • Data submissions / year5,256,000

Released under the APACHE-2.0 License