Skip to content

Commit 71086fd

Browse files
committed
fix: fix bug in getBlocksByDate method
1 parent 08e3fbf commit 71086fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/Blockchain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Blockchain {
5454
* getBlocksByDate fetches blocks by date in the format YYYYMMDD
5555
*/
5656
public async getBlocksByDate(date: string): Promise<Array<Block>> {
57-
const url = `${this.apiV1URL}/blocks/${date}`
57+
const url = `${this.apiV1URL}/blocks/date/${date}`
5858
const data = await this._get(url)
5959
return data as Array<Block>
6060
}

0 commit comments

Comments
 (0)