| 188 | } |
| 189 | |
| 190 | Json::Value Eth::eth_getBlockTransactionCountByNumber(string const& _blockNumber) |
| 191 | { |
| 192 | try |
| 193 | { |
| 194 | BlockNumber blockNumber = jsToBlockNumber(_blockNumber); |
| 195 | if (!client()->isKnown(blockNumber)) |
| 196 | return Json::Value(Json::nullValue); |
| 197 | |
| 198 | return toJS(client()->transactionCount(jsToBlockNumber(_blockNumber))); |
| 199 | } |
| 200 | catch (...) |
| 201 | { |
| 202 | BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS)); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | Json::Value Eth::eth_getUncleCountByBlockHash(string const& _blockHash) |
| 207 | { |
no test coverage detected