diff --git a/rpc/api.go b/rpc/api.go
index f2915f658e4061c48fcaa6dec80ab40ec523873d..2b81fdd2ba7d1b5f946fb23a5a3aae978384ed9a 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -122,8 +122,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
 		if err != nil {
 			return err
 		}
-
-		*reply = api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address)
+		count := api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address)
+		*reply = common.ToHex(big.NewInt(int64(count)).Bytes())
 	case "eth_getBlockTransactionCountByHash":
 		args := new(GetBlockByHashArgs)
 		if err := json.Unmarshal(req.Params, &args); err != nil {