0.2.1 • Published 5 years ago
@drizzle-utils/current-account-stream v0.2.1
@drizzle-utils/current-account-stream
Returns an RxJS observable so you can watch for changes to the currently selected account on MetaMask.
Detailed example usage is located in the test-app
directory, specifically test-app/src/App.js
.
Usage
import createCurrentAccount$ from "@drizzle-utils/current-account-stream";
// pass in your web3 and create the observable
const currentAccount$ = await createCurrentAccount$({ web3 });
// subscribe to the observable
currentAccount$.subscribe(address => console.log(address));
0.2.1
5 years ago
0.2.0
5 years ago
0.1.7-alpha.0
5 years ago
0.1.6-alpha.0
5 years ago
0.1.4-alpha.0
5 years ago
0.1.3-alpha.0
5 years ago
0.1.2-alpha.0
5 years ago