milkbox
v0.0.1-beta.2
Published
Web3 connection module.
Downloads
3
Readme
Milkbox
This library is still under construction; expect the API to change frequently and significantly until the v1.0.0 is released
A simple Web3 connection library, base on EIP-6963.
Features
- library agnostic; use Ethers.js, Web3.js, Viem (or whatevers else)
- wallet agnostic; use MetaMask, WalletConnect, Ledger (or whatever else)
- simple
API
// Create a global singleton
const milkbox = Milkbox.global();
// Listen for new Providers
milkbox.on("providerAdded", (details) => {
console.log(details);
});
// List all currently registered providers
console.log(milkbox.providers);
License
MIT license.