Skip to main content

gettxoutproof RPC Method

Ensures that the transactions are within block and returns proof of transaction inclusion.

Updated on
Oct 4, 2023

gettxoutproof RPC Method

Parameters

txids
JSON array
REQUIRED
An array of transaction hashes
blockhash
string
If specified, looks for txid in the block with this hash

Returns

str
A string that is a serialized, hex-encoded data for the proof
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "gettxoutproof", "params": [["ee652f0b40209bd02468de0c6336854f5efdd79fb865560aef2c46f4fa0b4a07", "cee11bc3bb3d9db8c4813ed2072a14369a15fcfb9e6bc5cb37a0b5bcc6aa59aa"]]}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free