fetchAptBalance
This function is used to fetch the APT balance of an account.
Usage
import { AptosJSProClient } from "@aptos-labs/js-pro";
const client = new AptosJSProClient({
/* ... */
});
const balance = await client.fetchAptBalance({
accountAddress:
"0x926ff619e85bdb5b02680f27bea5ea3302c71f86be4b16fa0d63df213add927a",
});
Parameters
Return Type
The fetchAptBalance
function will return a bigint
of the balance.
Last updated on