@drizzle-utils/get-balance-stream
v0.3.0-alpha.0
Published
A tool for streaming/listening to address balances.
Downloads
4
Keywords
Readme
@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",
});