api view modification and circulating supply prefix change

This commit is contained in:
shunmugam 2019-09-16 14:25:09 +05:30
parent 4663bb25bf
commit 09c892df7e
5 changed files with 22 additions and 15 deletions

View File

@ -129,7 +129,7 @@ try {
{ {
let result; //500 let result; //500
if(option == "circulating") if(option == "circulating")
result= blockDetails.coin_existence; result= blockDetails.coin_existence * 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")

View File

@ -101,7 +101,8 @@
"getblockhash" : "Nimmt einen Höhenparameter und gibt den entsprechenden Block-Hash zurück", "getblockhash" : "Nimmt einen Höhenparameter und gibt den entsprechenden Block-Hash zurück",
"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"
}, },
"commit-id-view": { "commit-id-view": {
"output-commit":"Output Commit", "output-commit":"Output Commit",

View File

@ -101,7 +101,8 @@
"getblockhash" : " parameter and returns corresponding block hash.", "getblockhash" : " parameter and returns corresponding block hash.",
"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"
}, },
"commit-id-view": { "commit-id-view": {
"output-commit":"Output Commit", "output-commit":"Output Commit",

View File

@ -1,5 +1,5 @@
<div class="view_content py-4"> <div class="view_content py-4">
<div class="container"> <div class="container">
<h3 class="txt_primary">{{'api-view.query-api' | translate}}</h3> <h3 class="txt_primary">{{'api-view.query-api' | translate}}</h3>
<p class="txt_secondary"> <p class="txt_secondary">
@ -8,12 +8,12 @@
</p> </p>
<h4 class="txt_primary">{{'api-view.real-time-simple-query' | translate}}</h4> <h4 class="txt_primary">{{'api-view.real-time-simple-query' | translate}}</h4>
<ul class="txt_secondary"> <ul class="txt_secondary">
<li><b><a target="_blank" href="https://explorer2.epic.tech/api?q=circulating" >circulating</a></b>: {{'api-view.circulating' | translate}} </li> <li><b><a target="_blank" href="./api?q=circulating" >circulating</a></b>: {{'api-view.circulating' | translate}} </li>
<li><b><a target="_blank" href="https://explorer2.epic.tech/api?q=getblockcount"> getblockcount </a></b>: {{'api-view.getblockcount' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getblockcount"> getblockcount </a></b>: {{'api-view.getblockcount' | translate}}</li>
<li><b><a target="_blank" href="https://explorer2.epic.tech/api?q=getdifficulty-randomx">getdifficulty-randomx</a></b>: {{'api-view.getdifficulty-randomx' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getdifficulty-randomx">getdifficulty-randomx</a></b>: {{'api-view.getdifficulty-randomx' | translate}}</li>
<li><b><a target="_blank" href="https://explorer2.epic.tech/api?q=getdifficulty-progpow">getdifficulty-progpow</a></b>: {{'api-view.getdifficulty-progpow' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getdifficulty-progpow">getdifficulty-progpow</a></b>: {{'api-view.getdifficulty-progpow' | translate}}</li>
<li><b><a target="_blank" href="https://explorer2.epic.tech/api?q=getdifficulty-cuckoo">getdifficulty-cuckoo</a></b>: {{'api-view.getdifficulty-cuckoo' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getdifficulty-cuckoo">getdifficulty-cuckoo</a></b>: {{'api-view.getdifficulty-cuckoo' | translate}}</li>
<li><b><a target="_blank" href="https://explorer2.epic.tech/api?q=totalcoins">totalcoins</a></b>: {{'api-view.totalcoins' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=totalcoins">totalcoins</a></b>: {{'api-view.totalcoins' | translate}}</li>
</ul> </ul>
<h4 class="txt_primary">{{'api-view.Block-Queries' | translate}}</h4> <h4 class="txt_primary">{{'api-view.Block-Queries' | translate}}</h4>
@ -21,9 +21,14 @@
{{'api-view.block-query-text' | translate}} {{'api-view.block-query-text' | translate}}
</p> </p>
<ul class="txt_secondary"> <ul class="txt_secondary">
<li><b>getblockhash</b>: takes a <code>height</code> {{'api-view.getblockhash' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getblockhash&height=1" >getblockhash</a></b>: takes a <code>height</code> {{'api-view.getblockhash' | translate}}</li>
<li><b>getblockheight</b>: takes a <code>hash</code> {{'api-view.getblockheight' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getblockheight&hash=3933f075332670a661d2271218969770c8396a2853777d5912c9ad4797e9c7e6" >getblockheight</a></b>: takes a <code>hash</code> {{'api-view.getblockheight' | translate}}</li>
<li><b>getblocktime</b>: takes a <code>height</code> {{'api-view.getblocktime' | translate}}</li> <li><b><a target="_blank" href="https://explorer.epic.tech/api?q=getblocktime&height=2" >getblocktime</a></b>: takes a <code>height</code> {{'api-view.getblocktime' | translate}}</li>
</ul> </ul>
</div> </div>
<div class="container">
<h4 class="txt_primary">{{'api-view.Note' | translate}}</h4>
<span>
If you require another API, please request it by sending an email to <a href = "mailto:xxx@epic.tech?subject = API-Request&body = Message"> xxx@epic.tech </a></span>
</div>
</div> </div>

View File

@ -639,7 +639,7 @@ export class GraphListComponent implements OnInit {
xaxis: { xaxis: {
tickangle: -45, tickangle: -45,
tickformat: tickformat, tickformat: tickformat,
fixedrange: true, // fixedrange: true,
rangemode: 'nonnegative', rangemode: 'nonnegative',
domain: [domain_start, 0.9], domain: [domain_start, 0.9],
// showgrid: true // showgrid: true
@ -1380,7 +1380,7 @@ export class GraphListComponent implements OnInit {
xaxis: { xaxis: {
tickangle: -40, tickangle: -40,
tickformat: tickformat, tickformat: tickformat,
fixedrange: true, // fixedrange: true,
domain: [domain_start, 0.9] domain: [domain_start, 0.9]
// showgrid: true // showgrid: true
}, },