帐户无法解析为令牌帐户:pubkey Solana

发布于 2025-01-18 19:20:57 字数 505 浏览 0 评论 0 原文

我已经能够创建代币和关联的帐户来处理代币,并且我有足够的 solana 来发送代币。我正在尝试将我的代币发送到我的 phantom chrome 扩展钱包,但收到此错误。

帐户无法解析为令牌帐户:pubkey=

我一直在关注这些教程

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

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

一切正常,直到我想转移令牌为止。我误解了什么吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绝影如岚 2025-01-25 19:20:57

当与他人分享您的令牌时,这两篇文章都存在缺陷。要发送令牌,您必须为接收令牌的地址的令牌帐户的创建提供资金。您可以使用我推荐的以下命令

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

来完成此操作:
https://www.youtube.com/watch?v=befUVytFC80,作者:Network Chuck

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文