Miss any of our Open RFC calls?Watch the recordings here! »

@oikos/oikos-js

0.6.4 • Public • Published

OikosJs library

npm version Twitter Follow

The Oikos-JS library provides a simple pre-packaged API to communicate with Oikos on Tron. You can use it to contribute to DeFi's growing synthetic asset ecosystem.

This is particularly useful for hackathon teams to quickly npm install @oikos/oikos-js and start building in just a few minutes.

Install via npm

npm install @oikos/oikos-js

Example for getting the total sUSD stablecoin in circulation

const { SynthetixJs } = require('@oikos/oikos-js');
const snxjs = new SynthetixJs();
(async function() {
  const totalSUSD = await snxjs.sUSD.totalSupply();
  const totalSUSDSupply = snxjs.utils.formatEther(totalSUSD);
  console.log('sUSDTotalSupply', totalSUSDSupply);
})();

Got any questions?

support@oikos.cash

Keywords

none

Install

npm i @oikos/oikos-js

DownloadsWeekly Downloads

42

Version

0.6.4

License

MIT

Unpacked Size

37.8 MB

Total Files

420

Last publish

Collaborators

  • avatar
  • avatar