The Vue reactive wrapper for @distributedlab/w3p
yarn add @tokene/vue-web3-provider
import { useProvider } from '@tokene/vue-web3-provider'
import { ProviderDetector, MetamaskProvider } from '@distributedlab/w3p'
const providerDetector = new ProviderDetector()
const provider = useProvider()
const init = async () => {
await providerDetector.init()
await provider.init(MetamaskProvider, {
providerDetector: ProviderDetector,
listeners: {},
})
}
init()
yarn test
Check out more examples and use-cases:
This project is licensed under the MIT License - see the LICENSE.md file for details
Generated using TypeDoc