diff --git a/api/src/handlers.rs b/api/src/handlers.rs index cd3fb8fd1..442b4226f 100644 --- a/api/src/handlers.rs +++ b/api/src/handlers.rs @@ -165,7 +165,7 @@ impl Handler for UtxoHandler { } match *path_elems.last().unwrap() { "byids" => json_response(&self.utxos_by_ids(req)), - "atheight" => json_response(&self.utxo_block_batch(req)), + "byheight" => json_response(&self.utxo_block_batch(req)), _ => Ok(Response::with((status::BadRequest, ""))), } } diff --git a/wallet/src/restore.rs b/wallet/src/restore.rs index d750600a0..ee4e9d877 100644 --- a/wallet/src/restore.rs +++ b/wallet/src/restore.rs @@ -97,7 +97,7 @@ pub fn utxos_batch_block( let url = format!( - "{}/v1/chain/utxos/atheight?{}", + "{}/v1/chain/utxos/byheight?{}", config.check_node_api_http_addr, query_param, );