Package Exports
- @rarimo/provider
- @rarimo/provider/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rarimo/provider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@rarimo/provider
Features of the Rarimo SDK that provide access to users' wallets and map extensions for multiple types of wallets (EVM and non-EVM) to a common wallet interface.
Example
Here is an example that creates a MetamaskProvider
object for a MetaMask wallet and prints its address:
import { createProvider, MetamaskProvider } from '@rarimo/provider'
const getMetamaskWalletAddress = async () => {
// Connect to the Metamask wallet in the browser using Web3.js, using the MetamaskProvider interface to limit bundle size.
const provider = await createProvider(MetamaskProvider)
await provider.connect()
// Get the address of the wallet
console.log(provider.address)
}
Changelog
For the change log, see CHANGELOG.md.