@ampleforthorg/sdk

Typescript SDK for the Ampleforth Protocol

Usage no npm install needed!

<script type="module">
  import ampleforthorgSdk from 'https://cdn.skypack.dev/@ampleforthorg/sdk';
</script>

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())