Skip to main content

Resource Limits & Fees

Current Inclusion Fees

For the past three hours, inclusion fee statistics for smart contract transactions on the Mainnet network are:

Loading...

Resource Limits

note

Resource limitations and fees only apply to smart contract transactions. Read more about the inner workings of fees on Stellar in the Fees section.

Network SettingValue
Soroban txn per ledger100
Max CPU instructions per txn100 million
Memory limit per txn40 MB
Ledger key size (contract storage key)250 bytes
Ledger entry size (including Wasm entries) per txn128 KiB
Read/Write ledger entries per txn40 read; 25 write
Read/Write bytes per txn200 KB read; 129 KiB write
Transaction size129 KiB
Persistent entry minimal/initial lifetime120 days
Temporary entry minimal/initial lifetime1 day
Max ledger entry expiration bump6 months
Events+return value size bytes8 KB
Max write bytes per ledger140 KiB
Max txs size in bytes per ledger130 KiB
Eviction scan size500 KB

Resource Fees

Network SettingCost (stroops)
10,000 instructions25 (250,000/max tx)
Read 1 ledger entry6,250 (250,000/max tx)
Write 1 ledger entry10,000 (250,000/max tx)
Read 1KB from ledger1,786 (250,000/max tx)
1KB of transaction size (bandwidth)1,624 (113,642/max tx)
1KB of transaction size (history)16,235 (1,136,418/max tx)
1KB of Events/return value10,000 (80,000/max tx)
Write 1KB to ledger~11,800 (826'000/max tx)
30 days of rent for 1 KB of persistent storage0.29 XLM
30 days of rent for 1 KB of temporary storage0.145 XLM

Note that the write fee normally fluctuates a bit (within 100 stroops/KB). However, if the ledger grows too quickly, the write fee will grow in a linear fashion with a steep slope.

The ledger rent cost ('Write 1KB' entries in the table) is based on the write fee, rent period and some coefficient.