Skip to main content
Version: 3.1.0

Get Transaction By Hash

eth_getTransactionByHash

eth_getTransactionByHash Gets the information about a transaction requested by transaction hash. This function requires input as follows:

  • URL 1 : RPC endpoint (Blockchain URL).
  • ID 2 : RPC ID(Optional), used when calling multiple asynchronous RPC calls to differentiate your response data from each other.
  • Hash 3 : Transaction hash.

Eth Get Transaction By Hash

The returned Response 4 is a struct that holds the JSON- info of the header and body of the response as well as https status code.

note

If Success is True that only means that the response from the Blockchain was successful only.

If Transaction Found is True that only means that the Response was successful and the Transaction Info was found.

If successful, returns the Transaction Info 6 which contains transaction data of the given hash.