getrawtransaction - Zcash

Example code for the getrawtransaction json-rpc method. Сomplete guide on how to use getrawtransaction json-rpc in GetBlock.io Web3 documentation.

Parameters

txid - string

The transaction id.

verbose - numeric

Optional, default=0

If 0, return a string of hex-encoded data, otherwise return a JSON object

blockhash - string

Optional.

The block in which to look for the transaction.

Request

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getrawtransaction",
"params": ["5db76e43724d980e01b5b98c9a83ba2d7fa565b3aa22bb3c5728ea56d0ed7cee", 1, null],
"id": "getblock.io"}'

Response

Last updated

Was this helpful?