| 325 | } |
| 326 | |
| 327 | string Eth::eth_sendRawTransaction(std::string const& _rlp) |
| 328 | { |
| 329 | try |
| 330 | { |
| 331 | if (client()->injectTransaction(jsToBytes(_rlp, OnFailed::Throw)) == ImportResult::Success) |
| 332 | { |
| 333 | Transaction tx(jsToBytes(_rlp, OnFailed::Throw), CheckTransaction::None); |
| 334 | return toJS(tx.sha3()); |
| 335 | } |
| 336 | else |
| 337 | return toJS(h256()); |
| 338 | } |
| 339 | catch (...) |
| 340 | { |
| 341 | BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS)); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | string Eth::eth_call(Json::Value const& _json, string const& _blockNumber) |
| 346 | { |
no test coverage detected