account modules - Movement

Returns all Move modules published under an account, each with its bytecode and ABI. Modules define the account's smart-contract code.

Endpoint

httpGET /v1/accounts/{address}/modules

Path Parameters

ParameterTypeDescription
addressstringAccount address (0x-prefixed)

Query Parameters

ParameterTypeDescription
ledger_versionstringRead at a specific ledger version
limitstringMax modules to return
startstringPagination cursor

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1/accounts/0x1/modules"

Response

json[
    {
        "bytecode": "0xa11ceb0b...",
        "abi": {
            "address": "0x1",
            "name": "coin",
            "exposed_functions": [
                {
                    "name": "balance",
                    "visibility": "public",
                    "is_view": true
                }
            ]
        }
    }
]

Response Fields

FieldTypeDescription
bytecodestringCompiled Move module bytecode (hex)
abiobjectModule ABI: structs and exposed functions

Use Cases

  • Contract Introspection: Discover a published module's ABI
  • Tooling: Generate typed bindings from the ABI

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect