1.0.4 • Published 3 years ago
@getsafle/token-controller v1.0.4
Safle Token Controller
Safle Token Controller SDK
Installation
To install this SDK,
npm install --save @getsafle/token-controllerInitialization
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 tocontractAddress- Token Contract Address
Supported chains
ethereumpolygonbsc