debug_getRawTransaction
JSON-RPC method returns the raw transaction data for a specific transaction. This method provides the complete transaction in its raw encoded format, useful for low-level transaction analysis, custom parsing, and applications that need direct access to the transaction’s binary representation.
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
- Transaction hash (string, required): The hash of the transaction to retrieve
Response
The method returns the raw transaction data in hexadecimal format.Response structure
Raw transaction data:result
— Complete raw transaction data encoded in hexadecimal format
Usage example
Basic implementation
Example request
Shell
Use cases
Thedebug_getRawTransaction
method is essential for applications that need to:
- Transaction analysis: Perform low-level analysis of transaction structures
- Custom parsing: Implement custom transaction parsing and validation
- Development tools: Build transaction debugging and analysis tools
- Data archival: Archive complete transaction data in raw format
- Forensic investigation: Perform detailed forensic analysis of transactions
- Protocol research: Research transaction format and encoding details
- Cross-chain verification: Verify transactions across different systems
- Security analysis: Analyze transaction security and validation
- Academic research: Support academic research on blockchain transactions
- Compliance tools: Build regulatory compliance and auditing systems
Body
application/json