@rainbow-me/provider
v0.1.3
Published
[](https://www.npmjs.com/package/@rainbow-me/provider) [](https://opensource.org/licenses/MIT)
Readme
Rainbow Provider
Ethereum provider implementation used in the Rainbow Extension and Rainbow App Browser.
Installation
yarn add @rainbow-me/provider
# or
npm install @rainbow-me/provider
# or
pnpm add @rainbow-me/providerUsage
import { RainbowProvider } from '@rainbow-me/provider';
// Initialize the provider
const provider = new RainbowProvider();
// Use with ethers.js or other web3 libraries
const accounts = await provider.request({
method: 'eth_accounts',
params: []
});Development
# Match environment
nvm install && nvm use
corepack enable
# Install dependencies
yarn install
# Build the package
yarn build
# Run tests
yarn test
# Type check
yarn typecheck
# Lint
yarn lintLicense
MIT © Rainbow
