SystemProgram
Factory class for transactions to interact with the System program
Static Member Summary
Static Public Members | ||
public static get |
Public key that identifies the System program |
Static Method Summary
Static Public Methods | ||
public static |
Generate a transaction instruction that allocates space in an account without funding |
|
public static |
assign(params: AssignParams | AssignWithSeedParams): TransactionInstruction Generate a transaction instruction that assigns an account to a program |
|
public static |
Generate a transaction instruction that creates a new account |
|
public static |
Generate a transaction instruction that creates a new account at
an address generated with |
|
public static |
createNonceAccount(params: CreateNonceAccountParams | CreateNonceAccountWithSeedParams): Transaction Generate a transaction that creates a new Nonce account |
|
public static |
Generate an instruction to advance the nonce in a Nonce account |
|
public static |
Generate a transaction instruction that authorizes a new PublicKey as the authority on a Nonce account. |
|
public static |
Generate an instruction to initialize a Nonce account |
|
public static |
Generate a transaction instruction that withdraws lamports from a Nonce account |
|
public static |
Generate a transaction instruction that transfers lamports from one account to another |
Static Public Members
Static Public Methods
public static allocate(params: AllocateParams | AllocateWithSeedParams): TransactionInstruction source
Generate a transaction instruction that allocates space in an account without funding
Params:
Name | Type | Attribute | Description |
params | AllocateParams | AllocateWithSeedParams |
public static assign(params: AssignParams | AssignWithSeedParams): TransactionInstruction source
Generate a transaction instruction that assigns an account to a program
Params:
Name | Type | Attribute | Description |
params | AssignParams | AssignWithSeedParams |
public static createAccount(params: CreateAccountParams): TransactionInstruction source
Generate a transaction instruction that creates a new account
Params:
Name | Type | Attribute | Description |
params | CreateAccountParams |
public static createAccountWithSeed(params: CreateAccountWithSeedParams): TransactionInstruction source
Generate a transaction instruction that creates a new account at
an address generated with from
, a seed, and programId
Params:
Name | Type | Attribute | Description |
params | CreateAccountWithSeedParams |
public static createNonceAccount(params: CreateNonceAccountParams | CreateNonceAccountWithSeedParams): Transaction source
Generate a transaction that creates a new Nonce account
Params:
Name | Type | Attribute | Description |
params | CreateNonceAccountParams | CreateNonceAccountWithSeedParams |
public static nonceAdvance(params: AdvanceNonceParams): TransactionInstruction source
Generate an instruction to advance the nonce in a Nonce account
Params:
Name | Type | Attribute | Description |
params | AdvanceNonceParams |
public static nonceAuthorize(params: AuthorizeNonceParams): TransactionInstruction source
Generate a transaction instruction that authorizes a new PublicKey as the authority on a Nonce account.
Params:
Name | Type | Attribute | Description |
params | AuthorizeNonceParams |
public static nonceInitialize(params: InitializeNonceParams): TransactionInstruction source
Generate an instruction to initialize a Nonce account
Params:
Name | Type | Attribute | Description |
params | InitializeNonceParams |
public static nonceWithdraw(params: WithdrawNonceParams): TransactionInstruction source
Generate a transaction instruction that withdraws lamports from a Nonce account
Params:
Name | Type | Attribute | Description |
params | WithdrawNonceParams |
public static transfer(params: TransferParams | TransferWithSeedParams): TransactionInstruction source
Generate a transaction instruction that transfers lamports from one account to another
Params:
Name | Type | Attribute | Description |
params | TransferParams | TransferWithSeedParams |