# Stellar Fees

Stellar transaction fees are paid in **stroops** (1 XLM = 10,000,000 stroops). Fordefi computes these fees automatically for every transaction; they are not user-configurable.

The fee calculation is based on whether the transaction targets the classic protocol or the Soroban smart-contract environment:

- **Classic Operations**: Transactions such as XLM transfers, trustline changes, and claimable balances pay only an **inclusion fee**. Fordefi sets this to the network minimum of 100 stroops per operation.
**Total Fee** = `100 stroops` × `number of operations`
- **Soroban Operations**: Smart-contract invocations (including Soroban token transfers) pay both an **inclusion fee** and a **resource fee**. The resource fee covers CPU instructions, ledger entry reads/writes, and transaction size. Fordefi simulates the transaction to determine the resource fee and adds a safety buffer.
◦ **Total Fee** = `inclusion_fee` + `resource_fee_with_buffer`