Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 578 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 578 Bytes

stake-pool-names

Json files to map pool IDs and names for different Jörmungandr networks.

If you want to pull the JSON to your website, you can use NODEjs with axios. Code would look something like this:

import axios from 'axios'

let pathToRawFile = 'https://raw.githubusercontent.com/standardize-network/stake-pool-names/master/stake-pools-official-nightly.json';

function getPoolNames() {
  let poolNames = await axios.get(pathToRawFile, {
    headers: {
      'Content-Type': 'application/json'
    }
  });
  console.log(poolNames.data);
};

getPoolNames();