eth_getTransactionByBlockHashAndIndex
Summary: Returns information about a transaction by block hash and transaction index position.
Parameters
Block hash
string32 byte hex value
Transaction index
stringhex encoded unsigned integer
Returns
Transaction information
oneOf
Not Found (null)
nullNot Found (null)
Transaction information
allOfTransaction information
Contextual information
Contextual information
Signed 4844 Transaction
allOfSigned 4844 Transaction
EIP-4844 transaction.
objectEIP-4844 transaction.
type
stringhex encoded byte
nonce
stringhex encoded unsigned integer
to
stringhex encoded address
gas
stringhex encoded unsigned integer
value
stringhex encoded unsigned integer
input
stringhex encoded bytes
maxPriorityFeePerGas
stringMaximum fee per gas the sender is willing to pay to miners in wei
maxFeePerGas
stringThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
maxFeePerBlobGas
stringThe maximum total fee per gas the sender is willing to pay for blob gas in wei
accessList
arrayEIP-2930 access list
Access list entry
objectAccess list entry
address
stringhex encoded address
storageKeys
array
32 byte hex value
string32 byte hex value
blobVersionedHashes
arrayList of versioned blob hashes associated with the transaction's EIP-4844 data blobs.
32 byte hex value
string32 byte hex value
chainId
stringChain ID that this transaction is valid on.
EIP-4844 transaction signature properties.
EIP-4844 transaction signature properties.
Signed 1559 Transaction
allOfSigned 1559 Transaction
EIP-1559 transaction.
objectEIP-1559 transaction.
type
stringtype
nonce
stringhex encoded unsigned integer
to
oneOfto address
Contract Creation (null)
nullContract Creation (null)
Address
stringhex encoded address
gas
stringhex encoded unsigned integer
value
stringhex encoded unsigned integer
input
stringhex encoded bytes
maxPriorityFeePerGas
stringMaximum fee per gas the sender is willing to pay to miners in wei
maxFeePerGas
stringThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
gasPrice
stringThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
accessList
arrayEIP-2930 access list
Access list entry
objectAccess list entry
address
stringhex encoded address
storageKeys
array
32 byte hex value
string32 byte hex value
chainId
stringChain ID that this transaction is valid on.
EIP-1559 transaction signature properties.
EIP-1559 transaction signature properties.
Signed 2930 Transaction
allOfSigned 2930 Transaction
EIP-2930 transaction.
objectEIP-2930 transaction.
type
stringtype
nonce
stringhex encoded unsigned integer
to
oneOfto address
Contract Creation (null)
nullContract Creation (null)
Address
stringhex encoded address
gas
stringhex encoded unsigned integer
value
stringhex encoded unsigned integer
input
stringhex encoded bytes
gasPrice
stringThe gas price willing to be paid by the sender in wei
accessList
arrayEIP-2930 access list
Access list entry
objectAccess list entry
address
stringhex encoded address
storageKeys
array
32 byte hex value
string32 byte hex value
chainId
stringChain ID that this transaction is valid on.
EIP-2930 transaction signature properties.
EIP-2930 transaction signature properties.
Signed Legacy Transaction
allOfSigned Legacy Transaction
Legacy transaction.
objectLegacy transaction.
type
stringtype
nonce
stringhex encoded unsigned integer
to
oneOfto address
Contract Creation (null)
nullContract Creation (null)
Address
stringhex encoded address
gas
stringhex encoded unsigned integer
value
stringhex encoded unsigned integer
input
stringhex encoded bytes
gasPrice
stringThe gas price willing to be paid by the sender in wei
chainId
stringChain ID that this transaction is valid on.
Legacy transaction signature properties.
Legacy transaction signature properties.
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_getTransactionByBlockHashAndIndex",
"params": [],
});