{"repo":"wevm/mipd","free":true,"listed":false,"github":"https://github.com/wevm/mipd","clone":"git clone https://github.com/wevm/mipd.git","description":"TypeScript Utilities for EIP-6963: Multi Injected Provider Discovery","language":"TypeScript","stars":122,"topics":["ethereum","typescript","eip6963","wallets"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"TypeScript Utilities for EIP-6963: Multi Injected Provider Discovery Contents - Install - Store - Utilities - requestProviders - announceProvider - window Type Polyfill - Types - Configuration Install Store The MIPD Store stores the Providers that have been emitted by a Wallet (or other source), and provides a way to subscribe to the store and retrieve the Providers. Overview Usage Vanilla JS React Svelte Vue API createStore() Creates a MIPD Store, and emits an event to request Providers from the Wallet(s). store.subscribe(listener, args) Subscribes to the MIPD Store, and returns a function to unsubscribe. Definition store.getProviders() Returns the current Providers. Definition store.findProvider(args) Finds a provider detail by its RDNS (Reverse Domain Name Identifier). Definition store.clear() Clears the store, including all Providers. Definition store.reset() Resets the store, and emits an event to request Providers from the Wallet(s). Definition store.destroy() Destroys the store, and removes all Providers and event listeners. Definition Utilities requestProviders The requestProviders utility emits an event to request Providers from the Wallet(s). It returns an unsubscribe function to clean up event listeners. Definition announceProvider The announceProvider utility emits an event to announce a Provider to the Wallet(s), and also listen for incoming requests. It returns an unsubscribe function to clean up event listeners. Definition window Polyfill By importing the mipd/","default_branch":null,"files":null,"tree":[],"storefront":"/r/wevm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wevm/mipd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}