Skip to content

Commit

Permalink
update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Nov 12, 2024
1 parent 2808f0a commit 5867817
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/portal-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class PortalClient {
}

async getHeight(): Promise<number> {
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,
})
Expand All @@ -80,7 +80,7 @@ export class PortalClient {

query<B extends Block = Block, Q extends PortalQuery = PortalQuery>(query: Q): Promise<B[]> {
return this.http
.request<Buffer>('POST', this.getDatasetUrl(`stream`), {
.request<Buffer>('POST', this.getDatasetUrl(`finalized-stream`), {
json: query,
retryAttempts: 3,
httpTimeout: this.queryTimeout,
Expand Down Expand Up @@ -116,7 +116,7 @@ export class PortalClient {
let archiveQuery = {...query, fromBlock}

let res = await this.http
.request<Readable>('POST', this.getDatasetUrl(`stream`), {
.request<Readable>('POST', this.getDatasetUrl(`finalized-stream`), {
json: archiveQuery,
retryAttempts: 3,
httpTimeout: this.queryTimeout,
Expand Down

0 comments on commit 5867817

Please sign in to comment.