POSTgettxoutproof

Bitcoin Mainnethttps://bitcoin-mainnet.nodit.io/

Returns a hex-encoded merkle proof that one or more transactions were included in a block. The returned proof can be verified with verifytxoutproof.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameters in order:

  1. txids: The transaction ids to prove, as an array of strings. (required)
  2. blockhash: The hash of the block to look for the transactions in, as a string. (optional)
params[0]string[]

The transaction ids to prove. All transactions must be included in the same block.

params[1]string

The hash of the block to look for the transactions in. The UTXO set is searched when omitted.

Responses

응답 본문이 없습니다.

X-API-KEY
RequestCU50
cURL
curl -X POST "https://bitcoin-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "gettxoutproof",
  "params": [
    [
      "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
    ],
    "000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0000202f8bd5a1f0e9c7b6a5948372615f4e3d2c1b0a99887766554433221100ffee0100000001"
}