post https://dogeos-testnet.unifra.io/v1//eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash. In the response object, blockHash, blockNumber, and transactionIndex are null when the transaction is pending.
Returns the information about a transaction requested by transaction hash. In the response object, blockHash, blockNumber, and transactionIndex are null when the transaction is pending.
PARAMETERS
Transaction Hash - (required) A 32-byte hash of a transaction.
REQUEST
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0x493650c1985b3bd12dccb9a70edaa6cd70366d0acdb13af5343c1a31f1272aa9"
],
"id": 0
}RESPONSE
Result - A transaction object, or null when no transaction was found:
blockHash- Hash of the block where this transaction was in.nullwhen it's pending.blockNumber- Block number where this transaction was in.nullwhen it's pending.from- Address of the sender.gas- Gas provided by the sender.gasPrice- Gas price provided by the sender in Wei.hash- Hash of the transaction.input- The data sent along with the transaction.nonce- The number of transactions made by the sender prior to this one.to- Address of the receiver.nullwhen it's a contract creation transaction.transactionIndex- An integer of the transaction's index position in the block.nullwhen it's pending.value- Value transferred in Wei.v- ECDSA recovery ID.r- ECDSA signature r.s- ECDSA signature s.
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"blockHash": "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
"blockNumber": "0x2fa00",
"from": "0x871f1181aa63c988325539cf4b502e092595b50e",
"gas": "0xa21b",
"gasPrice": "0xef426c",
"maxFeePerGas": "0x1de8474",
"maxPriorityFeePerGas": "0x64",
"hash": "0x493650c1985b3bd12dccb9a70edaa6cd70366d0acdb13af5343c1a31f1272aa9",
"input": "0x39455d3a000000000000000000000000000000000000000000000000000000000016e3600000000000000000000000000000000000000000000000000000000004679ef9",
"nonce": "0x59c",
"to": "0x5300000000000000000000000000000000000002",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x2",
"accessList": [],
"chainId": "0x5fdaf3",
"v": "0x1",
"r": "0x4ad08a9517142acddf1cdd461040bfd19e84d6d9ee39f65476febe76d59eff1",
"s": "0x25b0ee4a429bc006447b4d9b01e745c906553464e204cb2b531d0cc4ac687760",
"yParity": "0x1"
}
}