Skip to Content

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

TypeScriptfetchResources

fetchResources

This function is used to fetch resources for an account.

Usage

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

Parameters

NameTypeDefault
accountAddressAccountAddressInput
optionsPaginationArgs & LedgerVersionArg
networkNetworkInfo

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

Return Type

The fetchResources function will return an array of MoveResource objects from the @aptos-labs/ts-sdk.

Last updated on