| 172 | } |
| 173 | |
| 174 | Json::Value Eth::eth_getBlockTransactionCountByHash(string const& _blockHash) |
| 175 | { |
| 176 | try |
| 177 | { |
| 178 | h256 blockHash = jsToFixed<32>(_blockHash); |
| 179 | if (!client()->isKnown(blockHash)) |
| 180 | return Json::Value(Json::nullValue); |
| 181 | |
| 182 | return toJS(client()->transactionCount(blockHash)); |
| 183 | } |
| 184 | catch (...) |
| 185 | { |
| 186 | BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS)); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | Json::Value Eth::eth_getBlockTransactionCountByNumber(string const& _blockNumber) |
| 191 | { |
no test coverage detected