---
title: "returns the transaction and results which correspond to the hash"
method: GET
path: "/transaction/{txHash}?withResults=true"
tags: ["transaction"]
---

# returns the transaction and results which correspond to the hash

`GET /transaction/{txHash}?withResults=true`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/multiversx/apis/multiversx-gateway-api/docs/transaction/:txHash%3FwithResults=true/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `txHash` string, required

## Response `200`

successful operation

- object

## Changes

- **2024-01-09** `fb895587d7c6`: 2 breaking, 6 warning, 12 info
  - added the new path request parameter `txHash`
  - the `items/data/items/` response's property type changed from `object` to `integer` for status `200`
  - deleted the `path` request parameter `txhash`
  - removed the optional property `items/code` from the response with the `200` status
  - …16 more
- **2023-02-08** `82d543636074`: 2 breaking, 13 warning, 5 info
  - added the new path request parameter `txhash`
  - the `items/data/items/` response's property type changed from `integer` to `object` for status `200`
  - deleted the `path` request parameter `txHash`
  - removed the optional property `items/chainid` from the response with the `200` status
  - …16 more

[Operation history](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/changes/transaction/:txHash%3FwithResults=true/get.md)

---

[API](https://skmtc.dev/multiversx/apis/multiversx-gateway-api.md) - [All operations](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/multiversx/apis/multiversx-gateway-api/revisions/44c49bc12621?raw)
