SystemProgram class

System 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.
override
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

allocate({required Pubkey accountPubkey, required bu64 space}) TransactionInstruction
Generates a transaction instruction that allocates space in an account without funding.
allocateWithSeed({required Pubkey accountPubkey, required Pubkey basePubkey, required String seed, required bu64 space, required Pubkey programId}) TransactionInstruction
Generates a transaction instruction that allocates space in an account without funding.
assign({required Pubkey accountPubkey, required Pubkey programId}) TransactionInstruction
Generates a transaction instruction that assigns an account to a program.
assignWithSeed({required Pubkey accountPubkey, required Pubkey basePubkey, required String seed, required Pubkey programId}) TransactionInstruction
Generates a transaction instruction that assigns an account to a program.
createAccount({required Pubkey fromPubkey, required Pubkey newAccountPubkey, required bu64 lamports, required bu64 space, required Pubkey programId}) TransactionInstruction
Generates a transaction instruction that creates a new account.
createAccountWithSeed({required Pubkey fromPubkey, required Pubkey newAccountPubkey, required Pubkey basePubkey, required String seed, required bu64 lamports, required bu64 space, required Pubkey programId}) TransactionInstruction
Creates a transaction instruction that creates a new account at an address generated with fromPubkey, a seed, and programId.
createNonceAccount({required Pubkey fromPubkey, required Pubkey noncePubkey, required Pubkey authorizedPubkey, required bu64 lamports}) List<TransactionInstruction>
Generates a transaction that creates a new Nonce account.
createNonceAccountWithSeed({required Pubkey fromPubkey, required Pubkey noncePubkey, required Pubkey authorizedPubkey, required bu64 lamports, required Pubkey basePubkey, required String seed}) List<TransactionInstruction>
Generates a transaction that creates a new Nonce account.
nonceAdvance({required Pubkey noncePubkey, required Pubkey authorizedPubkey}) TransactionInstruction
Generates an instruction to advance the nonce in a Nonce account.
nonceAuthorize({required Pubkey noncePubkey, required Pubkey authorizedPubkey, required Pubkey newAuthorizedPubkey}) TransactionInstruction
Generates a transaction instruction that authorises a new Pubkey as the authority on a Nonce account.
nonceInitialize({required Pubkey noncePubkey, required Pubkey authorizedPubkey}) TransactionInstruction
Generates an instruction to initialize a Nonce account.
nonceWithdraw({required Pubkey noncePubkey, required Pubkey authorizedPubkey, required Pubkey toPubkey, required bu64 lamports}) TransactionInstruction
Generates a transaction instruction that withdraws lamports from a Nonce account.
transfer({required Pubkey fromPubkey, required Pubkey toPubkey, required BigInt lamports}) TransactionInstruction
Generates a transaction instruction that transfers lamports from one account to another.
transferWithSeed({required Pubkey fromPubkey, required Pubkey basePubkey, required Pubkey toPubkey, required BigInt lamports, required String seed, required Pubkey programId}) TransactionInstruction
Generates a transaction instruction that transfers lamports from one account to another.