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
Name | Type | Default |
---|---|---|
payload | InputViewFunctionData | |
options | LedgerVersionArg | |
network | NetworkInfo The network to use for the request. If not set, the network of the |
Return Type
An array of MoveValue
objects from the @aptos-labs/ts-sdk
.
Last updated on