⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

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

NameTypeRequiredDescription
addressstringYesAccount address
module_namestringYesModule 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?;