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

    Function approve

    • Approve a delegate to spend tokens

      Parameters

      • rpc: Rpc

        Rpc to use

      • payer: Signer

        Fee payer

      • mint: PublicKey

        SPL Mint address

      • amount: number | BN

        Number of tokens to delegate

      • owner: Signer

        Owner of the SPL token account.

      • delegate: PublicKey

        Address of the delegate

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      Returns Promise<string>

      Signature of the confirmed transaction