eth_getTransactionByHash - Ethereum
The method recalls the transaction data after you enter its hash
How to Use the eth_getTransactionByHash Method
Parameters
DATA, 32 Bytes - a transaction’s hash params:
What you receive
Object - An object of transaction, or returns null in case no transaction was found:
blockHash: DATA, 32 Bytes - the block’s hash where this transaction was located. returns null in case of a pending log.
blockNumber: the number of a block related to the chosen transaction. null when its pending.
from: 20 Bytes - the sender’s address.
to: 20 Bytes - the receiver’s address. returns null if a transaction relates to smart contract creation.
gasPrice: gas price that the sender did provide. represented in Wei.
gas: gas amount that the sender provided.
input: which data was sent along the transaction.
hash: 32 Bytes - the transaction’s hash.
nonce: how many transactions were sent from one address before the current one.
transactionIndex: integer of the transactions index position in the block. returns null in case of a pending log.
value: value represented in Wei.
v: QUANTITY - ECDSA recovery id
r: DATA, 32 Bytes - ECDSA signature r
s: DATA, 32 Bytes - ECDSA signature s
Sample
Here is a typical appliance example.
Call
Outcome
Last updated