Quantcast
Channel: How can I do one cross-program-invocation with multiple instructions? - Solana Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Barebox for How can I do one cross-program-invocation with multiple...

Invoke and invoke_signed only execute a single ix per execution.TransferMany does this:pub fn transfer_many(from_pubkey: &Pubkey, to_lamports: &[(Pubkey, u64)]) -> Vec<Instruction> {...

View Article


How can I do one cross-program-invocation with multiple instructions?

in a nutshell I'm wondering how to send one CPI call with a vector of Instructions.Here's an example:I noticed there's a function in the solana_program Rust crate...

View Article

Browsing latest articles
Browse All 2 View Live