post https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8/
The getrawtransaction
method retrieves a transaction by its ID. It can return either the hex-encoded transaction data or a detailed, decoded transaction object.
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
txid
(required): The transaction ID.verbose
(optional): A boolean indicating whether to return a detailed, decoded transaction object instead of the hex-encoded data. Defaults to false.
Response
result
— depending on theverbose
parameter, this is either a string containing the hex-encoded transaction or an object containing the decoded transaction details.error
— an object containing an error message if an error occurred, otherwisenull
.id
— an integer representing the ID of the request.
Use case
The getrawtransaction
method is essential for retrieving transaction data for analysis, debugging, or verification purposes. It allows users to access detailed information about a transaction, including its inputs, outputs, and metadata.
Try the getrawtransaction
RPC method yourself
getrawtransaction
RPC method yourself