Update grid api

This commit is contained in:
samaradel
2022-06-29 12:01:55 +02:00
parent eb7e933090
commit 455ddcbd62
3 changed files with 4 additions and 4 deletions

View File

@@ -134,7 +134,7 @@ export default {
// "https://explorer.threefold.io/api/farms?network=all"
// );
const results = await axios.get(
"https://explorer.threefold.io/api/stats"
"https://explorer.threefold.io/api/stats?grid=grid3&network=all"
);
// let farms = getFarms.data.length;
let nodes = results.data.onlinenodes;

View File

@@ -213,10 +213,10 @@ export default {
async mounted() {
try {
const getFarms = await axios.get(
"https://explorer.threefold.io/api/farms?grid=all&network=all"
"https://explorer.threefold.io/api/farms?grid=grid3&network=all"
);
const results = await axios.get(
"https://explorer.threefold.io/api/stats"
"https://explorer.threefold.io/api/stats?grid=grid3&network=all"
);
let farms = getFarms.data.length;
let hru = (results.data.hru / 1000).toFixed();

View File

@@ -238,7 +238,7 @@ export default {
// "https://explorer.threefold.io/api/farms?network=all"
// );
const results = await axios.get(
"https://explorer.threefold.io/api/stats"
"https://explorer.threefold.io/api/stats?grid=grid3&network=all"
);
// let farms = getFarms.data.length;
let nodes = results.data.onlinenodes;