Move.

Beitrag

Teile dein Wissen.

yhant3.
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

1
elfDani.
Jan 4 2025, 19:27

Sie 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.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Beiträge231Antworten
Sui.X.Peera.

Verdiene deinen Anteil an 1000 Sui

Sammle Reputationspunkte und erhalte Belohnungen für deine Hilfe beim Wachstum der Sui-Community.

BelohnungskampagneJuli