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
solana_program::program
.
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.
- set_
return_ data - Set the running program’s return data.