@airswap/metadata

Token Metadata Tools for AirSwap Developers

Usage no npm install needed!

<script type="module">
  import airswapMetadata from 'https://cdn.skypack.dev/@airswap/metadata';
</script>

README

Metadata

Token Metadata Tools for AirSwap Developers

Discord License CircleCI Twitter Follow

Resources

Usage

Add the package to your project:

yarn add @airswap/metadata

Import into your application:

import TokenMetadata from '@airswap/metadata';
import * as ethers from 'ethers';

const provider = ethers.getDefaultProvider('mainnet');
const metadata = new TokenMetadata(provider);
const tokens = await metadata.fetchKnownTokens();

Commands

Command Description
yarn Install dependencies
yarn clean Delete the contract build folder
yarn compile Compile all contracts to build folder