Expand description
CPI return data retrieval and typed deserialization.
The Solana runtime supports return data from CPI calls (up to 1024 bytes). This module combines invocation, program-id validation, and typed return-data decoding.
Structs§
- Return
Data - Return data from a previous CPI call.
Constants§
- MAX_
RETURN_ DATA - Maximum return data size (1 KiB), matching Solana runtime limit.
Functions§
- get_
return_ data - Retrieve return data from the most recent CPI call.
- invoke_
and_ read - Invoke a CPI and capture a producer-checked, type-validated return snapshot.