Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
My PDA account contains some SOL, and the pubkey of an account I want to transfer the SOL to. Via the client side, is it possible to pass in only the pubkey of the PDA, and then retrieve the receiving account pubkey in the program only?
No. A program endpoint must be provided with the addresses of all the accounts it manipulates. If recipient is mutated, you need to pass in recipient's public key.
Required, but never shown