LST class has to be initialized to call key lst functions like mint, redeem and refresh.

const lst = new LST({
lstInfo:
"0xc1d996e18df1cc82a8c014c6d8290048ed30dafb34cd6b43ab9fde77f7eabcde",
lstCointype:
"0x34732358cebfdf4ee29534f906cbb36a78dfaaa256e7d9ddb7e789e2ddabcse::demo::DEMO",
});
* const txb = await lst.mint("100000000", address);

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Parameters

    • suiAmount: string

      amount of sui to stake

    • address: string

      address where the minted stsui will be transferred.

    Returns Promise<undefined | Transaction>

    transaction block

  • Parameters

    • stSuiAmount: string

      amount of stsui to unstake

    • address: string

      address where the redemmed sui will be transferred.

    Returns Promise<undefined | Transaction>

    transaction block

  • Multipurpose onchain function that ideally has to be called right before and after change of epoch. Used to stake all the pending sui to the updated set of validators and convert all the staked sui to fungible sui when eligible.

    Returns Promise<undefined | Transaction>

    transaction block