New API for reward
This commit is contained in:
parent
9888954ccb
commit
592f04d6f7
@ -130,6 +130,8 @@ try {
|
|||||||
let result; //500
|
let result; //500
|
||||||
if(option == "circulating")
|
if(option == "circulating")
|
||||||
result= blockDetails.coin_existence * 100000000;
|
result= blockDetails.coin_existence * 100000000;
|
||||||
|
if(option == "reward")
|
||||||
|
result= blockDetails.currentReward * 100000000;
|
||||||
else if(option == "getblockcount")
|
else if(option == "getblockcount")
|
||||||
result= blockDetails.block_height;
|
result= blockDetails.block_height;
|
||||||
else if(option == "getdifficulty-randomx")
|
else if(option == "getdifficulty-randomx")
|
||||||
|
@ -102,7 +102,8 @@
|
|||||||
"getblockheight" : "Nimmt einen Hash-Parameter und gibt die entsprechende Blockhöhe zurück.",
|
"getblockheight" : "Nimmt einen Hash-Parameter und gibt die entsprechende Blockhöhe zurück.",
|
||||||
"getblocktime" : "Nimmt einen Höhenparameter und gibt die unixtime des Blocks zurück.",
|
"getblocktime" : "Nimmt einen Höhenparameter und gibt die unixtime des Blocks zurück.",
|
||||||
"takes":"nimmt ein",
|
"takes":"nimmt ein",
|
||||||
"Note" : "Hinweis"
|
"Note" : "Hinweis",
|
||||||
|
"reward" : "Gibt die aktuelle Blockbelohnung zurück"
|
||||||
},
|
},
|
||||||
"commit-id-view": {
|
"commit-id-view": {
|
||||||
"output-commit":"Output Commit",
|
"output-commit":"Output Commit",
|
||||||
|
@ -102,7 +102,8 @@
|
|||||||
"getblockheight" : " parameter and returns corresponding block height.",
|
"getblockheight" : " parameter and returns corresponding block height.",
|
||||||
"getblocktime" : " parameter and returns unixtime of the block.",
|
"getblocktime" : " parameter and returns unixtime of the block.",
|
||||||
"takes" : "takes a",
|
"takes" : "takes a",
|
||||||
"Note" : "Note"
|
"Note" : "Note",
|
||||||
|
"reward" : "returns current block reward"
|
||||||
},
|
},
|
||||||
"commit-id-view": {
|
"commit-id-view": {
|
||||||
"output-commit":"Output Commit",
|
"output-commit":"Output Commit",
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<li><b><a target="_blank" href="./api?q=getdifficulty-progpow">getdifficulty-progpow</a></b>: {{'api-view.getdifficulty-progpow' | translate}}</li>
|
<li><b><a target="_blank" href="./api?q=getdifficulty-progpow">getdifficulty-progpow</a></b>: {{'api-view.getdifficulty-progpow' | translate}}</li>
|
||||||
<li><b><a target="_blank" href="./api?q=getdifficulty-cuckoo">getdifficulty-cuckoo</a></b>: {{'api-view.getdifficulty-cuckoo' | translate}}</li>
|
<li><b><a target="_blank" href="./api?q=getdifficulty-cuckoo">getdifficulty-cuckoo</a></b>: {{'api-view.getdifficulty-cuckoo' | translate}}</li>
|
||||||
<li><b><a target="_blank" href="./api?q=totalcoins">totalcoins</a></b>: {{'api-view.totalcoins' | translate}}</li>
|
<li><b><a target="_blank" href="./api?q=totalcoins">totalcoins</a></b>: {{'api-view.totalcoins' | translate}}</li>
|
||||||
|
<li><b><a target="_blank" href="./api?q=reward">reward</a></b>: {{'api-view.reward' | translate}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="txt_primary">{{'api-view.Block-Queries' | translate}}</h4>
|
<h4 class="txt_primary">{{'api-view.Block-Queries' | translate}}</h4>
|
||||||
|
Loading…
Reference in New Issue
Block a user