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 it possible to extend 'signature' of the PDA?
However, once Program A signs with seeds for account_a in a CPI to Program B, Program B can freely use account_a as a signer to some Program C. …
3
votes
Can I initialize a PDA within a CPI call?
Yes, what you're doing is possible, the problem is that there is some address that you need to pass as a signer.
Your "InstructionB" specifies an address as payer for the PDA creation. This is the lik …
0
votes
Issue, transfer SOL via CPI call
Your from account is a PDA, and it is not owned by the system program. This is going to sound weird, but that means you cannot use the "transfer" function.
Use try_mut_borrow_lamports:
ctx.accounts.fr …
3
votes
How to Increase compute limit above 200k compute
I haven't really found great docs on it, but I believe the way it works is that your transaction's first instruction must be this:
https://github.com/solana-labs/solana/blob/00929f836348d76cb3503d0ba5 …