We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getBlocksByDate
1 parent 08e3fbf commit 71086fdCopy full SHA for 71086fd
src/classes/Blockchain.ts
@@ -54,7 +54,7 @@ export class Blockchain {
54
* getBlocksByDate fetches blocks by date in the format YYYYMMDD
55
*/
56
public async getBlocksByDate(date: string): Promise<Array<Block>> {
57
- const url = `${this.apiV1URL}/blocks/${date}`
+ const url = `${this.apiV1URL}/blocks/date/${date}`
58
const data = await this._get(url)
59
return data as Array<Block>
60
}
0 commit comments