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

Method eth_getTransactionCount

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

Source from the content-addressed store, hash-verified

160}
161
162string Eth::eth_getTransactionCount(string const& _address, string const& _blockNumber)
163{
164 try
165 {
166 return toJS(client()->countAt(jsToAddress(_address), jsToBlockNumber(_blockNumber)));
167 }
168 catch (...)
169 {
170 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS));
171 }
172}
173
174Json::Value Eth::eth_getBlockTransactionCountByHash(string const& _blockHash)
175{

Callers 1

Calls 4

toJSFunction · 0.85
jsToAddressFunction · 0.85
jsToBlockNumberFunction · 0.85
countAtMethod · 0.45

Tested by

no test coverage detected