TransactionInstruction

public protocol TransactionInstruction : CompilableInstructionSet

An instruction to be delivered as part of a sequenced list for use in a Transaction. Conform to this protocol to deliver a custom instruction.

To build an instruction directly as part of a transaction, use RawTransactionInstruction.

  • Undocumented

    Declaration

    Swift

    var keys: [TransactionKey] { get }
  • Undocumented

    Declaration

    Swift

    var programId: PublicKey { get }
  • Undocumented

    Declaration

    Swift

    var data: Data? { get }