Midnight introduces a carefully engineered transaction handling system designed to balance two critical challenges in blockchain networks: preventing congestion (both organic and malicious) and maintaining stable, predictable transaction costs.

Rather than relying on static fee structures, Midnight adopts a dynamic pricing model that continuously adjusts transaction costs based on real-time network conditions and resource usage.

Core Components of Transaction Fees

Every transaction fee on Midnight is calculated using three primary elements:

1. Minimum Fee

A fixed baseline cost applied to every transaction, regardless of size or network activity.

Ensures that all transactions carry a non-zero cost

Acts as a defense against denial-of-service (DDoS) attacks

Makes large-scale spam economically impractical in DUST terms

2. Congestion Rate

The congestion rate is the dynamic component of the fee system. It adjusts automatically at each block to reflect network demand.

Measured in DUST per byte

Acts as a multiplier applied to transaction weight

Increases during high demand to reduce spam and overload

Decreases during low activity to encourage usage

This mechanism ensures that:

Fees rise when the network is busy

Fees fall when the network is underutilized

3. Transaction Weight

Transaction weight represents the resource footprint of a transaction.

Initially, it is based on:

Storage size (in kilobytes)

Planned future extensions include:

Computational cost

Disk read/write operations

This ensures fees reflect actual resource consumption, not just transaction count.

Dynamic Adjustment Mechanism

Midnight’s pricing system adapts using both current and historical network data.

The congestion rate evolves according to:

Previous congestion rate

Current block utilization

Target utilization level

Conceptually, this is expressed as:

Congestion Rateₙ = Congestion Rateₙ₋₁ × (1 + Fee Adjustment Factor)

This approach enables the system to:

Respond to usage trends, not just momentary spikes

Maintain smoother fee transitions over time

Avoid sudden or extreme cost fluctuations

Block Utilization Target: Why 50% Matters

Midnight targets a 50% block utilization rate, a deliberate design decision balancing performance and decentralization.

Why not 100%?

Running at full capacity:

Leaves no buffer for demand spikes

Leads to consistently high fees

Causes delays during peak usage

Why not too low?

Low utilization:

Reduces economic incentives

Slows network activity

Why 50% is optimal:

Maintains spare capacity for sudden demand increases

Stabilizes fees over time

Ensures smoother transaction processing

Block Size and Decentralization Trade-Off

Although block size can technically be increased, doing so introduces risks:

Larger blocks require more:

Processing power

Storage capacity

This can lead to centralization, where only powerful nodes can participate

Decentralization is critical because:

It ensures network security

It preserves system integrity

It prevents control concentration

Midnight’s design prioritizes sustainable scalability over raw throughput.

Economic Perspective: Managing Scarcity

Block space is fundamentally a scarce resource, limited by:

Block size

Time intervals between blocks

Midnight manages this scarcity strategically by:

Controlling block utilization

Dynamically pricing transactions

Preventing resource saturation

This ensures:

Efficient allocation of block space

Fair pricing based on demand

Long-term network sustainability

Conclusion

Midnight’s transaction model represents a balanced, adaptive approach to blockchain economics. By combining:

A fixed minimum fee

A dynamic congestion rate

Resource-based transaction weighting

the system achieves:

Resistance to spam and attacks

Stability in transaction costs

Efficient handling of demand fluctuations

Most importantly, the 50% utilization target ensures the network remains responsive, decentralized, and economically viable — even under changing conditions. #night @MidnightNetwork $NIGHT

NIGHT
NIGHT
0.05129
+12.70%