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

The gettxoutproof method provides a merkle branch proof of the inclusion of one or more transactions in a block, proving that a transaction is indeed part of a block without needing the entire block data.

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

  • transaction ID(s) (required): An array of one or more transaction IDs for which the proof of inclusion is requested.

Response

  • result — a string representing the merkle branch proof in hexadecimal format.
  • 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 gettxoutproof method is particularly useful for lightweight clients and for applications that need to verify transactions without downloading the entire blockchain. It provides a way to confirm transaction inclusion efficiently.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:gettxoutproof
params
string[]

The transaction ID(s) for which the proof is requested

Example:
[
  [
    "0bf82c1d62b73497de2d796636cb1ce64415d25982332436007c0f51b5a75a62"
  ]
]
id
integer
default:1

Response

200 - application/json
The merkle branch proof of the transaction inclusion in a block
result
string

The hexadecimal string of the merkle branch proof

error
object
id
integer