Crate solana_cpi

Source
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.