Skip to main content

Module system

Module system 

Source
Expand description

System program CPI instructions.

Full coverage of the System program instruction set: account creation (CreateAccount, CreateAccountWithSeed), ownership (Assign, AssignWithSeed), allocation (Allocate, AllocateWithSeed), transfers (Transfer, TransferWithSeed), and the durable-nonce family (AdvanceNonceAccount, WithdrawNonceAccount, InitializeNonceAccount, AuthorizeNonceAccount, UpgradeNonceAccount). All builders invoke via sol_invoke_signed_c with zero heap allocation.

Modules§

instructions
Compatibility re-exports matching pinocchio_system::instructions::*, extended with Hopper’s WithSeed and durable-nonce coverage.

Structs§

AdvanceNonceAccount
Builder for AdvanceNonceAccount (instruction 4).
Allocate
Builder for the system program’s Allocate instruction.
AllocateWithSeed
Builder for AllocateWithSeed.
Assign
Builder for the system program’s Assign instruction.
AssignWithSeed
Builder for AssignWithSeed.
AuthorizeNonceAccount
Builder for AuthorizeNonceAccount (instruction 7).
CreateAccount
Builder for the system program’s CreateAccount instruction.
CreateAccountAllowPrefund
Builder for the system program’s CreateAccountAllowPrefund instruction (tag 13).
CreateAccountWithSeed
Builder for CreateAccountWithSeed.
InitializeNonceAccount
Builder for InitializeNonceAccount (instruction 6).
NonceState
Typed, zero-copy view over an initialized durable-nonce account.
Transfer
Builder for the system program’s Transfer instruction.
TransferWithSeed
Builder for TransferWithSeed.
UpgradeNonceAccount
Builder for UpgradeNonceAccount (instruction 12).
WithdrawNonceAccount
Builder for WithdrawNonceAccount (instruction 5).

Constants§

MAX_SEED_LEN
Maximum byte length of a System-program seed string (Solana MAX_SEED_LEN). *WithSeed builders reject longer seeds.
NONCE_ACCOUNT_LEN
Minimum byte length of an initialized durable-nonce account.
NONCE_STATE_INITIALIZED
Nonce state tag for the initialized form.
NONCE_VERSION_CURRENT
Nonce account version tag for the current format.
RECENT_BLOCKHASHES_ID
Recent blockhashes sysvar address (SysvarRecentB1ockHashes...), required by the nonce instructions.
RENT_SYSVAR_ID
Rent sysvar address, required by some nonce instructions.
SYSTEM_PROGRAM_ID
System program address: 11111111111111111111111111111111