Function createApproveInstruction

  • Construct an Approve instruction

    Parameters

    • account: PublicKey

      Account to set the delegate for

    • delegate: PublicKey

      Account authorized to transfer tokens from the account

    • owner: PublicKey

      Owner of the account

    • amount: number | bigint

      Maximum number of tokens the delegate may transfer

    • multiSigners: (PublicKey | Signer)[] = []

      Signing accounts if owner is a multisig

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc