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

Spl token transfer #11

Open
degenpatz opened this issue Aug 15, 2022 · 2 comments
Open

Spl token transfer #11

degenpatz opened this issue Aug 15, 2022 · 2 comments

Comments

@degenpatz
Copy link

I want to transfer Spl-tokens. Does anybody share a sample of transferring spl token via react-native or Expo ?

@bfriel
Copy link
Collaborator

bfriel commented Aug 15, 2022

You can transfer SPL tokens with the same flow as signAndSendTransaction. When you create your transaction, simply add an SPL token transfer instruction.

For example, in createTransferInstruction, you can replace our placeholder SOL transfer instruction with an SPL token transfer instruction. The Solana Cookbook is a great resource for learning more on SPL token transfers

@degenpatz
Copy link
Author

@bfriel for that we should open account for sender and receiver first ?

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

2 participants