All Questions
2 questions
0
votes
1
answer
72
views
How to pass multiple contexts to a single function?
I'm creating a staking contract and one of the functions that takes in the deposits, I'm using a struct in the context of transferring SPL, however, to keep the records for the same I need to create ...
0
votes
1
answer
87
views
How transfer SPL tokens from PDA to usual account in clean RUST?
I have PDA created in JS this way:
let [pda, bump] = await PublicKey.findProgramAddress(
[baseAccount.publicKey.toBuffer(), Buffer.from('1', 'utf8')],
programIdPublicKey
);
baseAccount is a ...