JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q54593F
  • License MIT

Tools to connect to wallets in React applications through the Rarimo SDK.

Package Exports

  • @rarimo/react-provider

Readme

@rarimo/react-provider

Tools to connect to wallets in React applications through the Rarimo SDK.

version (scoped package) types tree-shaking checks

Example

For example applications, see rarimo/js-sdk-examples on GitHub.

Here is an example that creates a MetamaskProvider object for a MetaMask wallet and prints its address:

import { MetamaskProvider } from '@rarimo/providers-evm'
import { useProvider } from '@rarimo/react-provider'

const { provider, ...rest } = useProvider(MetamaskProvider)

console.log({ provider, ...rest })

Changelog

For the change log, see CHANGELOG.md.