Skip to Content

🚧 These packages are still in development and may change rapidly as they are developed.

TypeScriptfetchAccountCoins

fetchAccountCoins

Fetching fungible asset balances for a specific account, with support for pagination.

Usage

import { AptosJSProClient } from "@aptos-labs/js-pro"; const client = new AptosJSProClient({ /* ... */ }); const { nextCursor, prevCursor, balances } = await client.fetchAccountCoins({ address: "0x926ff619e85bdb5b02680f27bea5ea3302c71f86be4b16fa0d63df213add927a", });

Parameters

NameTypeDefault
addressAccountAddressInput

The address of the account to fetch the coin balances for.

orderByInputMaybe<Current_Fungible_Asset_Balances_Order_By | Current_Fungible_Asset_Balances_Order_By[]> | undefined

Conditions for ordering the coin balance results.

whereInputMaybe<Current_Fungible_Asset_Balances_Bool_Exp> | undefined

Filters for the coin balance results.

networkNetworkInfo

The network to use for the request. If not set, the network of the AptosJSProClient instance will be used.

limitnumber

The number of results to return per page. This value is capped at 100 results.

100
offsetnumber

The offset to start the query from.

0

Return Type

NameTypeDefault
nextCursornumber

The next cursor for pagination. If there is no next page, this will be undefined.

prevCursornumber

The previous cursor for pagination. If there is no previous page, this will be undefined.

balancesFungibleAssetBalance[]
Last updated on