Closed Meerch closed 2 years ago
I find resolve
const aptosClient = new AptosClient(NODE_URL);
const coinClient = new CoinClient(aptosClient);
// @ts-ignore
// account.address === MaybeHexString, and checkBalance need {address: HexString}
const result = await coinClient.checkBalance({address: () => account.address})
if (result) {
// result === 387242100n, and really balance 3.87242100
setBalance(parseInt(String(result)) / 100000000)
}
Does anyone know how to get a wallet balance in the amount of APT ?