Function approveChecked

  • Approve a delegate to transfer up to a maximum number of tokens from an account, asserting the token mint and decimals

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • mint: PublicKey
    • account: PublicKey

      Address of the account

    • delegate: PublicKey

      Account authorized to perform a transfer tokens from the source account

    • owner: PublicKey | Signer

      Owner of the source account

    • amount: number | bigint

      Maximum number of tokens the delegate may transfer

    • decimals: number

      Number of decimals in approve amount

    • multiSigners: Signer[] = []

      Signing accounts if owner is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc