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 ArticleAnswer 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 ArticleNeed 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