gettxoutproof RPC Method
Parameters
txids
JSON array
REQUIRED
Loading...
blockhash
string
Loading...
Returns
result
string
Loading...
error
string
Loading...
id
integer
Loading...
Request
curl https://docs-demo.bch-mainnet.quiknode.pro/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"id": 1, "jsonrpc": "2.0", "method": "gettxoutproof", "params": [["7b4c62f5d19b46ed9d61699d745f95426d139a5c35441c05643e4e1196654da2"]]}'
var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); var raw = JSON.stringify({ "id": 1, "jsonrpc": "2.0", "method": "gettxoutproof", "params": [ [ "7b4c62f5d19b46ed9d61699d745f95426d139a5c35441c05643e4e1196654da2" ] ] }); var requestOptions = { method: 'POST', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("https://docs-demo.bch-mainnet.quiknode.pro/", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
import requests import json url = "https://docs-demo.bch-mainnet.quiknode.pro/" payload = json.dumps({ "id": 1, "jsonrpc": "2.0", "method": "gettxoutproof", "params": [ [ "7b4c62f5d19b46ed9d61699d745f95426d139a5c35441c05643e4e1196654da2" ] ] }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
require "uri" require "json" require "net/http" url = URI("https://docs-demo.bch-mainnet.quiknode.pro/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "id": 1, "jsonrpc": "2.0", "method": "gettxoutproof", "params": [ [ "7b4c62f5d19b46ed9d61699d745f95426d139a5c35441c05643e4e1196654da2" ] ] }) response = https.request(request) puts response.read_body
Response
{ "result": "0000002091252147a69e7559764c84fdca2d933e9d8b9fa87d957f000000000000000000cb606594ec550c22665591f23d5a8bf67ace2141d978a8ea057035dfafdfda1dac43b06812c7011878e39442cf00000009a24d6596114e3e64051c44355c9a136d42955f749d69619ded469bd1f5624c7b34a38834376d5f3b11bcdc65f3def3e2f0328c6c4e8db6dad2e5c0c2c03ca20156b7c0339d23d3d6a6bafd2cf8f2f90a1cd09ce2c9eec53a4f795bab5d8f1927b948665ab242d16abadc194c074ff731e82673073b3c40849827ab8ac158bd0af0cccd4ce2b97d3a2dc45a2ee46201edd2bb88a952df0d8a4eb3d5d9f23ea168d881f67294feb1dd0cf29544aa83e642f9d45e1e362cd5f3de83c3320e6f041ebbef63452c6365b64e1350a3f6b2b8f8cffbfa47304bfc8c9f500c103fd19b9b1ddb0939b9471de55ea11b3302d0e61e7df783f0daa2b992e510a3e1594aba1062f7dfee0d52a1437064392f99f1dc03be7f985454f1230f2832ec02bfa8da3603ff0100", "error": null, "id": 1 }
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free