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
The transaction response object, or null if no transaction is found:
- typestring
The transaction type
- chainIdstring
(Conditional) The chain ID of the transaction, encoded as hexadecimal
- noncestring
The number of transactions made by the sender prior to this one encoded as hexadecimal
- gasPricestring
(Conditional) The gas price provided by the sender in wei, encoded as hexadecimal
- maxFeePerGasstring
(Type 2) Maximum total fee per gas, encoded as a hexadecimal quantity.
- maxPriorityFeePerGasstring
(Type 2) Maximum priority fee per gas, encoded as a hexadecimal quantity.
- gasstring
The gas provided by the sender, encoded as hexadecimal
- tostring
The address of the receiver. null when it's a contract creation transaction
- valuestring
The value transferred in wei encoded as hexadecimal
- accessListarray
(Type 2) Addresses and storage keys the transaction can access.
- inputstring
The data sent along with the transaction
- rstring
The R field of the signature
- sstring
The S field of the signature
- yParitystring
(Type 2) Parity of the transaction signature, encoded as a hexadecimal quantity.
- vstring
The standardized V field of the signature
- hashstring
The hash of the transaction
- blockHashstring
The hash of the block where this log was in. null when it's a pending log
- blockNumberstring
The block number where this log was in. null when it's a pending log
- transactionIndexstring
The integer of the transaction's index position that the log was created from. null when it's a pending log
- fromstring
The address of the sender
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"accessList": [],6"blockHash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",7"blockNumber": "0x1",8"chainId": "0x80ea",9"from": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",10"gas": "0x5208",11"gasPrice": "0x0",12"hash": "0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf",13"input": "0x",14"maxFeePerGas": "0x0",15"maxPriorityFeePerGas": "0x0",16"nonce": "0x0",17"r": "0x21d8e6fc75b02c8d344ee9a7da0ffae6fe1445771e1e21913a5518b327bac2f8",18"s": "0x702d075c8ecff34944ee0033c4ba9a2ee3922d475ca296809ca5c66f870db6b5",19"to": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",20"transactionIndex": "0x0",21"type": "0x2",22"v": "0x1",23"value": "0x0",24"yParity": "0x1"25}26}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"accessList": [],6"blockHash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",7"blockNumber": "0x1",8"chainId": "0x80ea",9"from": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",10"gas": "0x5208",11"gasPrice": "0x0",12"hash": "0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf",13"input": "0x",14"maxFeePerGas": "0x0",15"maxPriorityFeePerGas": "0x0",16"nonce": "0x0",17"r": "0x21d8e6fc75b02c8d344ee9a7da0ffae6fe1445771e1e21913a5518b327bac2f8",18"s": "0x702d075c8ecff34944ee0033c4ba9a2ee3922d475ca296809ca5c66f870db6b5",19"to": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",20"transactionIndex": "0x0",21"type": "0x2",22"v": "0x1",23"value": "0x0",24"yParity": "0x1"25}26}