Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1011 Bytes

File metadata and controls

58 lines (41 loc) · 1011 Bytes

Rainbow Provider

npm version License: MIT

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/provider

Usage

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 lint

License

MIT © Rainbow