Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I invoke my token transfers from Solana Program? (Not by js sdk) #586

Open
amitesh-m opened this issue Jan 30, 2025 · 0 comments
Open

Comments

@amitesh-m
Copy link

Hello, Is it possible to invoke the functionality of token transfer from within my Anchor program on solana?

I have my tokens saved in an ATA on solana which is governed by my solana smart contract. I want to burn the tokens on solana and transfer them to user's metamask wallet.

I cannot sign this transaction using the standard get Signer function... because my token vault is a PDA and does not have a private key.

What's the right way to invoke the token transfer from within my anchor smart contract?

@wormhole-foundation wormhole-foundation deleted a comment from Alexpies Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@amitesh-m and others