Fees
Fee formula, base fee update rule, block limits, priority ordering, burn accounting and measurements.
On this page · 5
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
Capacity
| Quantity | Default | Derivation |
|---|---|---|
| Transfers per block (max) | 395 | 1,000,000 / 2,526 |
| Transfers per block (target) | ≈ 198 | 500,000 / 2,526 |
| Throughput ceiling | ≈ 395 tx/s | 1 s slots |
| Throughput at target | ≈ 198 tx/s | base fee stable |
Ordering and the priority fee
| Rule | Definition |
|---|---|
| Effective tip | min(max_fee − base_fee, priority_fee), 0 if max_fee < base_fee |
| Block order | highest effective tip first; each account in nonce order; ties by arrival |
| Mempool minimum | 0 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 defaults | priority = 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
| Run | Result |
|---|---|
| 15,000-tx burst, half with priority 50 units/B | median wait 9 s with priority, 27 s without; 1,931 evicted |
| 350,000 requests / min from one address | almost 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.