@getsafle/token-controller

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @getsafle/token-controller

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

5.59 kB

Total Files

9

Last publish

Collaborators

  • subhanshugupta
  • apoorv31
  • shubham.3008
  • sidth