Skip to content

getBlockHeadersByHash Error: Extension "json" is not supported #14537

@educob

Description

@educob

Hello.

I am receiving block notifications (via zmq) and by calling client.getBlockByHash (json extension) but when running:
client.getBlockHeadersByHash( '00000xxxxx...', 1, { extension: 'json'})

I get: Error: Extension "json" is not supported

It works with extensions bin and hex.

solution:
line 220: if (!_lodash.default.includes(['bin', 'hex'], extension)) {
Must be changed to: if (!_lodash.default.includes(['bin', 'hex', 'json'], extension)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions