Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Add transaction fees
Browse files Browse the repository at this point in the history
  • Loading branch information
urani-engineering-helper authored Mar 27, 2024
1 parent 913f5f2 commit 6a470f4
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions chapters/1_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@ Everything else is built around these ideas
* The [Solana Program Library's Token program](https://github.com/solana-labs/solana-program-library/tree/master/token) shows how instruction data can be encoded efficiently for fixed-sized types.
* Since a transaction can contain instructions in any order, programs should be hardened to safely handle any possible instructions sequence. For example, to deinitizlize an account, the program shoudl explicitly set the account's data to zero.

<br>

#### Transaction Fees

<br>

* Transaction fees are paid in "Lamports", the smallest units of SOL (0.000000001 SOL).
* The fee is paid to the validators who process the transaction.
Transaction fees are calculated based on two main parts:
- a statically set base fee per signature
- the computational resources used during the transaction.

<br>

Expand All @@ -78,19 +88,6 @@ Programs are special types of accounts that are marked as "executable".
* The instructions's program `id` specifies which program will process the instructions.
* Programs on Solana don't store data/state: these are stored in accounts.

<br>

---

### Lamports

<br>

* Transaction fees are paid in "Lamports", the smallest units of SOL (0.000000001 SOL).
- The fee is paid to the validators who process the transaction.
- Transaction fees are calculated based on two main parts: 1) a statically set base fee per signature, and 2) the computational resources used during the transaction.


<br>

---
Expand Down Expand Up @@ -152,4 +149,6 @@ Programs are special types of accounts that are marked as "executable".
<br>

* [Solana Foundation dev documentation](https://solana.com/docs#start-learning)
* [Solana Transactions](https://solana.com/docs/core/transactions)
* [Solana Programs](https://solana.com/docs/core/programs#native-programs)
* [Terminology](https://solana.com/docs/terminology#instruction)

0 comments on commit 6a470f4

Please sign in to comment.