Beitrag
Teile dein Wissen.
yhant3251
Jan 04, 2025
Experten Q&A
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
Teilen
Kommentare
Antworten
1elfDani139
Jan 4 2025, 19:27Sie können dies nicht direkt von Move aus tun, da Smart Contracts auf Sui im Gegensatz zu Solidity/EVM keinen Zugriff auf globalen Speicher haben. Um das Münzguthaben für eine Adresse herauszufinden, müssten Sie einen vollständigen Knoten extern über RPC/GraphQL abfragen oder einen SDK-Client verwenden.
1
Beste Antwort
Kommentare
Weißt du die Antwort?
Bitte melde dich an und teile sie.