0.3.0-alpha.0 • Published 5 years ago

@drizzle-utils/get-balance-stream v0.3.0-alpha.0

Weekly downloads
5
License
MIT
Repository
-
Last release
5 years ago

@drizzle-utils/get-balance-stream

A tool for streaming/listening to address balances.

Usage

You'll need to pass in the newBlock$ that you can get from the @drizzle-utils/new-block-stream package.

import createBalanceStream$ from "@drizzle-utils/get-balance-stream";

const returnVal$ = createBalanceStream$({
  web3,
  newBlock$,
  address: "myaddress",
});