Home

Get a transaction by block hash and index

POST
https://vinu.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.

Changed in the 29 August 2026 network upgrade.

  • authorizationList is returned on EIP-7702 set-code transactions (type: "0x4"), supported since the 29 August 2026 upgrade.
  • feeRefund is now omitted when the node has no refund value for the transaction - most visibly on transactions still in the pool, where "0x0" used to be returned. Treat a missing feeRefund as unknown, not as zero.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsArray<string>required

Parameters:

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

Response

200OK

A transaction object or null if no transaction was found.

405Method Not Allowed

Method not served by this endpoint. The body is the plain-text string Method Not Allowed, not JSON.

422Unprocessable Entity

Missing API key - the api-key header was absent. The body is the plain-text string Missing API_key, not JSON.