Module @tokene/vue-web3-provider

@tokene/vue-web3-provider

The Vue reactive wrapper for @distributedlab/w3p

version (scoped package) types tree-shaking checks

Getting Started

Installing

yarn add @tokene/vue-web3-provider

Default example

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()

Running the tests

yarn test

More examples

Check out more examples and use-cases:

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Index

Enumerations

Classes

Functions

Generated using TypeDoc