JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q53958F
  • License MIT

Features of the Rarimo SDK that provide access to wallets and wrap the wallet extension providers from different EVM and non-EVM chains to one common interface for ease of use

Package Exports

  • @rarimo/provider

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.

version (scoped package) types tree-shaking checks

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.