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

    Function approveAndMintTo

    • Mint compressed tokens to a solana address from an external mint authority

      Parameters

      • rpc: Rpc

        Rpc to use

      • payer: Signer

        Fee payer

      • mint: PublicKey

        SPL Mint address

      • toPubkey: PublicKey

        Address of the account to mint to

      • authority: Signer

        Minting authority

      • amount: number | BN

        Amount to mint

      • OptionaloutputStateTreeInfo: TreeInfo

        Optional: State tree account that the compressed tokens should be inserted into. Defaults to a shared state tree account.

      • OptionaltokenPoolInfo: TokenPoolInfo

        Optional: Token pool info.

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      Returns Promise<string>

      Signature of the confirmed transaction