@oikos/oikos-js

0.6.26 • 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.263latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.263
0.6.251
0.6.241
0.6.231
0.6.201
0.6.191
0.6.181
0.6.171
0.6.161
0.6.151
0.6.141
0.6.131
0.6.121
0.6.111
0.6.101
0.6.91
0.6.81
0.6.71
0.6.61
0.6.51
0.6.41
0.6.31
0.6.21
0.6.11
0.6.01
0.5.01
0.4.21
0.4.11
0.4.01
0.3.01
0.2.11
0.2.01
0.1.11
0.1.01
0.0.11

Package Sidebar

Install

npm i @oikos/oikos-js

Weekly Downloads

37

Version

0.6.26

License

MIT

Unpacked Size

37.9 MB

Total Files

420

Last publish

Collaborators

  • kevholder
  • oikoscash