Returns information about a transaction for a given hash.


  • TRANSACTION-HASH [required] a string representing the hash (32 bytes) of a transaction.


curl \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_getTransactionByHash", "params": ["0xbfd5ac780d84990912e5b64a94de421fb3c64db15576eff80860251c43dacd0f"]}'


  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    // block Hash
    "blockHash": "0xe429155011f1e8bcd46802dd261c6855e5fe3ed4d1622d047920e40dcb0e0da8",
    // block number
    "blockNumber": "0x658a13",
    // address of the sender.
    "from": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
    //  address of the receiver. null when it's a contract creation transaction.
    "to": "0x1fb8a3f0a7fee2e7424c1a5ea3b0ad3b7cce33d4",
    // gas provided by the sender.
    "gas": "0xc350",
    // gas price provided by the sender in Wei.
    "gasPrice": "0x3b9aca00",
    // hash of the transaction.
    "hash": "0xbfd5ac780d84990912e5b64a94de421fb3c64db15576eff80860251c43dacd0f",
    // the data sent along with the transaction.
    "input": "0x",
    // the number of transactions made by the sender prior to this one.
    "nonce": "0xf8680e",
    // the transaction's index position in the block, in hexadecimal. null when it's pending.
    "transactionIndex": "0x0",
    // value transferred in Wei.
    "value": "0x1b5b85a213cb2f1",
    // transaction type
    "type": "0x0",
    // chain ID specifying the network
    "chainId": "0x1",
    // ECDSA recovery ID.
    "v": "0x25",
    // ECDSA signature r.
    "r": "0xa8069bc4927bceb52abfd561b8b035dd712125da9af6591ccc3aa7d38c084d7a",
    // ECDSA signature s.
    "s": "0x2545b52af4e8d8ae9201ca64cddbf7a09af3399d3442a004989e3fa1147ed7a9"

transaction type see the: Transaction Type

Last updated