SystemProgram class
System Program
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
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.