aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2022-04-25 21:23:49 +0300
committerYigit Sever2022-04-25 21:23:49 +0300
commitf5a6ca42e1cb07654d2e5e251b740d25671e1fb0 (patch)
tree87b5e947fedae5a4fc18979c79b4c96a2bc580e4
parentde2c87c21f2846268501e8cdf1782ffb7a5b3909 (diff)
downloadgradecoin-site-f5a6ca42e1cb07654d2e5e251b740d25671e1fb0.tar.gz
gradecoin-site-f5a6ca42e1cb07654d2e5e251b740d25671e1fb0.tar.bz2
gradecoin-site-f5a6ca42e1cb07654d2e5e251b740d25671e1fb0.zip
Document gas fees
-rw-r--r--content/misc_docs.md1
-rw-r--r--content/transaction_docs.md1
2 files changed, 2 insertions, 0 deletions
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
24- `hash_zeros`: Determines the number of zero hexadecimal characters a correct hash should start with. 24- `hash_zeros`: Determines the number of zero hexadecimal characters a correct hash should start with.
25- `register_bonus`: Initial registration bonus. This will determine your balance after registration. 25- `register_bonus`: Initial registration bonus. This will determine your balance after registration.
26- `block_reward`: Coinbase reward. When a block is proposed successfully and added to ledger, the proposer will gain this amount of coins. 26- `block_reward`: Coinbase reward. When a block is proposed successfully and added to ledger, the proposer will gain this amount of coins.
27- `tx_gas_fee`: New transaction proposals must pay this amount
27- `tx_upper_limit`: Upper limit for transaction amount. 28- `tx_upper_limit`: Upper limit for transaction amount.
28- `tx_lower_limit`: Lower limit for transaction amount. 29- `tx_lower_limit`: Lower limit for transaction amount.
29- `tx_traffic_reward`: Transaction traffic reward, used to incentivize users to make transactions. When an account sends money, it will receive this reward. 30- `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:
40- 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. 40- 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.
41 - The amount of Gradecoin that will be generated is given by `tx_traffic_reward` field of [`/config`](/config). 41 - The amount of Gradecoin that will be generated is given by `tx_traffic_reward` field of [`/config`](/config).
42 - 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. 42 - 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.
43- 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.
43- Don't worry if your transaction goes unaccepted! Transactions do not disappear until they are committed into the ledger with a block. 44- Don't worry if your transaction goes unaccepted! Transactions do not disappear until they are committed into the ledger with a block.
44- Every transaction has a unique ID generated using the `source`, `target` and `timestamp` fields. 45- Every transaction has a unique ID generated using the `source`, `target` and `timestamp` fields.
45- Transactions have a lower and upper amount limit. 46- Transactions have a lower and upper amount limit.