@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    22

Package Sidebar

Install

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

Weekly Downloads

21

Version

1.0.1

License

ISC

Unpacked Size

8.93 MB

Total Files

10

Last publish

Collaborators

  • n13-hypha
  • alex-dj