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