Skip to content

rainbow-me/provider

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7