@hypha-dao/hypha-token-sales-util
v1.0.1
Published
Util for retrieving information about Hypha token sale from smart contracts and api
Downloads
57
Readme
Hypha Token Sales Util
How to use it
- Import the script
<script src="./demo/util/umd.js"></script>
- Instantiate the HyphaTokensSaleUtil class
const apiUrl = "http://api-tokensale.hypha.earth";
const rpcUrl = "https://telos.greymass.com";
const hyphaTokensSaleUtil = new HyphaTokensSaleUtil(rpcUrl, apiUrl);
- Initialise and retrieve price info
const { usdPerHypha, hyphaRemainingThisRound, currentRound } = await hyphaTokensSaleUtil.init();
How to run demo
npm run demo
- visit http://localhost:5000