是否有一个功能可以使用Rust列出钱包中的所有SPL令牌
是否有一个函数可以使用 Rust 获取钱包拥有的所有代币的列表?
Is there a function which can get a list of all tokens a wallet owns using Rust?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Solana上有一个JSONRPC端点:GetTokenAccountsbyowner
返回令牌所有者的所有SPL代币帐户。
https://docs.solana.com/develoct/clients/jsonrpc-apipc-api-pcc-apipi- getTokenAccountsbyowner
我还认为有一种方法可以从智能合约中拨打端点,您应该环顾四周
There is an JsonRPC EndPoint on Solana : getTokenAccountsByOwner
Returns all SPL Token accounts by token owner.
https://docs.solana.com/developing/clients/jsonrpc-api#gettokenaccountsbyowner
I also think there is a way to make calls to endpoints from smart contracts, you should look around for this