eth_getTransactionByHash-polygon

Returns the information about a transaction requested by transaction hash.

Parameters

  • DATA, 32 Bytes - hash of a transaction
curl https://polygon-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"eth_getTransactionByHash",
    "params":[
        "0xf51da80447a90eefccf990f7382cef349d5f91fd896211c87338526eb6ebb359"
    ]
}'

Returns

  • Object - A transaction object, or null when no transaction was found:
    • blockHash: DATA, 32 Bytes - hash of the block where this transaction was in. null when its pending.
    • blockNumber: QUANTITY - block number where this transaction was in. null when its pending.
    • from: DATA, 20 Bytes - address of the sender.
    • gas: QUANTITY - gas provided by the sender.
      gasPrice: QUANTITY - gas price provided by the sender in Wei.
    • hash: DATA, 32 Bytes - hash of the transaction.
    • input: DATA - the data send along with the transaction.
    • nonce: QUANTITY - the number of transactions made by the sender prior to this one.
    • to: DATA, 20 Bytes - address of the receiver. null when its a contract creation transaction.
    • transactionIndex: QUANTITY - integer of the transactions index position in the block. null when its pending.
    • value: QUANTITY - value transferred in Wei.
    • v: QUANTITY - ECDSA recovery id
    • r: QUANTITY - ECDSA signature r
    • s: QUANTITY - ECDSA signature s
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "blockHash": "0xfad52748fecb201cfb2f0d1e64c60cddd8a5763dfd450334f526543161d71482",
    "blockNumber": "0x2f8e24a",
    "from": "0x8aa78a2b3752a605af5d8a13cb99ffd0493c45aa",
    "gas": "0x5208",
    "gasPrice": "0xf89c9b666",
    "maxFeePerGas": "0x1176c33a14",
    "maxPriorityFeePerGas": "0x6fc23ac00",
    "hash": "0xf51da80447a90eefccf990f7382cef349d5f91fd896211c87338526eb6ebb359",
    "input": "0x",
    "nonce": "0x21",
    "to": "0x999dc5365347d15c147ebdae40c0169861ee5185",
    "transactionIndex": "0x23",
    "value": "0x4db732547630000",
    "type": "0x2",
    "accessList": [],
    "chainId": "0x89",
    "v": "0x0",
    "r": "0xc6e4980405d66e2f19980243ce5cdf86942383a97e7fc609c45fd340b835e337",
    "s": "0x1ad77b3094d23e880255c4b7c31cbd2ae4500e5b05f3add07535a6b415d5d886"
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!