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. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- 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
- typestring
The transaction type such as 0x0 for legacy, 0x1 for EIP-2930, 0x2 for EIP-1559
- chainIdstring
The chain ID of the blockchain encoded as hexadecimal
- noncestring
The number of transactions made by the sender before this one encoded as hexadecimal
- gasPricestring
(Optional) The legacy gas price in wei encoded as hexadecimal, present for legacy type 0x0 transactions and may be omitted for EIP-1559 transactions
- maxFeePerGasstring
(Optional) The max total fee per gas (EIP-1559) encoded as hexadecimal, present for type 0x2 transactions
- maxPriorityFeePerGasstring
(Optional) The max priority fee per gas (EIP-1559) encoded as hexadecimal, present for type 0x2 transactions
- gasstring
The gas provided by the sender encoded as hexadecimal
- tostring | null
The address of the receiver. null when it's a contract creation transaction
- valuestring
The value transferred in wei encoded as hexadecimal
- accessListarray
(Optional) The access list for EIP-2930 or EIP-1559 transactions, may be omitted or an empty array
- inputstring
The data sent along with the transaction
- rstring
The R field of the signature
- sstring
The S field of the signature
- yParitystring
(Optional) The parity bit of the signature used by typed transactions, mutually exclusive with v
- vstring
(Optional) The V field of the signature used by legacy transactions, mutually exclusive with yParity
- hashstring
The hash of the transaction
- blockHashstring | null
The hash of the block containing this transaction, null when it's a pending transaction
- blockNumberstring | null
The block number containing this transaction, null when it's a pending transaction
- transactionIndexstring | null
The index position of this transaction in the block, null when it's a pending transaction
- fromstring
The address of the sender
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"chainId": "0x2611",7"nonce": "0x1ba8",8"gasPrice": "0x47868c08",9"gas": "0x35f30",10"to": "0x3c2269811836af69497e5f486a85d7316753cf62",11"value": "0x0",12"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012200000000000000000000000000000000000000000000a0e70c49198e236d44b300000000000000000000000000000000000000000000000000000000042c1d800000000000000000000000000000000000000000000000000000000000000010",13"r": "0x8d724f264519e9fe948f2994be47b59a76d60464dcea41ab17ad3b7c989ec91",14"s": "0x7c494fb42332a434f49673fe58c475eeec2a101f0a73bff3a3d2bb98da115cc",15"v": "0x4c46",16"hash": "0xdf47d65dd845073ce2c6cdfd264d624bf87fc4210892b67b9bb5899d54a3c71c",17"blockHash": "0x3470f949d7b08fa655c7228dd7a05a36dd31ceaf67fb05b42664262f31922d87",18"blockNumber": "0xba2cd",19"transactionIndex": "0x0",20"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749"21}22}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"chainId": "0x2611",7"nonce": "0x1ba8",8"gasPrice": "0x47868c08",9"gas": "0x35f30",10"to": "0x3c2269811836af69497e5f486a85d7316753cf62",11"value": "0x0",12"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012200000000000000000000000000000000000000000000a0e70c49198e236d44b300000000000000000000000000000000000000000000000000000000042c1d800000000000000000000000000000000000000000000000000000000000000010",13"r": "0x8d724f264519e9fe948f2994be47b59a76d60464dcea41ab17ad3b7c989ec91",14"s": "0x7c494fb42332a434f49673fe58c475eeec2a101f0a73bff3a3d2bb98da115cc",15"v": "0x4c46",16"hash": "0xdf47d65dd845073ce2c6cdfd264d624bf87fc4210892b67b9bb5899d54a3c71c",17"blockHash": "0x3470f949d7b08fa655c7228dd7a05a36dd31ceaf67fb05b42664262f31922d87",18"blockNumber": "0xba2cd",19"transactionIndex": "0x0",20"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749"21}22}