Skip to Content

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

TypeScriptfetchViewModule

fetchViewModule

Function to fetch a view module for a given module address.

Usage

import { AptosJSProClient } from "@aptos-labs/js-pro"; const client = new AptosJSProClient({ /* ... */ }); const viewModule = await client.fetchViewModule({ payload: { function: "0x1::account::exists_at", typeArguments: [], functionArguments: [AccountAddress.from("0x1").toString()], }, });

Parameters

NameTypeDefault
payloadInputViewFunctionData
optionsLedgerVersionArg
networkNetworkInfo

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

Return Type

An array of MoveValue objects from the @aptos-labs/ts-sdk.

Last updated on