{ "method": "GET", "path": "/transactions/by_version/{txn_version}", "operationId": "get_transaction_by_version", "summary": "Get transaction by version", "description": "Retrieves a transaction by a given version. If the version has been\npruned, a 410 will be returned.", "tags": [ "Transactions" ], "parameters": [ { "name": "txn_version", "in": "path", "required": true, "description": "Version of transaction to retrieve", "schema": { "$ref": "#/components/schemas/U64" } } ], "requestBody": null, "responses": { "200": { "contentType": "application/json", "schema": { "$ref": "#/components/schemas/Transaction" }, "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": {} } } }