Quantcast
Channel: Need some guide or snippet, demo to transfer SPL token out from program's PDA account - Solana Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by beliveN DAOist.dev for Need some guide or snippet, demo to transfer...

with Anchor 0.29.0 you can use the TransferChecked Struct and transfer_checked fn that will do the invoke_signed under the hood.And send the specific token and amount you want.Example: let accounts =...

View Article



Answer by Jacob Creech for Need some guide or snippet, demo to transfer SPL...

To transfer out of a pda you'd basically have to something like:let bump = *ctx.bumps.get("pda").unwrap();let signer: &[&[&[u8]]] = &[&[constants::PDA_SEED, staker.as_ref(),...

View Article

Need some guide or snippet, demo to transfer SPL token out from program's PDA...

My goal is to have my own program receive any Token, store in one of PDAs of program. Then transfer they out to end user wallet.Currently I successfully send token to program's PDA, but still not able...

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images

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