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§
- Advance
Nonce Account - Builder for
AdvanceNonceAccount(instruction 4). - Allocate
- Builder for the system program’s Allocate instruction.
- Allocate
With Seed - Builder for
AllocateWithSeed. - Assign
- Builder for the system program’s Assign instruction.
- Assign
With Seed - Builder for
AssignWithSeed. - Authorize
Nonce Account - Builder for
AuthorizeNonceAccount(instruction 7). - Create
Account - Builder for the system program’s CreateAccount instruction.
- Create
Account Allow Prefund - Builder for the system program’s
CreateAccountAllowPrefundinstruction (tag 13). - Create
Account With Seed - Builder for
CreateAccountWithSeed. - Initialize
Nonce Account - Builder for
InitializeNonceAccount(instruction 6). - Nonce
State - Typed, zero-copy view over an initialized durable-nonce account.
- Transfer
- Builder for the system program’s Transfer instruction.
- Transfer
With Seed - Builder for
TransferWithSeed. - Upgrade
Nonce Account - Builder for
UpgradeNonceAccount(instruction 12). - Withdraw
Nonce Account - Builder for
WithdrawNonceAccount(instruction 5).
Constants§
- MAX_
SEED_ LEN - Maximum byte length of a System-program seed string (Solana
MAX_SEED_LEN).*WithSeedbuilders 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