Skip to main content

Parameters

chainId
string
default:"33111"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getTransactionByBlockHashAndIndex"
required
JSON-RPC method name.
params
object
required
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

result
oneOf
Transaction response object. Can be a legacy transaction (pre-EIP-2718) or an AccessList transaction (EIP-2930).