1.0.4 • Published 3 years ago

@getsafle/token-controller v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Safle Token Controller

Safle Token Controller SDK

Installation

To install this SDK,

npm install --save @getsafle/token-controller

Initialization

Initialize the constructor,

const safleTokenController = require('@getsafle/token-controller');

const tokenController = new safleTokenController.Erc20Controller();

Get Token Details

This function returns the complete details about a particular token that coingecko provides

const tokenDetails = await tokenController.getTokenDetails({ chain, contractAddress });
  • chain - The chain where the token is deployed to
  • contractAddress - Token Contract Address

Supported chains

  • ethereum
  • polygon
  • bsc
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago