To use the eth_getTransactionByHash method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.
Parameters
The hash of a transaction
Returns
The transaction response object, or null if no transaction is found:
The hash of the block where this transaction was in. null when it's a pending log
The block number where this transaction was in. null when it's a pending log
The address of the sender
The gas provided by the sender, encoded as hexadecimal
The gas price provided by the sender in wei encoded as hexadecimal
The maximum fee per gas set in the transaction
The maximum priority gas fee set in the transaction
The hash of the transaction
The data sent along with the transaction
The number of transactions made by the sender prior to this one encoded as hexadecimal
The address of the receiver. null when its a contract creation transaction
The integer of the transaction's index position that the log was created from. null when it's a pending log
The value transferred in wei encoded as hexadecimal
The transaction type
A list of addresses and storage keys that the transaction plans to access
The chain id of the transaction, if any
The standardized V field of the signature
The R field of the signature
The S field of the signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x863eb4e1084f11c3662c76786cef2bfd120b7d3f27302ebda967eec4b14ccff8",6"blockNumber": "0x3a09c",7"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",8"gas": "0xf4240",9"gasPrice": "0x0",10"hash": "0x71ec1b60298dbb295aaf2c18561f41686e88fd1edfe9bf9a0059170d327d25e7",11"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",12"nonce": "0x3a09b",13"to": "0x4200000000000000000000000000000000000015",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x2",17"v": "0x0",18"r": "0x0",19"s": "0x0"20}21}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x863eb4e1084f11c3662c76786cef2bfd120b7d3f27302ebda967eec4b14ccff8",6"blockNumber": "0x3a09c",7"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",8"gas": "0xf4240",9"gasPrice": "0x0",10"hash": "0x71ec1b60298dbb295aaf2c18561f41686e88fd1edfe9bf9a0059170d327d25e7",11"input": "0x440a5e20000007d0000dbba0000000000000000b00000000672cc02300000000014282c2000000000000000000000000000000000000000000000000000000032b5a2481000000000000000000000000000000000000000000000000000000000007dcc27f63f53bba0ae499651943bdda527a116df9f2529fd15b88be3b9bc46094d9ad0000000000000000000000002f60a5184c63ca94f82a27100643dbabe4f3f7fd",12"nonce": "0x3a09b",13"to": "0x4200000000000000000000000000000000000015",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x2",17"v": "0x0",18"r": "0x0",19"s": "0x0"20}21}