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

    Function mintTo

    • Mint compressed tokens to a solana address

      Parameters

      • rpc: Rpc

        Rpc connection to use

      • payer: Signer

        Fee payer

      • mint: PublicKey

        SPL Mint address

      • toPubkey: PublicKey | PublicKey[]

        Address of the account to mint to. Can be an array of addresses if the amount is an array of amounts.

      • authority: Signer

        Mint authority

      • amount: number | BN | number[] | BN[]

        Amount to mint. Pass an array of amounts if the toPubkey is an array of addresses.

      • OptionaloutputStateTreeInfo: TreeInfo

        Optional: State tree account that the compressed tokens should be part of. Defaults to the default state tree account.

      • OptionaltokenPoolInfo: TokenPoolInfo

        Optional: Token pool information

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      Returns Promise<string>

      Signature of the confirmed transaction