@hypha-dao/hypha-token-sales-util

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @hypha-dao/hypha-token-sales-util

Weekly Downloads

8

Version

1.0.1

License

ISC

Unpacked Size

8.93 MB

Total Files

10

Last publish

Collaborators

  • n13-hypha
  • alex-dj