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.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

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.

Try the decoderawtransaction RPC method yourself

Language
Click Try It! to start a request and see the response here!