Skip to content

HttpProvider doesn't work with ApiPromise #741

@tjwelde

Description

@tjwelde

The documentation of HttpProvider states, that it could be used with the ApiPromise.
Trying this, we get the error: Api can only be used with a provider supporting subscriptions, which is fired by @polkadot/api/Base.js:101

* const api = new Api(provider);

How is the HttpProvider supposed to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationUpdates or additions to guides, API references, and comments to aid SDK understanding.SupportTracks issues or requests related to troubleshooting, answering questions, and user assistance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions