Transaction costs in the TON Network
The TON (The Open Network) blockchain, like any public network, must be carefully protected from potential attacks. One of the key ways TON…
Transaction costs in the TON Network
The TON (The Open Network) blockchain, like any public network, must be carefully protected from potential attacks. One of the key ways TON achieves this is through a system of fees that users and developers must understand.
Why Fees Matter
Since TON is a public network, it’s vulnerable to attacks from anyone with bad intentions. Fees help safeguard the network by ensuring that any significant costs are accounted for, making it harder for malicious actors to disrupt the system.
Types of Fees in TON
There are three main types of fees in TON:
- Gas Cost
- What It Is: Gas is the fuel that powers operations in TON’s smart contracts. Every operation in your code costs a certain amount of gas, which helps ensure that more complex operations are appropriately priced.
- Why It’s Important: TON’s design allows it to scale without users having to compete on fees, which means the network can handle increased demand without raising costs for everyone.
2. Rent
- What It Is: Rent is the fee for storing data on the blockchain. It’s calculated based on how much data your contract stores and how long it’s stored.
- Why It’s Important: If you don’t use your wallet for a while, you might notice that the first transaction after some time costs more. That’s because rent accumulates over time, and you’re charged when you make a new transaction.
3. Message Fees
- What It Is: These fees are incurred when a contract sends messages to other contracts or updates its state.
- Why It’s Important: Message fees are usually low because they involve transmitting small amounts of data between contracts.
Designing Smart Contracts with Fees in Mind
When creating smart contracts on TON, it’s important to consider how fees will be managed:
- Gas Costs: You need to decide who will cover the gas costs — the sender or the contract. A good approach is to design the contract so that the costs are predictable, allowing the sender to attach enough coins to cover them.
- Rent: Design your contracts to avoid running out of gas or rent. Aim for a steady cost in terms of storage and computation to make these fees more predictable.
Key Takeaways
- TON uses fees to protect the network from attacks and ensure that operations are fairly priced.
- Gas costs, rent, and message fees are the main types of fees to understand.
- When designing smart contracts, plan for these fees to avoid unexpected costs.
메타데이터
- post_id
- 17f85ae9de9f
- slug
- transaction-costs-in-the-ton-network-17f85ae9de9f
- url
- https://medium.com/@mateshubham4/transaction-costs-in-the-ton-network-17f85ae9de9f
- canonical_url
- https://medium.com/@mateshubham4/transaction-costs-in-the-ton-network-17f85ae9de9f
- author_url
- https://medium.com/@mateshubham4
- status
- ok
- fetched_at
- 2026-08-31 20:56:41