You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The to field should always be present in the RPC response for eth_getTransactionByHash, with a null value for contract creation transactions.
Actual behaviour
The to field is sometimes missing in RPC responses for contract creation transactions when querying via eth_getTransactionByHash shortly after the transaction is processed. The field appears correctly (as null) when querying again after a few minutes.
Steps to reproduce the behaviour
Submit a contract creation transaction on Optimism Mainnet.
Immediately after the transaction is processed, query it using eth_getTransactionByHash.
Observe that the to field is missing from the response.
Wait for a few minutes and query the same transaction again.
Observe that the to field is now present and correctly set to null.
Example transaction: 0x43c713b640309fd7c28c61f5ad3f4e0c34404519b5171670e646b7a5c22b620a
Additional context
This issue was observed on Optimism Mainnet.
It affects blocks in the range 126647700 to 126647748.
Questions
Is this a known issue or intended behavior?
Could this be related to indexing delays, state trie updates, or caching mechanisms?
Are there any Optimism-specific optimizations that might cause this?
The text was updated successfully, but these errors were encountered:
System information
Expected behaviour
The
to
field should always be present in the RPC response foreth_getTransactionByHash
, with anull
value for contract creation transactions.Actual behaviour
The
to
field is sometimes missing in RPC responses for contract creation transactions when querying viaeth_getTransactionByHash
shortly after the transaction is processed. The field appears correctly (asnull
) when querying again after a few minutes.Steps to reproduce the behaviour
eth_getTransactionByHash
.to
field is missing from the response.to
field is now present and correctly set tonull
.Example transaction: 0x43c713b640309fd7c28c61f5ad3f4e0c34404519b5171670e646b7a5c22b620a
Additional context
Questions
The text was updated successfully, but these errors were encountered: