zec

Zcash (ZEC)

Method: POST gettxoutproof

dropdown

POST gettxoutproof

Returns a hex-encoded proof that "txid" was included in a block.

NOTE: By default this function only works sometimes. This is when there is an unspent output in the utxo for this transaction.

To make it always work, you need to maintain a transaction index, using the -txindex command line option or specify the block in which the transaction is included in manually (by blockhash).

Parameters

txids - array

A json array of txids to filter.

block hash - string

Optional.

If specified, looks for txid in the block with this hash.

Request

curl --location --request POST 'https://zec.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "gettxoutproof",
"params": [["5db76e43724d980e01b5b98c9a83ba2d7fa565b3aa22bb3c5728ea56d0ed7cee", "62e278ff6a763a7adfbeb53689fab7bad235fa49eee746ddfbbc7453e8f6fc2e", "57682c60f21522665473f5c230636cf2fbe4c173a66e4216bb16e3753ba50711"], null],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": "040000007ba371052519f756b8cdc7da007343100604da1c72316c3d6e84110100000000cb149498bb974e894e719a157d9e4a94d16566ca84b7026ea208623c0ccc7ae9c3d699bc2b01f5ac9e8a781a739efc41bc33f7ece051b64c388c81e19c605ba7d0bb39610580021c0752555d00000000000000000000000000003d00000000000000000000029133fd4005000642e5f02145f9517d20cacf903bf0360f3c237f272a69cb7b37c393f1bd27500d4daf6ad676b70c5007acbfd1c6cbd52b9bb071bfa8f304c180595173264411ad07592025bb3cb1b68470cb3473696d7ca69000602a1d4234297bbd53a8663ecd86b2429e9db25e1c9ed7f9bd8e84e28e3934ac5a4307c20989bcf6e10a0ae45dc6a55525f735ca3a50623b36aa801bb7f460e616f12d26065966e758b28d70de92af8c5feafd0056d8272dd99edfe0f5935f85ae240d494799705c07a7ed762f8bb03ac1fad10955c89260cefdff7186040e9b663b4bdb434edb79ad3563676f2376fd5c7d1a321dafb0d5acbdd02fb39bafb5f4adb6ba3e062c1a8a6d0a974f4642bbcaf5c2b4560b9b0b679cb895256389be95a63eef57e3e5992c3a2129d5eb964d133267a469b8114fd7031173d41944e3056f0fd1a29e35c7d36a119d82a7b5d477f152778d8672979d32e7007e24db81588452d7f0e15d4ec72b01fb1ef0e4cd77493f7c04ae2aa3f50998663fcbae86a3795c29a10404cc194d14e610bd7ab6a414e2971a169c540e8a0fa4d160ed8f88f1b8efc90fecfb35f3339d7b301c0680f7e0ee9121eb305ad216ba58e66b5cacbdda0355f8e5cea3d739892d9b75e1ddfbd206f3425f8da108a928aad29ba73b9d2e80b57bd24d8f3a14fea4e543d67488d29587f9b3e4157fa9ba79e2bf77d8606e01414030c742a17302b5882cc7cff132896b3732831084624a9f4c5d869b0f31c854cdac9551c7ee60f01e32a10474882254eb78a2a53b5c9f5bef5bffe2801e805d0c31ccb7edc4d8353b1ce555c192d517fdc602533613ab1a57f1c9efb2fe4ac8c0b205973271f5279503305125df03daa7b61d30bb8bd6ebd23ee8ca159419d48d1d1547777c24bf7747dc7af2611bd71a2fe35258645288d7808e9b7b2e5eb11b322bbbef3700f41ebc45dc000160fce95f396f06b69e685fe0d5301f53234e6a8a09bbe3966eb1d0923e509dff972d095aef216acaf15b76ef68941ed05c030269b8512c1b441767d5dcf329a356936ebefd60c1d8bc1af2b3086dd1f868ca394f3f7da10d3a580b4494c967b7c80a18d67fee8f25f1760ec768dbcfd22e6170bdf3330f54e439b8849a6bbb78416c26b9dda07b0496dd4135cbbcf3bf5c77e1dd4ec3a11124ff2d71e2b6411601ef9da433954a70cd76a482975a37961a2ab7898b06fcdc6892926e3d0355f08f265af2da20fcfe144614c4dfe2c8d47489708241bbbf8fa771d30ef806ff4737dda70499a64dfadbcad0385fa25f1e9a3c48df0286afec9ad3f032ded3065bd1f5585e13483669ff33163a7c2ad01564c9ba5347ca79fa4e91827a32f903766ddd2989068580f130b0ca20a1c076122e85e54b7b833176565217c2e5055a7841c0c6e917ba1c7d01d9758a0706e500755b55695bb4e8bf11d37dca082464fb7a7a673745a450a71112ec120e0150f465ca0404d5fe7850be3ddde7e2bda65c0b15c5628f6e761b0e58d994eba02168d618449deb750a6b0f973e9723b40dd93690cd96f54d0273415e794b2b43d97f997527177755b50453cc77fd9932f5222f98533dda9528806b4acb1a2f6d4f0614b01cb8412d52fb1cab8228bb6575f259b9490da03412337476a1bdfa535864079990fbf517f3718331c0ea52f1f8c90605f1ee60282e91c7f85dbff9fdc2043841ff356916f07737ff1a5d6ef97407ceddf9730cd694e7cdbb762a9f4acd35d31ebe9b1f6c71101258f4ebf62bd2718db48ab50839dde66e4347fc718a78d4b2fc49a78b059d99e01f31ddeff7123811ef0592199ba5a29a0673f05f0310211197cd2759cdde109bc3ed7f304f936dbfdaae2a0d6c5d659652f11ac814abb74680570f9259b1750500000004ee7cedd056ea28573cbb22aab365a57f2dba839a8cb9b5010e984d72436eb75d2efcf6e85374bcfbdd46e7ee49fa35d2bab7fa8936b5bedf7a3a766aff78e2620eff860319fd6c6b742f0bbcdacf1d23ce8f0bec1862ffa1edfbf53af16a572c807977aab77efde9669b0cc30012a81aa5eef1e04b1133e5a30159d510b0f1da011f"
}