Home

Get Transaction by Block Hash and Index

POST
https://eth-sepolia.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

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

Body

application/json

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

Request payload for Get Transaction by Block Hash and Index.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

JSON-RPC method name.

paramsArray<string>required

Parameters:

  1. blockHash (string): The 32-byte hash of the block.
  2. transactionIndex (string): The transaction index (hex).
idintegerrequired

Client-provided request identifier echoed in the response.

Response

200OK

A transaction object or null if no transaction was found.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Upstream node or gateway error.