Package Exports
- @rarimo/providers-evm
Readme
@rarimo/providers-evm
The EVM wallet wrappers called as Provider in the Rarimo SDK that can be used to interact with the EVM compatible blockchains.
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 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.