Skip to main content
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
Results tagged with
Search options questions only not deleted user 1103

Questions using Cross-Program Invocation (CPI) to make calls between on-chain programs

2 votes
1 answer
178 views

Transfer SOL without end user to approve

The account is owned by my program, I tried it trough CPI but the winner still has to sign (to receive/claim) if he wins, the other way was without using CPI (try_borrow_mut...) but it still asks the user … I have thought about auto approve but I blieve that Phantom removed that functionality CPI struct #[derive(Accounts)] pub struct PayFromPDA<'info> { #[account(mut)] pub puppet: Account<'info, LockAccount …
Sing's user avatar
  • 121
1 vote
3 answers
200 views

Unauthorized signer on CPI transfer call

so I am trying to write an app where we can deposit native SOL to a wallet, that wallet would be a PDA, and based on some event I would like to transfer SOL to a particular wallet via a CPI call but I … writable account' Apparently, my seed to sign the invoke call might be wrong in the instruction but I don't really see where, if maybe someone can enlighten me, please This is how my seed is used for the CPI
Sing's user avatar
  • 121
0 votes
3 answers
258 views

Issue, transfer SOL via CPI call

I am trying to make a SOL transfer via a CPI call, I managed to create an account to which I have to transfer, this account's authority is owned by a (master) PDA, transfer/deposit works fine but when … : Transaction simulation failed: Error processing Instruction 0: Program failed to complete My structs look like this My withdraw instruction look like this and my CPI code look like this To call the …
Sing's user avatar
  • 121