Skip to main content

Module system

Module system 

Source
Expand description

Hopper-native System Program CPI builders.

The API is Hopper-owned (builder pattern over AccountView / Address / Signer) and execution flows through Hopper’s checked native CPI semantics.

Provides the full System program surface: CreateAccount, Transfer, Assign, Allocate, the *WithSeed variants, and the durable-nonce family, plus a typed NonceState reader.

Modules§

instructions
Legacy module-path re-exports.

Structs§

AdvanceNonceAccount
Builder for AdvanceNonceAccount.
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.
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.
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.
WithdrawNonceAccount
Builder for WithdrawNonceAccount.

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