@getsafle/token-controller
v1.0.4
Published
Safle Token Controller SDK
Downloads
2
Keywords
Readme
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 tocontractAddress
- Token Contract Address
Supported chains
ethereum
polygon
bsc