Skip to main content

eth_sendRawTransaction


Method

  • JSON-RPC method name: eth_sendRawTransaction
  • JSON-RPC version: 2.0

Parameters

NameTypeRequiredDescription
Transactionstringyes

Parameter schema

{
"Transaction": {
"required": true,
"schema": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
}
}
}

Result

  • Name: Transaction hash
  • Type: string

Result schema

{
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}

Positional parameters

Parameter order:

  1. Transaction

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.