@banool/aptos-account-value
v0.0.14
Published
Determine the value of an Aptos account
Readme
Aptos Account Value
![NPM Package Downloads][npm-image-downloads]
This library is experimental.
This library provides a way to calculate the total value of an Aptos account.
Installation
pnpm install @banool/aptos-account-valueInstall TS SDK v2:
pnpm install @aptos-labs/[email protected]Usage
Create a client:
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
const config = new AptosConfig({ network: Network.MAINNET });
const client = new Aptos(config);Use the library:
import { getAccountValueMany, OutputCurrency } from "@banool/aptos-account-value";
await getAccountValueMany({
client: client,
accountAddresses: ["0x1", "0x2"],
outputCurrency: OutputCurrency.USD,
});