Eth_getTransactionByBlockHashAndIndex

Get Transaction by Block Hash and Index

post

Retrieves the transaction from a block using the block's hash and the transaction's index position within the block.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 2.0
methodstringRequiredExample: eth_getTransactionByBlockHashAndIndex
paramsstring[] · min: 2 · max: 2Required

Parameters:

  1. blockHash (string): The 32-byte hash of the block.
  2. transactionIndex (string): The transaction index (hex).
idintegerRequiredExample: 1
Responses
chevron-right
200

A transaction object or null if no transaction was found.

application/json
jsonrpcstringOptionalExample: 2.0
idintegerOptionalExample: 1
resultone ofOptional
or
string · enumOptional

Null if no transaction was found.

Possible values:
post
/
200

A transaction object or null if no transaction was found.

Last updated