hedera-json-rpc-relay
hedera-json-rpc-relay copied to clipboard
Update `eth_getTransactionByHash` and `eth_getTransactionReceipt` to pass a timestamp in mirror node queries
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
timestampparameter when callinggetLogsWithParamsandresolveEvmAddress
This modification ensures that transaction data is retrieved within the allowed time range under the new API restrictions.