debug_preimage
Debug & Trace | Arbitrum
debug_preimage | Arbitrum
Arbitrum API method that returns the preimage for a given Keccak-256 hash. In Ethereum’s state trie, account addresses are stored as their Keccak-256 hashes.
POST
debug_preimage
Arbitrum API method that returns the preimage for a given Keccak-256 hash. In Ethereum’s state trie, account addresses are stored as their Keccak-256 hashes. This method allows retrieving the original data (preimage) that was hashed. The node must have preimage recording enabled for this method to return results.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Learn how to deploy a node with the debug and trace API methods enabled.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
hash— the Keccak-256 hash to look up the preimage for, encoded as a hex string.
Response
data— the raw preimage bytes as a hex string. Returns an error if the preimage is not found.
debug_preimage code examples
Use case
Thedebug_preimage method is useful for resolving Keccak-256 hashes back to their original values. In the state trie, account addresses and storage keys are stored as hashes. This method allows developers building state analysis tools to reverse-lookup hashes to their original addresses or data, which is essential for tools like state diff visualizers and trie explorers.Last modified on May 18, 2026