Publication
Partagez vos connaissances.
yhant3251
Jan 04, 2025
Questions et Réponses avec des Experts
How to get the amount of SUI coins using Move language?
I'm working with the Move language and I want to create a function that retrieves the amount of SUI coins held by a specific address. Is there an existing module or function in Move that can help me achieve this?
- Move CLI
0
1
Partager
Commentaires
Réponses
1elfDani139
Jan 4 2025, 19:27Vous ne pouvez pas le faire directement depuis Move car les contrats intelligents sur Sui n'ont pas accès au stockage mondial, contrairement à Solidity/EVM. Pour connaître le solde d'une adresse, vous devez interroger en externe un nœud complet via RPC/GraphQL ou utiliser un client SDK.
1
Meilleure réponse
Commentaires
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.