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

Method eth_getStorageAt

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

Source from the content-addressed store, hash-verified

117}
118
119string Eth::eth_getStorageAt(string const& _address, string const& _position, string const& _blockNumber)
120{
121 try
122 {
123 return toJS(toCompactBigEndian(client()->stateAt(jsToAddress(_address), jsToU256(_position), jsToBlockNumber(_blockNumber)), 32));
124 }
125 catch (...)
126 {
127 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS));
128 }
129}
130
131string Eth::eth_getStorageRoot(string const& _address, string const& _blockNumber)
132{

Callers 1

eth_getStorageAtIMethod · 0.45

Calls 6

toJSFunction · 0.85
toCompactBigEndianFunction · 0.85
jsToAddressFunction · 0.85
jsToU256Function · 0.85
jsToBlockNumberFunction · 0.85
stateAtMethod · 0.45

Tested by

no test coverage detected