Publicación
Comparte tu conocimiento.
yhant3251
Jan 04, 2025
P&R expertos
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
Cuota
Comentarios
Respuestas
1elfDani139
Jan 4 2025, 19:27No puede hacerlo directamente desde Move porque los contratos inteligentes en Sui no tienen acceso al almacenamiento global, a diferencia de Solidity/EVM. Para averiguar el saldo de monedas de una dirección, necesitarás consultar externamente un nodo completo a través de RPC/GraphQL o usar un cliente de SDK.
1
Mejor Respuesta
Comentarios
Sabes la respuesta?
Inicie sesión y compártalo.