New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@paperxyz/embedded-wallet-service-rainbowkit

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paperxyz/embedded-wallet-service-rainbowkit

RainbowKit wallet for Embedded Wallets by Paper

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source



Paper Embedded Wallet Service - RainbowKit Wallet

npm version Join our Discord!

Paper is a developer platform for NFT commerce that easily onboards users without a wallet or cryptocurrency.

Documentation

Installation

Install this SDK:

npm install @paperxyz/embedded-wallet-service-rainbowkit
yarn add @paperxyz/embedded-wallet-service-rainbowkit
pnpm add @paperxyz/embedded-wallet-service-rainbowkit

Add the wallet to RainbowKit:

const { chains, provider, webSocketProvider } = configureChains(
  [polygon],
  [publicProvider()],
);

const connectors = connectorsForWallets([
  {
    groupName: "Log In With Email",
    wallets: [
      PaperEmbeddedWalletRainbowKitWallet({
        chains,
        options: {
          clientId: "EWS_CLIENT_ID",
          chain: "Polygon",
        },
      }),
    ],
  },
  {
    groupName: "Log In With Wallet",
    wallets: [
      metaMaskWallet({ chains }),
      walletConnectWallet({ chains }),
      coinbaseWallet({ appName: "Acme Inc.", chains }),
    ],
  },
]);

const wagmiClient = createClient({
  autoConnect: true,
  connectors,
  provider,
  webSocketProvider,
});

<WagmiConfig client={wagmiClient}>
  <RainbowKitProvider chains={chains}>
    <ConnectButton />
  </RainbowKitProvider>
</WagmiConfig>;

See RainbowKit - Introduction for more help.

NOTE: If the Embedded Wallet login modal appears behind RainbowKit modal, lower the z-index of the RainbowKit modal:

[data-rk] [aria-labelledby="rk_connect_title"] {
  z-index: 2147483645 !important;
}

Arguments

name

The name of the wallet option on RainbowKit. Defaults to "Email".

iconUrl

The icon to display next to the name.

chain

The chain the wallet will be managed on. Note: A user receives the same wallet address across all EVM chains, mainnet and testnet.

options

The argument passed into the PaperEmbeddedWalletSdk constructor. See PaperEmbeddedWalletSdk.

Keywords

FAQs

Package last updated on 14 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc