@drizzle-utils/contract-state-stream
v0.2.1
Published
A tool for streaming/listening to contract state.
Downloads
22
Keywords
Readme
@drizzle-utils/contract-state-stream
A tool for streaming/listening to contract state.
Usage
You'll need to pass in the newBlock$
that you can get from the @drizzle-utils/new-block-stream
package.
import createContractState$ from "@drizzle-utils/contract-state-stream";
const state$ = createContractState$({
newBlock$, // from @drizzle-utils/new-block-stream package
artifact, // Truffle JSON artifact w/ AST
provider, // any valid Ethereum provider
});