---
title: "Decode transaction"
method: GET
path: "/v1/tx/{tx_hash}"
tags: ["General"]
---

# Decode transaction

`GET /v1/tx/{tx_hash}`

Decode a transaction to check success/failure status. If failed, returns the decoded revert reason with error name and parameters.

## Path parameters

- `tx_hash` string, required

## Response `200`

A successful response.

- ApiDecodeTxResponse
  - `tx_hash` string
  - `success` boolean
  - `error` ApiDecodedError
    - `selector` string
    - `signature` string
    - `name` string
    - `parameters` string[]
    - `message` string

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/rise/apis/risex-rest-api.md) · [All operations](https://skmtc.net/rise/apis/risex-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rise/risex-rest-api/versions/194af8339c0d/schema)
