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 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
Response
200 - application/json
Details about the decoded transaction.
The response is of type object
.