{ "method": "GET", "path": "/accounts/{address}", "operationId": "get_account", "summary": "Get account", "description": "Return the authentication key and the sequence number for an account\naddress. Optionally, a ledger version can be specified. If the ledger\nversion is not specified in the request, the latest ledger version is used.", "tags": [ "Accounts" ], "parameters": [ { "name": "address", "in": "path", "required": true, "description": "Address of account with or without a `0x` prefix", "schema": { "$ref": "#/components/schemas/Address" } }, { "name": "ledger_version", "in": "query", "required": false, "description": "Ledger version to get state of account\n\nIf not provided, it will be the latest version", "schema": { "$ref": "#/components/schemas/U64" } } ], "requestBody": null, "responses": { "200": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AccountData" }, "example": {} }, "400": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AptosError" }, "example": {} }, "403": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AptosError" }, "example": {} }, "404": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AptosError" }, "example": {} }, "410": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AptosError" }, "example": {} }, "500": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AptosError" }, "example": {} }, "503": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/AptosError" }, "example": {} } } }