From 586781757ee253ad21ed8eefe1eccd0ad55bc988 Mon Sep 17 00:00:00 2001 From: belopash Date: Tue, 12 Nov 2024 16:50:51 +0500 Subject: [PATCH] update paths --- util/portal-client/src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/portal-client/src/client.ts b/util/portal-client/src/client.ts index 7cc7c535..3299898c 100644 --- a/util/portal-client/src/client.ts +++ b/util/portal-client/src/client.ts @@ -59,7 +59,7 @@ export class PortalClient { } async getHeight(): Promise { - let res: string = await this.http.get(this.getDatasetUrl('height'), { + let res: string = await this.http.get(this.getDatasetUrl('finalized-stream/height'), { retryAttempts: 3, httpTimeout: 10_000, }) @@ -80,7 +80,7 @@ export class PortalClient { query(query: Q): Promise { return this.http - .request('POST', this.getDatasetUrl(`stream`), { + .request('POST', this.getDatasetUrl(`finalized-stream`), { json: query, retryAttempts: 3, httpTimeout: this.queryTimeout, @@ -116,7 +116,7 @@ export class PortalClient { let archiveQuery = {...query, fromBlock} let res = await this.http - .request('POST', this.getDatasetUrl(`stream`), { + .request('POST', this.getDatasetUrl(`finalized-stream`), { json: archiveQuery, retryAttempts: 3, httpTimeout: this.queryTimeout,