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

Method eth_getCode

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

Source from the content-addressed store, hash-verified

236}
237
238string Eth::eth_getCode(string const& _address, string const& _blockNumber)
239{
240 try
241 {
242 return toJS(client()->codeAt(jsToAddress(_address), jsToBlockNumber(_blockNumber)));
243 }
244 catch (...)
245 {
246 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS));
247 }
248}
249
250void Eth::setTransactionDefaults(TransactionSkeleton& _t)
251{

Callers 1

eth_getCodeIMethod · 0.45

Calls 4

toJSFunction · 0.85
jsToAddressFunction · 0.85
jsToBlockNumberFunction · 0.85
codeAtMethod · 0.45

Tested by

no test coverage detected