{ "method": "POST", "path": "/view", "operationId": "view", "summary": "Execute view function of a module", "description": "Execute the Move function with the given parameters and return its execution result.\n\nThe Aptos nodes prune account state history, via a configurable time window.\nIf the requested ledger version has been pruned, the server responds with a 410.", "tags": [ "View" ], "parameters": [ { "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": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/ViewRequest" }, "example": null }, "responses": { "200": { "contentType": "application/json", "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MoveValue" } }, "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": {} } } }