Send Private Transaction
This API is used to receive private transactions submitted by users, with the method name eth_sendPrivateTransaction
Request example
{
"jsonrpc": "2.0",
"id": "1",
"method": "eth_sendPrivateTransaction",
"params": ["0x…1b"] // signed raw transaction hash
}
Response Example
// Success
{
"jsonrpc":"2.0",
"id":"1",
"result":"01234" // tx hash
}
// Error
{
"jsonrpc":"2.0",
"id":"1",
"error":{
"code":-1234,
"message":"error"
}
}
Last updated