1.0.1 • Published 1 year ago

@hypha-dao/hypha-token-sales-util v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Hypha Token Sales Util

How to use it

  1. Import the script
<script src="./demo/util/umd.js"></script>
  1. Instantiate the HyphaTokensSaleUtil class
const apiUrl = "http://api-tokensale.hypha.earth";
const rpcUrl = "https://telos.greymass.com";

const hyphaTokensSaleUtil = new HyphaTokensSaleUtil(rpcUrl, apiUrl);
  1. Initialise and retrieve price info
const { usdPerHypha, hyphaRemainingThisRound, currentRound } = await hyphaTokensSaleUtil.init();

How to run demo