@lightprotocol/compressed-token - v0.22.1-alpha.2
    Preparing search index...

    Function compressSplTokenAccount

    • Compress SPL tokens into compressed token format

      Parameters

      • rpc: Rpc

        Rpc connection to use

      • payer: Signer

        Fee payer

      • mint: PublicKey

        SPL Mint address

      • owner: Signer

        Owner of the token account

      • tokenAccount: PublicKey

        Token account to compress

      • OptionalremainingAmount: BN

        Optional: amount to leave in token account. Default: 0

      • OptionaloutputStateTreeInfo: TreeInfo

        Optional: State tree account that the compressed account into

      • OptionaltokenPoolInfo: TokenPoolInfo

        Optional: Token pool info.

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      Returns Promise<string>

      Signature of the confirmed transaction