debug
debug_getRawTransaction
Returns the raw signed transaction data for a given transaction hash. This is the exact bytes that were broadcast to the network.
Returns the raw signed transaction data for a given transaction hash. This is the exact bytes that were broadcast to the network.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Transaction hash. |
Returns
| Type | Description |
|---|---|
string | Hex-encoded signed transaction (RLP-encoded for legacy, or typed envelope for EIP-2718 transactions). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_getRawTransaction",
"params": ["0x01c5a8461d06c2c195035c148af0f871c7679841d86ae5bb98676bb2d8e68dfa"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x02f8730182..."
}
TRY IT
Notes
- The example uses a real PulseChain transaction from block
0x100000. - The raw transaction includes the signature (v, r, s) and can be used to recover the sender address.
- For EIP-1559 transactions, the result begins with the type byte (
0x02). - Returns
nullif the transaction is not found.
