APT
POST
GET
Last updated on January 1, 1970
1 min read
Method /v1/accounts/{account_hash}/module/{module_name} undefined ()
connect with JSON-RPC protocol
/v1/accounts/{account_hash}/module/{module_name}
Method not allowed
Gets a single module for a specified account and ledger version.
Parameters
module_name
-
A type of struct to retrieve.
ledger_version
-
Ledger version. Defaults to latest if not provided.
Request
curl --location --request GET 'https://apt.getblock.io/v1/accounts/0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255/module/coin?module_name=coin'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
Response
{
"error_code": "module_not_found",
"message": "Module not found by Address(0xc20ea5a196c81d8d7aff814aa37f8a5823acffbc4193efd3b2aafc9ef2803255), Module name(coin) and Ledger version(152087584)",
"vm_error_code": null
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }