Parameters
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
An integer of the transaction index position encoded as a hexadecimal
Returns
The transaction response object or null if no transaction is found
The hash of the block where this transaction was included, null when pending
The block number where this transaction was included, null when pending
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 hash of the transaction
The data sent along with the transaction
The number of transactions made by the sender before this one encoded as hexadecimal
The address of the receiver, null when the transaction created a contract
The index position of the transaction in the block, null when pending
The value transferred in wei encoded as hexadecimal
The transaction type
The chain id of the transaction if present
The standardized V field of the transaction signature
The R field of the transaction signature
The S field of the transaction signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x6a370a193c5ccb811abf53e162a870a8f96c6cbc5b61eb8e6add51b983e407f1",6"blockNumber": "0x22b19b3",7"from": "0xaef7197e050a8eac5f94ea335d97847dd0a77fd4",8"gas": "0x989680",9"gasPrice": "0x5f5e100",10"hash": "0xad8b5a9c405d28b4ba5153abfeb7ddf0800e01d9a09ca2914297ff3d9760a334",11"input": "0x",12"nonce": "0x504293",13"to": "0x243e55d3233a2af3a8d92b1762296a5ad2c207a7",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x0",17"chainId": "0xc4",18"v": "0x1ac",19"r": "0x3ae2cb6b7f8bbb703ceb7dfe8b5255e675f2f31d01b1b44371c824308bc3b264",20"s": "0x6eb22ef873412d808396b4835149c0890a417215f7ff10266b42b2e8df66c226"21}22}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x6a370a193c5ccb811abf53e162a870a8f96c6cbc5b61eb8e6add51b983e407f1",6"blockNumber": "0x22b19b3",7"from": "0xaef7197e050a8eac5f94ea335d97847dd0a77fd4",8"gas": "0x989680",9"gasPrice": "0x5f5e100",10"hash": "0xad8b5a9c405d28b4ba5153abfeb7ddf0800e01d9a09ca2914297ff3d9760a334",11"input": "0x",12"nonce": "0x504293",13"to": "0x243e55d3233a2af3a8d92b1762296a5ad2c207a7",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x0",17"chainId": "0xc4",18"v": "0x1ac",19"r": "0x3ae2cb6b7f8bbb703ceb7dfe8b5255e675f2f31d01b1b44371c824308bc3b264",20"s": "0x6eb22ef873412d808396b4835149c0890a417215f7ff10266b42b2e8df66c226"21}22}