Skip to main content

eth_getTransactionByHash

POST 

/

Returns the information about a transaction by its transaction hash.

Parameters:

  • hash: the hash of a transaction.

Returns:

  • result: a transaction object, or null when no transaction was found.
  • hash: hash of the transaction.
  • nonce: the number of transactions made by the sender prior to this one.
  • blockHash: hash of the block where this transaction is in, or null when it's pending.
  • blockNumber: block number where this transaction was in, or null when it's a pending block.
  • transactionIndex: integer of the transactions index position in the block, or null when it's pending.
  • from: address of the sender.
  • to: address of the receiver, or null when it's a contract creation transaction.
  • value: value transferred in wei.
  • gasPrice: gas price provided by the sender in wei.
  • gas: gas provided by the sender.
  • input: the data sent along with the transaction.
  • type: the type of the transaction.
  • v: ECDSA recovery id.
  • r: ECDSA signature r.
  • s: ECDSA signature s.

Example:

"params": [
"0xcf1911356099c562421c4ce7bc47707a39866094f9102cb891cf2cb0194d95d1"
]

Request

Query Parameters

    apikey stringrequired

    Your API key

Body

    id integer
    jsonrpc string
    method string
    params string[]

Responses

Successful response

Schema

    jsonrpc string
    id integer
    result string
Loading...