Skip to main content

Module return_data

Module return_data 

Source
Expand description

CPI return data retrieval and typed deserialization.

The Solana runtime supports return data from CPI calls (up to 1024 bytes). No framework provides a typed wrapper that combines invoke + deserialize in one step. Hopper does.

Structs§

ReturnData
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 immediately read back typed return data.