account module - Movement
Example code for the account module JSON-RPC method. Complete guide on how to use account module JSON-RPC in GetBlock Web3 documentation.
Returns a single Move module published under an account, by module name, with its bytecode and ABI.
Endpoint
GET /v1/accounts/{address}/module/{module_name}Path Parameters
address
string
Account address (0x-prefixed)
module_name
string
Module name, e.g. coin
Query Parameters
ledger_version
string
Read at a specific ledger version
Example
export MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
curl "${MOVEMENT_REST}v1/accounts/0x1/module/coin"Response
Response Fields
bytecode
string
Module bytecode (hex)
abi
object
Module ABI with exposed functions
Use Cases
Call Building: Read a module's entry functions and signatures
Verification: Inspect deployed module code
Error Handling
400 / Bad request
Bad request
A path, query, or body parameter was invalid
404 / Not found
Not found
The account, block, transaction, or resource does not exist
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Was this helpful?