TransactionInstruction class

Transaction Instruction

Inheritance
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

TransactionInstruction.new({required List<AccountMeta> keys, required Pubkey programId, required Uint8List data})
A TransactionInstruction object.
TransactionInstruction.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

data Uint8List
Program input
final
hashCode int
The hash code for this object.
no setterinherited
keys List<AccountMeta>
Public keys to include in this transaction.
final
programId Pubkey
/ Program Id to execute
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this class into a JSON object.
override
toMessageInstruction(List<Pubkey> keys) MessageInstruction
Converts this TransactionInstruction into an MessageInstruction. The keys are an ordered list of all public keys referenced by this transaction.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited