account module - Movement

Returns a single Move module published under an account, by module name, with its bytecode and ABI.

Endpoint

httpGET /v1/accounts/{address}/module/{module_name}

Path Parameters

ParameterTypeDescription
addressstringAccount address (0x-prefixed)
module_namestringModule name, e.g. coin

Query Parameters

ParameterTypeDescription
ledger_versionstringRead at a specific ledger version

Example

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

curl "${MOVEMENT_REST}v1/accounts/0x1/module/coin"

Response

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

Response Fields

FieldTypeDescription
bytecodestringModule bytecode (hex)
abiobjectModule ABI with exposed functions

Use Cases

  • Call Building: Read a module's entry functions and signatures
  • Verification: Inspect deployed module code

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