【问题标题】:How to transfer custom token如何转移自定义令牌
【发布时间】:2021-10-09 23:03:55
【问题描述】:

我想使用 rust solana-sdk 发送我部署的令牌而不是 sol,但我不知道如何。找了很久的官方文档,还是找不到。如果您有这方面的任何信息,请告诉我吗?谢谢

【问题讨论】:

标签: rust solana


【解决方案1】:

带有这些绑定的包是spl-token 包:https://docs.rs/spl-token/3.2.0/spl_token/

您可以在 solana-program-library 代码中看到一些如何使用它的示例,但也许 spl-token CLI 会有所帮助:https://github.com/solana-labs/solana-program-library/blob/e8b7009cc4d8cdd87232ccfc9ce93ab203ada496/token/cli/src/main.rs#L707

【讨论】:

    猜你喜欢
    • 2020-08-29
    • 2018-11-14
    • 1970-01-01
    • 1970-01-01
    • 2021-09-27
    • 1970-01-01
    • 2012-04-10
    • 2017-04-16
    • 1970-01-01
    相关资源
    最近更新 更多