MCPcopy Create free account
hub / github.com/LUX-Core/lux / eth_sendRawTransaction

Method eth_sendRawTransaction

src/cpp-ethereum/libweb3jsonrpc/Eth.cpp:327–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327string 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
345string Eth::eth_call(Json::Value const& _json, string const& _blockNumber)
346{

Callers 1

Calls 4

jsToBytesFunction · 0.85
toJSFunction · 0.85
injectTransactionMethod · 0.80
sha3Method · 0.45

Tested by

no test coverage detected