JSPM

  • Created
  • Published
  • Downloads 1460852
  • Score
    100M100P100Q208308F
  • License MIT

An Abstract Class for describing an Ethereum Provider for ethers.

Package Exports

  • @ethersproject/abstract-provider
  • @ethersproject/abstract-provider/lib.esm/index.js
  • @ethersproject/abstract-provider/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ethersproject/abstract-provider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Abstract Provider

This sub-module is part of the ethers project.

It is responsible for defining the common interface for a Provider, which in ethers differs quite substantially from Web3.js.

A Provider is an abstraction of non-account-based operations on a blockchain and is generally not directly involved in signing transaction or data.

For signing, see the Abstract Signer or Wallet sub-modules.

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    Provider,

    ForkEvent,
    BlockForkEvent,
    TransactionForkEvent,
    TransactionOrderForkEvent,

    // Types
    BlockTag,

    Block,
    BlockWithTransactions,

    TransactionRequest,
    TransactionResponse,
    TransactionReceipt,

    Log,
    EventFilter,

    Filter,
    FilterByBlockHash,

    EventType,
    Listener

} = require("@ethersproject/abstract-provider");

License

MIT License