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);

Constructors

Properties

Methods

  • Parameters

    • ignoreCache: boolean

      set to true if no internal caching is desired

    Returns Promise<undefined | string>

    total amount of sui staked against your lst

  • Parameters

    • ignoreCache: boolean

      set to true if no internal caching is desired

    Returns Promise<undefined | FeeConfig>

    FeeConfig information on the fee setting of your lst

  • Parameters

    • ignoreCache: boolean

      set to true if no internal caching is desired

    Returns Promise<undefined | string>

    amount of lst in circulation

  • Parameters

    • ignoreCache: boolean

      set to true if no internal caching is desired

    Returns Promise<undefined | string>

    returns ratio of sui to stsui

MMNEPVFCICPMFPCPTTAAATR