diff --git a/rpc/api.go b/rpc/api.go index 8a0d759c1..620509cef 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -63,7 +63,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err case "eth_mining": *reply = api.xeth().IsMining() case "eth_hashrate": - *reply = api.xeth().HashRate() + *reply = newHexNum(api.xeth().HashRate()) case "eth_gasPrice": v := xeth.DefaultGas() *reply = newHexData(v.Bytes())