Post
Share your knowledge.
yhant3251
Jan 04, 2025
Expert 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
Share
Comments
Answers
1elfDani139
Jan 4 2025, 19:27You cannot do this directly from Move because smart contracts on Sui don't have access to global storage, unlike in Solidity/EVM. To find out the coin balance for an address, you would need to externally query a full node via RPC/GraphQL or use an SDK client.
1
Best Answer
Comments
Do you know the answer?
Please log in and share it.
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148Posts231Answers

Reward CampaignJune
- ... SUIderiss+5
- ... SUIRamirez+5
- ... SUIElvin CLONE +5
- ... SUI
- ... SUI
- ... SUI
- ... SUIBritain+2
Bounty Posts