Utils class has to be initialized to call common utility functions.
const lstParams: LstParams = { lstInfo: "0xYourlstInfo", lstCointype: "0xabc72982e40348d069bb1ff701e634c117bb5f741f44dff91e472d3b014abcde::lstcoin::LSTCOIN", }; const utils = new Utils(lstParams); * const suiStaked = await utils.fetchTotalSuiStaked(false); Copy
const lstParams: LstParams = { lstInfo: "0xYourlstInfo", lstCointype: "0xabc72982e40348d069bb1ff701e634c117bb5f741f44dff91e472d3b014abcde::lstcoin::LSTCOIN", }; const utils = new Utils(lstParams); * const suiStaked = await utils.fetchTotalSuiStaked(false);
set to true if no internal caching is desired
total amount of sui staked against your lst
FeeConfig information on the fee setting of your lst
LiquidStakingInfo
amount of lst in circulation
returns ratio of sui to stsui
Utils class has to be initialized to call common utility functions.
Example