Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@metamask/eth-query

MetaMask107.3kISC4.0.0TypeScript support: included

like web3 but for minimalists

readme

like web3 but for minimalists

Note
This is a temporary fork of ethereumjs/eth-query created by MetaMask which adds TypeScript type definitions for compatibility with our libraries.

var provider = {
  sendAsync: function (params, cb) {
    /* ... */
  },
};
var query = new EthQuery(provider);

query.getBalance(address, cb);

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

4.0.0

Changed

  • BREAKING: Narrow type of provider to match SafeEventEmitterProvider from @metamask/eth-json-rpc-provider (#21)

3.0.1

Fixed

  • Fix module in type definitions file to match name of package (#17)

3.0.0

Added

  • First release of this package
    • This package, @metamask/eth-query, is derived from eth-query, whose last version at this time is 2.1.2. All changes listed below are in reference to this package.
  • Add TypeScript type definitions (#2, #12)

Changed

  • BREAKING: Enforce a minimum Node version of 16 (#7)
  • Make install scripts for dependencies opt-in via @lavamoat/allow-scripts (#5)