Account could not be parsed as token account: pubkey Solana

1.7k views Asked by At

I have been able to create the tokens and the accounts associated to handle the tokens and I have more than enough solana to send the token. I am trying to send my token to my phantom chrome extension wallet and I get this error.

Account could not be parsed as token account: pubkey=

I've been following these tutorials

https://learn.figment.io/tutorials/sol-mint-token

https://moralis.io/how-to-create-a-solana-token-in-5-steps/

It all works until I want to transfer the token. Am I misunderstanding something?

1

There are 1 answers

0
Koops On BEST ANSWER

Both articles have a flaw when it comes time to share your token with others. To send the token you have to fund the creation of the token account of the address receiving the token. You can do this with the following command

spl-token transfer --fund-recipient --allow-unfunded-recipient <token address> <quantity> <sol address>

I recommend following this video: https://www.youtube.com/watch?v=befUVytFC80 by Network Chuck