@drizzle-utils/get-accounts

0.2.0 • Public • Published

@drizzle-utils/get-accounts

A tool for getting the accounts from Web3. This will request MetaMask's permission, if required.

Example usage is located in the test-app directory, specifically test-app/src/App.js.

Usage

import getAccounts from "@drizzle-utils/get-accounts";

// pass in your web3 (required)
const accounts = await getAccounts({ web3 });
console.log(accounts); // ["0x..."]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    8
    • latest

Version History

Package Sidebar

Install

npm i @drizzle-utils/get-accounts

Weekly Downloads

8

Version

0.2.0

License

MIT

Unpacked Size

426 kB

Total Files

18

Last publish

Collaborators

  • adrianmcli
  • cds-amal
  • discriskandbisque
  • honestbonsai