getrawtransaction - Dash

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 (hex)

The TXID of the transaction to get, encoded as hex in RPC byte order.

verbose - bool

Optional.

Updated in Dash Core 0.12.3 / Bitcoin Core 0.14.0

Set to false (the default) to return the serialized transaction as hex. Set to true to return a decoded transaction in JSON. Before 0.12.3, use 0 and 1, respectively.

Block Hash - bool

Optional.

Added in Dash Core 0.16.0

The hash of 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": ["83dc6c8e03026c0317885f62a7072dfde10014967f59477a0f7b5fc52f44a784", false, null],
"id": "getblock.io"}'

Response

Last updated

Was this helpful?