POST
https://nd-202-842-353.p2pify.com
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "getrawtransaction",
  "params": [
    "0bf82c1d62b73497de2d796636cb1ce64415d25982332436007c0f51b5a75a62",
    false
  ],
  "id": 1
}'
{
  "result": "<string>",
  "error": {},
  "id": 123
}

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 the verbose 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, otherwise null.
  • 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.

Body

application/json

Response

200 - application/json

The hex-encoded transaction or transaction details.

The response is of type object.