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

Account Modules — Move REST API

Overview

Lists Move modules published under a specific account.

Endpoint

GET /v1/accounts/{address}/modules

Movement-Specific Notes

  • Module ABI and bytecode can be retrieved via separate endpoints.

Request

Parameters

NameTypeLocationRequiredDescription
addressstringpathYesPublisher address

Response

Success Response (200)

[
{
"bytecode": "0x...",
"abi": { "name": "MyModule", "exposed_functions": [] }
}
]

Code Examples

TypeScript (Aptos SDK)

import { Aptos, AptosConfig, Network } from '@aptos-labs/ts-sdk';
const cfg = new AptosConfig({ network: Network.CUSTOM, fullnode: 'https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1' });
const aptos = new Aptos(cfg);
const modules = await aptos.getAccountModules({ accountAddress: '0x1' });
console.log(modules);

Python

from aptos_sdk.client import RestClient
client = RestClient('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1')
modules = client.account_modules('0x1')
print(modules)

cURL

curl -X GET https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1/accounts/0x1/modules \
-H "Accept: application/json"

EVM Equivalent

Use eth_getCode to fetch bytecode; ABI is external to chain.