@rarimo/providers-evm
TypeScript icon, indicating that this package has built-in type declarations

2.5.0 • Public • Published

@rarimo/providers-evm

Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on EVM-compatible blockchains.

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 { createProvider } from '@rarimo/provider'
import { MetamaskProvider } from '@rarimo/providers-evm'

const getMetamaskWalletAddress = async () => {
  // Connect to the Metamask wallet in the browser, 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.

Package Sidebar

Install

npm i @rarimo/providers-evm

Weekly Downloads

539

Version

2.5.0

License

MIT

Unpacked Size

86.9 kB

Total Files

46

Last publish

Collaborators

  • lukachi
  • ihor.diachenko
  • electr1xx
  • arvolear
  • volendi
  • semen_rarify