↑ ↓ navigate↵ open

Fees

Fee formula, base fee update rule, block limits, priority ordering, burn accounting and measurements.

On this page · 5
  1. 01Transaction fee
  2. 02Base fee update
  3. 03Capacity
  4. 04Ordering and the priority fee
  5. 05Measured

Transaction fee

Spec/Ledger.lean
fee_per_byte = min(max_fee_per_byte, base_fee + priority_fee_per_byte)
fee          = fee_per_byte × size                 // size: 2,526 or 3,838 bytes
requires       max_fee_per_byte ≥ base_fee           // else FeeTooLow
               balance ≥ amount + fee                // else InsufficientBalance
Destination
burned (base and priority)
Proven bounds
base_fee × size ≤ fee ≤ max_fee × size
Normal transfer at floor
2,526 units = 0.000002526 tokens
First transfer at floor
3,838 units

Base fee update

Spec/Fee.lean
maxBaseFee = 2^48
step = cur / 8 + 1
raw  = used > target ? cur + step
     : used < target ? cur − step        // Nat subtraction, stops at 0
     : cur
next = min(maxBaseFee, max(floor, raw))
Applied
after every block, empty ones included
used
sum of tx sizes in the block
Initial value
fee_floor
fee_floor default
1 unit / B (genesis)
block_target_bytes default
500,000 (genesis)
Block max
2 × target = 1,000,000 B
Genesis checks
floor ≤ 2^48, target ≥ 1,919
Step size
≈ 12.5 % per block
above target
nextBaseFee over 72 blocks with floor 1: blocks 12–37 above target (shaded), the rest below. Log scale.

Capacity

QuantityDefaultDerivation
Transfers per block (max)3951,000,000 / 2,526
Transfers per block (target)≈ 198500,000 / 2,526
Throughput ceiling≈ 395 tx/s1 s slots
Throughput at target≈ 198 tx/sbase fee stable

Ordering and the priority fee

RuleDefinition
Effective tipmin(max_fee − base_fee, priority_fee), 0 if max_fee < base_fee
Block orderhighest effective tip first; each account in nonce order; ties by arrival
Mempool minimum0 if not full, else lowest + max(lowest / 10, 1), where lowest is the cheapest last transaction of another account; min_priority_fee in /account, and mempool_min_priority_fee in /status for an account with nothing waiting
leansvm send defaultspriority = the account’s min_priority_fee, max = 2 × base_fee + priority

The scheme is EIP-1559 with the priority fee burned as well; validator rewards are not designed yet (see open questions).

Measured

150tx/s

sustained, base fee at the floor

0.6s

median submit → finalized at 150 tx/s

393tx/s

25,000-tx burst; base fee 1 → ≈ 11,000 in one minute

RunResult
15,000-tx burst, half with priority 50 units/Bmedian wait 9 s with priority, 27 s without; 1,931 evicted
350,000 requests / min from one addressalmost all 429; every slot finalized; slowest slot 36 ms
Replay at startup≈ 20,000 tx/s

Load tool on Apple Silicon and Ubuntu 24.04 containers, single validator, 1 s slots.