Skip to main content

Module return_data

Module return_data 

Source
Expand description

CPI return-data helpers.

Solana return data is a 1 KiB byte channel from the most recent CPI. Hopper keeps it stack-backed and exposes typed reads by value for Pod types.

Structs§

ReturnData
Stack-backed snapshot of CPI return data.

Constants§

MAX_RETURN_DATA
Maximum Solana return-data payload length.

Functions§

get_return_data
Read return data from the most recent CPI.
set_return_data
Set return data for this instruction.
try_set_return_data
Set return data, rejecting payloads larger than Solana’s 1 KiB limit.