Eth_getTransactionByBlockNumberAndIndex

Get Transaction by Block Number and Index

post

Returns the information about a transaction using the block number and the transaction index within the block.

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

Parameters:

  1. Block number in hex format (e.g., "0x5daf3b")
  2. Transaction index in the block (e.g., "0x0")
idintegerRequiredExample: 1
Responses
chevron-right
200

A transaction object, or null if not found.

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

Null if no transaction found.

Possible values:
post
/
200

A transaction object, or null if not found.

Last updated