@ampleforthorg/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.32 • Public • Published

@ampleforth/sdk

A collection of libraries for dAPPs to interact with the Ampleforth protocol on ethereum.

Check out the examples.

Getting started

yarn add @ampleforthorg/sdk

const {getAMPLToken, getTokenBalance} = require("@ampleforthorg/sdk")

const ampl = await getAMPLToken()
console.log(ampl.totalSupply.toString())

const b = await getTokenBalance(ampl, '0x1e6bb68acec8fefbd87d192be09bb274170a0548')
console.log(b.balance.toString())

Publish

yarn build
npm publish --access public

/@ampleforthorg/sdk/

    Package Sidebar

    Install

    npm i @ampleforthorg/sdk

    Weekly Downloads

    2

    Version

    1.0.32

    License

    GPL-3.0-or-later

    Unpacked Size

    588 kB

    Total Files

    115

    Last publish

    Collaborators

    • aalavandhan