-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[Doc] How to send a token? For example USDC #20725
Comments
Thanks, we'll try to add another example. |
It would be good to also have a Move smart contract example for tokens like USDC. The current Forge/Sword tutorial could be extended to create a shop selling swords for SUI or USDC. |
@rigwild that's a good idea. We have this for now, but definitely something in the examples folder would help. @mahnunchik this could help with how to transfer USDC: https://docs.sui.io/guides/developer/stablecoins#token-sending-logic |
@stefan-mysten Thank you! It remains unclear what to do if there are not enough tokens in |
@mahnunchik I am not sure I follow. If there are no coins, then you cannot transfer any object. Perhaps I am misunderstanding something. Happy to try to help if you have a more concrete example. |
Ok, the documentation describes how to send a native coin. But I did not find documentation on how to send a token, for example, USDC.
I chose USDC as an example token because faucet is working well https://faucet.circle.com/
Once again, it looks like the wallet implementation is making an unnecessary merge
https://github.com/MystenLabs/sui/blob/main/apps/wallet/src/ui/app/pages/home/transfer-coin/utils/transaction.ts#L49-L60
I think it would be a good idea to add an example of simple and logical action to the documentation, like sending a token.
The text was updated successfully, but these errors were encountered: