Skip to content

StackedSats/stacksCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stacksCalculator

Installation

npm i stxcalculator

Usage

Enter your coinmarketcap api key in .env if in devevlopment mode

const obj = new Calculator();
 obj.BTCTokenPrice(1000);
 obj.STXTokenPrice(10);
 obj.STXTransferFee(30);
 obj.setUserHolding(100000);
 obj.BTCTransferFee(10);
 console.log(obj.annualEarning());
 
 
const Calculator = require('stackcalculator');
const calculator = new Calculator(" Your CoinMarketCap Api Key");
await calculator.init();

Get Total Supply

calculate.annualEarning();
calculate.annualEarning();

Development Mode

- npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published