Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions using Cross-Program Invocation (CPI) to make calls between on-chain programs
1
vote
Is the Instruction argument of a CPI enough to protect against undesired behaviour?
Calling a program via CPI is the same as (or can be treated the same as) having the instruction at the top level. … invoked via CPI or -- normal)
can someone do anything incorrect by providing another slice of &[AccountInfo] at the top level? …
4
votes
Accepted
Prog A calls Prog B via invoke_signed. How do I pass account_infos for the next CPI call fro...
The accounts needed for Program C needs to be passed in via the CPI call made to Program B. …
6
votes
Accepted
Then what is the purpose of `CreateWithSeed` instruction?
Similar to how PDAs associate additional accounts with programs, seeded accounts associate additional accounts with normal users.
The system program allows you to operate on accounts that are derived …