Parameters for eth_getTransactionByBlockHashAndIndex: [blockHash, index].Positional parameters for eth_getTransactionByBlockHashAndIndex:
params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.
params[1]: Integer of the transaction index position.
Returns
oneOf
Transaction response object. Can be a legacy transaction (pre-EIP-2718) or an AccessList transaction (EIP-2930).
Show variants
object
Legacy transaction (pre-EIP-2718).
Show properties
string
32 Bytes - hash of the transaction.
integer
Quantity - (optional) Integer of a nonce. This allows you to overwrite your own pending transactions that use the same nonce.
string
32 Bytes - hash of the block where this transaction was included. Null when pending.
oneOf
Block number where this transaction was included. Null when pending.
Show variants
integer
string
integer
The transaction’s index position in the block. Null when pending.
string
20 Bytes - The address the transaction is sent from.
string
20 Bytes - The address the transaction is directed to. (Optional when creating new contract)
integer
Quantity - (optional) Integer of the value sent with this transaction.
integer
Quantity - (optional) Integer of the gas price used for each paid gas.
integer
Quantity - (optional) Integer of the gas provided for the transaction execution. (eth_call consumes zero gas)
string
The data sent along with the transaction.
integer
The standardised V field of the signature.
integer
The standardised V field of the signature (0 or 1). Only applicable to legacy transactions.
integer
The R field of the signature.
string
Raw transaction data.
string
Public key of the signer.
integer
The chain id of the transaction, if any.
string
Creates contract hash.
oneOf
Conditional submission of the transaction. Can be an object with a block number ({ block: 1 }), a UTC timestamp in seconds ({ time: 1491290692 }), or null.
Show variants
object
Show properties
integer
Block number condition
object
Show properties
integer
UTC timestamp condition in seconds
allOf
Legacy transaction (pre-EIP-2718).
Show variants
object
Legacy transaction (pre-EIP-2718).
object
AccessList transaction (EIP-2930). Extends LegacyTransaction but omits standardV.
Show properties
string
Transaction type (EIP-2930). Fixed value “0x1” for accessList transactions.
array
List of objects specifying the address (20 Bytes) and storageKeys (32 Byte items) that will be accessed.