verifytxoutproof

How to use it

// yarn add @tatumio/tatum

import { TatumSDK, ZCash, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.verifyTxOutProof("")

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Overview

The verifytxoutproof RPC method verifies the given transaction proof (in the form of a Merkle block) and returns an array of transaction hashes contained in the verified Merkle block. This method can be used to confirm that specific transactions are included in a block without having to download the entire block.

Parameters

  • proof: (string, required) The hex-encoded proof generated by the gettxoutproof RPC method.

Return Object

  • (array of strings) An array of transaction hashes contained in the verified Merkle block.

JSON Examples

Request example:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "verifytxoutproof",
  "params": [
    "00000020fc61cc9f1bda9ef9e5d6bcccc7f210a0e87e7ccbc017d8487031b91d0000000047451bc9b84a546eafbe39baedb3cda967ea57cf1ab650b24d88395f2e4e3d413e4f22e8d9d9ea1c000000000102000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0100f2052a01000000434104e70b81e35e7cf03f6238471f7d9c903d48aea7c1d067e3010b9000000000000"
  ]
}

Response example:

{
  "result": [
    "3e4f22e8d9d9ea1c123456789abcdef0123456789abcdef0123456789abcdef"
  ],
  "error": null,
  "id": 1
}

\

Last updated

ยฉ Tatum Technology, LLC