@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
35 lines • 1.6 kB
TypeScript
import { AccountAddressInput } from "../../core/accountAddress.js";
import { MoveModuleBytecode, LedgerVersionArg, AccountData } from "../../types/types.js";
import { AptosConfig } from "../../api/aptosConfig.js";
/**
* Retrieves account information for a specified account address.
*
* @param args - The arguments for retrieving account information.
* @param args.aptosConfig - The configuration object for Aptos.
* @param args.accountAddress - The address of the account to retrieve information for.
* @group Implementation
*/
export declare function getInfo(args: {
aptosConfig: AptosConfig;
accountAddress: AccountAddressInput;
}): Promise<AccountData>;
/**
* Queries for a move module given an account address and module name.
* This function can help you retrieve the module's ABI and other relevant information.
*
* @param args - The arguments for retrieving the module.
* @param args.aptosConfig - The configuration for the Aptos client.
* @param args.accountAddress - The account address in hex-encoded 32 byte format.
* @param args.moduleName - The name of the module to retrieve.
* @param args.options - Optional parameters for the request.
* @param args.options.ledgerVersion - Specifies the ledger version of transactions. By default, the latest version will be used.
* @returns The move module.
* @group Implementation
*/
export declare function getModule(args: {
aptosConfig: AptosConfig;
accountAddress: AccountAddressInput;
moduleName: string;
options?: LedgerVersionArg;
}): Promise<MoveModuleBytecode>;
//# sourceMappingURL=utils.d.ts.map