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
}
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
}
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.
transaction ID(s)
(required): An array of one or more transaction IDs for which the proof of inclusion is requested.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.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.The merkle branch proof of the transaction inclusion in a block
The response is of type object
.
Was this page helpful?