debug_getRawTransaction
Method
- JSON-RPC method name:
debug_getRawTransaction - JSON-RPC version:
2.0
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Transaction hash | string | yes |
Parameter schema
{
"Transaction hash": {
"required": true,
"schema": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
Result
- Name:
EIP-2718 binary-encoded transaction - Type:
string
Result schema
{
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
}
Positional parameters
Parameter order:
Transaction hash
Errors
This method may return JSON-RPC standard errors (e.g. -32600, -32601, -32602, -32603) as well as application-specific errors.
TODO: Document method-specific error codes and conditions.