MemoProgram class

Memo Program

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
pubkey Pubkey
The public key that identifies this program (i.e. program id).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDeployed(Connection connection) Future<void>
Check that the program has been deployed to the cluster and is an executable program.
inherited
createTransactionIntruction(Enum instruction, {required List<AccountMeta> keys, List<Iterable<int>> data = const []}) TransactionInstruction
Creates a TransactionInstruction for the program instruction.
inherited
encodeInstruction<T extends Enum>(T instruction) Iterable<int>
Encodes the program instruction.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

programId Pubkey
The program id.
no setter

Static Methods

create(String memo, {List<Pubkey> signers = const []}) TransactionInstruction
Creates and returns an instruction which validates a string of UTF-8 encoded characters and verifies that any accounts provided are signers of the transaction. The program also logs the memo, as well as any verified signer addresses, to the transaction log, so that anyone can easily observe memos and know they were approved by zero or more addresses by inspecting the transaction log from a trusted provider.

Constants

maxLength → const int
Maximum length.