> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/bitcoin-decoderawtransaction",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# decoderawtransaction | Bitcoin

The `decoderawtransaction` method is used to decode a raw transaction encoded in hex format. It provides a detailed view of the transaction's components, such as its inputs, outputs, version, and lock time.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `hexString` (required): The raw transaction in hex format.

## Response

* `result` — an object containing detailed information about the decoded transaction, including inputs, outputs, the transaction's version, and lock time.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request.

## Use case

The `decoderawtransaction` method is crucial for developers and analysts who need to inspect the details of a raw transaction without broadcasting it to the network. It's used for debugging, transaction analysis, and educational purposes.


## OpenAPI

````yaml /openapi/bitcoin_node_api/decoderawtransaction.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: decoderawtransaction example
  version: 1.0.0
  description: >-
    This is an API example for decoderawtransaction, a method to decode a raw
    transaction in hex format and provide details about it, including its
    inputs, outputs, and metadata.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: decoderawtransaction
      operationId: decodeRawTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: decoderawtransaction
                params:
                  type: array
                  items:
                    type: string
                    description: The raw transaction in hex format to decode.
                  default:
                    - >-
                      010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff5603b2c50c194d696e656420627920416e74506f6f6c206e0006071c93cbcdfabe6d6db50cdb1bd4713d7d8e48a75ce34c044bd84ee9f67e53dd443e3f24ccdabb687a100000000000000000006bf6dd49000000000000ffffffff05220200000000000017a91442402a28dd61f2718a4b27ae72a4791d5bbdade7876f81e0250000000017a9145249bdf2c131d43995cff42e8feee293f79297a8870000000000000000266a24aa21a9ed7a97cbb5b2366e5185da4ca412ca7ec1a3474c3ea2160e6fdf78d6f2924971c300000000000000002f6a2d434f5245012953559db5cc88ab20b1960faa9793803d0703375997be5a09d05bb9bac27ec60419d0b373f32b2000000000000000002b6a2952534b424c4f434b3a1d2a85762502a28245b3f5103a8f26ef0754f340b291af79649be425005ecdaf0120000000000000000000000000000000000000000000000000000000000000000000000000
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Details about the decoded transaction.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    description: >-
                      Contains detailed information about the transaction,
                      including its inputs, outputs, and various metadata.
                  error:
                    type: object
                  id:
                    type: integer

````