Ethereum provider implementation used in the Rainbow Extension and Rainbow App Browser.
yarn add @rainbow-me/provider
# or
npm install @rainbow-me/provider
# or
pnpm add @rainbow-me/provider
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: []
});
# 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 lint
MIT © Rainbow