accounts_module
Overview
Fetch a specific Move module published under an account by module name.
Endpoint
GET /v1/accounts/{address}/module/{module_name}
Request
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
address | string | Yes | Account address |
module_name | string | Yes | Module name (no address prefix) |
Code Examples
cURL
curl -s "https://api-aptos-mainnet.n.dwellir.com/YOUR_API_KEY/v1/accounts/0x1/module/aptos_account"
TypeScript
const m = await aptos.getAccountModule({ accountAddress: "0x1", moduleName: "aptos_account" });
Python
module = client.account_module("0x1", "aptos_account")
Rust
let m = client.get_account_module("0x1", "aptos_account").await?;