Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 8063

Sign CPI as both a PDA and signer of TX

$
0
0

I am writing an anchor program where I want to sign a CPI as both a PDA from my program and the signer of the tx. I expect it would look something like this:

CpiContext::new_with_signer(   program,   accounts,   [ctx.accounts.signer, pda_signer_seeds])```How would one do this? 

Viewing all articles
Browse latest Browse all 8063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>