From f5a6ca42e1cb07654d2e5e251b740d25671e1fb0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 25 Apr 2022 21:23:49 +0300 Subject: Document gas fees --- content/misc_docs.md | 1 + content/transaction_docs.md | 1 + 2 files changed, 2 insertions(+) diff --git a/content/misc_docs.md b/content/misc_docs.md index 7d7b73d..a318251 100644 --- a/content/misc_docs.md +++ b/content/misc_docs.md @@ -24,6 +24,7 @@ The [/config](/config) endpoint will return the current parameters that Gradecoi - `hash_zeros`: Determines the number of zero hexadecimal characters a correct hash should start with. - `register_bonus`: Initial registration bonus. This will determine your balance after registration. - `block_reward`: Coinbase reward. When a block is proposed successfully and added to ledger, the proposer will gain this amount of coins. +- `tx_gas_fee`: New transaction proposals must pay this amount - `tx_upper_limit`: Upper limit for transaction amount. - `tx_lower_limit`: Lower limit for transaction amount. - `tx_traffic_reward`: Transaction traffic reward, used to incentivize users to make transactions. When an account sends money, it will receive this reward. diff --git a/content/transaction_docs.md b/content/transaction_docs.md index c521afd..3b4c2a1 100644 --- a/content/transaction_docs.md +++ b/content/transaction_docs.md @@ -40,6 +40,7 @@ Here's an example demostrating how your JSON string should look like: - Transactions generate traffic which is something we desperately need in Gradecoin, so for every transaction you send, some Gradecoin will be generated out of thin air and will appear on your account. - The amount of Gradecoin that will be generated is given by `tx_traffic_reward` field of [`/config`](/config). - For example, if `tx_traffic_reward` is 1 and you send 2 coins, only 1 coin will be deduced from your account since you will be given 1 coin for generating traffic. The target will receive 2 coins. +- On the other hand, transactions have to be processed which requires valuable CPU power. So, an amount named `tx_gas_fee` of [`/config`](/config) is deducted from the user on every transaction proposal to cover the cost. - Don't worry if your transaction goes unaccepted! Transactions do not disappear until they are committed into the ledger with a block. - Every transaction has a unique ID generated using the `source`, `target` and `timestamp` fields. - Transactions have a lower and upper amount limit. -- cgit v1.2.3-61-g4310