eth_getTransactionByHash
Retrieves detailed information about a specific transaction using its hash
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getTransactionByHash","params":["0xb1fac2cb5074a4eda8296faebe3b5a3c10b48947dd9a738b2fdf859be0e1fbaf"],"id":1,"jsonrpc":"2.0"}'
'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2",
"blockNumber": "0x5daf3b",
"hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b",
"input": "0x68656c6c6f21",
"r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea",
"s": "0x4ba69724e8f69de52f0125ad8b3c5c2cef33019bac3249e2c0a2192766d1721c",
"v": "0x25",
"gas": "0xc350",
"from": "0xa7d9ddbe1f17865597fbd27ec712455208b6b76d",
"transactionIndex": "0x41",
"to": "0xf02c1c8e6114b1dbe8937a39260b5b0a374432bb",
"type": "0x0",
"value": "0xf3dbb76162000",
"nonce": "0x15",
"gasPrice": "0x4a817c800"
}
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | array of strings | |
hash | string | The hash of the transaction to retrieve. |
Response
200
The transaction object if found, or null if no transaction is found with the given hash.Name | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | object |