Expand description
Cross-program invocation.
Solana programs may call other programs, termed cross-program
invocations (CPI), with the invoke and invoke_signed
functions.
This crate does not support overwriting syscall stubs for offchain code.
If you want to overwrite syscall stubs, use the wrapper functions in
rialo_s_program::program.
Structs§
- Host
Account Info - Marshalled
AccountInfocontaining raw pointers to VM memory. - Host
Instruction - Marshalled
Instructioncontaining raw pointers to VM memory.
Constants§
- MAX_
RETURN_ DATA - Maximum size that can be set using
set_return_data.
Functions§
- get_
return_ data - Get the return data from an invoked program.
- invoke
- Invoke a cross-program instruction.
- invoke_
signed - Invoke a cross-program instruction with program signatures.
- invoke_
signed_ unchecked - Invoke a cross-program instruction with signatures but don’t enforce Rust’s aliasing rules.
- invoke_
unchecked - Invoke a cross-program instruction but don’t enforce Rust’s aliasing rules.
- marshal_
accounts - Marshal
&[AccountInfo]intoVec<HostAccountInfo>suitable for RISC-V unmarshalling. - marshal_
instruction - Marshal an
Instructioninto aHostInstructionsuitable for RISC-V unmarshalling. - set_
return_ data - Set the running program’s return data.