Parameters
- blockNumberstringREQUIRED
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
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject | null
The transaction response object, or null if no transaction is found
- blockHashstring
Hash of the block that includes this transaction, null if pending
- blockNumberstring
Block number where this transaction was included encoded as a hexadecimal string, null if pending
- blockTimestampstring
The timestamp of the block where this transaction was included, encoded as hexadecimal
- fromstring
Address of the transaction sender
- gasstring
Gas limit provided by the sender encoded as a hexadecimal string
- gasPricestring
Gas price provided by the sender in wei encoded as a hexadecimal string; may appear alongside EIP-1559 fee fields
- maxFeePerGasstring
(Optional) Maximum total fee per gas in wei encoded as a hexadecimal string (EIP-1559)
- maxPriorityFeePerGasstring
(Optional) Maximum priority fee per gas in wei encoded as a hexadecimal string (EIP-1559)
- hashstring
Hash of the transaction
- inputstring
Hex-encoded calldata sent with the transaction
- noncestring
Number of transactions sent by the sender before this one encoded as a hexadecimal string
- tostring
Receiver address, null if the transaction creates a contract
- transactionIndexstring
Index position of the transaction within the block encoded as a hexadecimal string, null if pending
- valuestring
Amount of wei transferred encoded as a hexadecimal string
- typestring
The transaction type as a hexadecimal string (e.g., 0x2 for EIP-1559)
- chainIdstring
Chain ID encoded as a hexadecimal string
- vstring
Recovery identifier or y-parity value (0x0 or 0x1) for the signature
- rstring
R component of the transaction signature
- sstring
S component of the transaction signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x2",6"chainId": "0xa5bf",7"nonce": "0x2c7",8"gas": "0x6b5d",9"maxFeePerGas": "0x324a9a700",10"maxPriorityFeePerGas": "0x59682f00",11"to": "0xfeec000000000000000000000000000000000000",12"value": "0x0",13"accessList": [],14"input": "0xe789744400000000000000000000000020c0000000000000000000000000000000000001",15"r": "0x6cc9a8722f7586ccc30c88e75bd620ed40d84f548c053d6511d9a15acdf87ce4",16"s": "0x18e5fa3477f0c3a9201cf7db6571078df107d1746e29645a6a50556ce4c679f6",17"yParity": "0x0",18"v": "0x0",19"hash": "0x65fd05c6d7ba5f032fe9f99274b6e82920fdc1f5521b95d91067dff1fbc52564",20"blockHash": "0x5157d3f0006a2c4cccc8c2a0a396a37d74d2469f0ac99d04b7d68c9b694ab906",21"blockNumber": "0x2ac5b2",22"transactionIndex": "0x0",23"from": "0xc910aa885a3b90d837d474950318767070fffa76",24"gasPrice": "0x2ad741300"25}26}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x2",6"chainId": "0xa5bf",7"nonce": "0x2c7",8"gas": "0x6b5d",9"maxFeePerGas": "0x324a9a700",10"maxPriorityFeePerGas": "0x59682f00",11"to": "0xfeec000000000000000000000000000000000000",12"value": "0x0",13"accessList": [],14"input": "0xe789744400000000000000000000000020c0000000000000000000000000000000000001",15"r": "0x6cc9a8722f7586ccc30c88e75bd620ed40d84f548c053d6511d9a15acdf87ce4",16"s": "0x18e5fa3477f0c3a9201cf7db6571078df107d1746e29645a6a50556ce4c679f6",17"yParity": "0x0",18"v": "0x0",19"hash": "0x65fd05c6d7ba5f032fe9f99274b6e82920fdc1f5521b95d91067dff1fbc52564",20"blockHash": "0x5157d3f0006a2c4cccc8c2a0a396a37d74d2469f0ac99d04b7d68c9b694ab906",21"blockNumber": "0x2ac5b2",22"transactionIndex": "0x0",23"from": "0xc910aa885a3b90d837d474950318767070fffa76",24"gasPrice": "0x2ad741300"25}26}