decoderawtransaction
Bitcoin node API
decoderawtransaction | Bitcoin
The decoderawtransaction method is used to decode a raw transaction encoded in hex format. decoderawtransaction on Bitcoin via Chainstack.
POST
decoderawtransaction
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 your own node endpoint todayStart 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, otherwisenull.id— an integer representing the ID of the request.
Use case
Thedecoderawtransaction 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.Body
application/json
Last modified on May 18, 2026