| 160 | } |
| 161 | |
| 162 | string 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 | |
| 174 | Json::Value Eth::eth_getBlockTransactionCountByHash(string const& _blockHash) |
| 175 | { |
no test coverage detected