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 |
assign(params: AssignParams): Transaction Generate a Transaction that assigns an account to a program |
|
public static |
createAccount(params: CreateAccountParams): Transaction Generate a Transaction that creates a new account |
|
public static |
Generate a Transaction 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 |
nonceAuthorize(params: AuthorizeNonceParams): Transaction Generate a Transaction that authorizes a new PublicKey as the authority on a Nonce account. |
|
public static |
Generate an instruction to initialize a Nonce account |
|
public static |
nonceWithdraw(params: WithdrawNonceParams): Transaction Generate a Transaction that withdraws lamports from a Nonce account |
|
public static |
transfer(params: TransferParams): Transaction Generate a Transaction that transfers lamports from one account to another |
Static Public Members
Static Public Methods
public static assign(params: AssignParams): Transaction source
Generate a Transaction that assigns an account to a program
Params:
Name | Type | Attribute | Description |
params | AssignParams |
public static createAccount(params: CreateAccountParams): Transaction source
Generate a Transaction that creates a new account
Params:
Name | Type | Attribute | Description |
params | CreateAccountParams |
public static createAccountWithSeed(params: CreateAccountWithSeedParams): Transaction source
Generate a Transaction 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): Transaction source
Generate a Transaction 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): Transaction source
Generate a Transaction that withdraws lamports from a Nonce account
Params:
Name | Type | Attribute | Description |
params | WithdrawNonceParams |
public static transfer(params: TransferParams): Transaction source
Generate a Transaction that transfers lamports from one account to another
Params:
Name | Type | Attribute | Description |
params | TransferParams |