hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Update `eth_getTransactionByHash` and `eth_getTransactionReceipt` to pass a timestamp in mirror node queries

Open victor-yanev opened this issue 1 year ago • 0 comments
trafficstars

Update the eth_getTransactionByHash and eth_getTransactionReceipt methods to:

  • fetch the transaction from the transactions/{transactionId} endpoint
  • extract the consensus timestamp from the fetched transaction
  • pass it as a timestamp parameter when calling getLogsWithParams and resolveEvmAddress

This modification ensures that transaction data is retrieved within the allowed time range under the new API restrictions.

victor-yanev avatar Sep 30 '24 10:09 victor-yanev