Skip to main content

Module account_view

Module account_view 

Source
Expand description

RuntimeAccount memory layout and AccountView zero-copy wrapper.

RuntimeAccount maps 1:1 onto the BPF input buffer layout that the Solana runtime writes for each account. AccountView is a thin pointer to a RuntimeAccount in that buffer, providing safe accessors for address, owner, flags, lamports, and data.

Structsยง

AccountView
Zero-copy view over a Solana account in the BPF input buffer.
RemainingAccounts
Iterator over remaining (unstructured) accounts after the known ones.