Home

Get transaction logs by transaction hash

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

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

The erigon_getLogsByHash method returns all logs generated by a specific transaction.

This Erigon-specific method provides detailed log information for a transaction including:

  • Contract addresses that emitted logs
  • Log topics and data
  • Block information
  • Transaction position and log index

This method is useful for analyzing smart contract events and debugging transactions.

Body

application/json

The erigon_getLogsByHash method returns all logs generated by a specific transaction.

This Erigon-specific method provides detailed log information for a transaction including:

  • Contract addresses that emitted logs
  • Log topics and data
  • Block information
  • Transaction position and log index

This method is useful for analyzing smart contract events and debugging transactions.

Request payload for Get transaction logs by transaction hash.

jsonrpcstring2.0required

JSON-RPC version identifier

methodstringerigon_getLogsByHashrequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<string>required

Array containing transaction hash

Response

200OK

Successful transaction logs response

400Bad Request

Invalid request parameters

401Unauthorized

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

404Not Found

Transaction not found or no logs

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

Internal server error