@ampleforthorg/sdk
v1.0.33
Published
Typescript SDK for the Ampleforth Protocol
Downloads
138
Maintainers
Readme
@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