0.0.1-alpha.4 • Published 2 years ago

@xlabs-libs/wallet-aggregator-react-init v0.0.1-alpha.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Wallet Aggregator - React Init

A utility package to bootstrap the react context with all available wallets

Usage

import { CHAINS } from "@xlabs/wallet-aggregator-core";
import { WalletContextProvider } from '@xlabs/wallet-aggregator-react';
import { initWallets } from '@xlabs/wallet-aggregator-react-init';

const Main = () => {
  const wallets = initWallets();

  return (
    <WalletContextProvider availableWallets={wallets}>
      <App />
    </WalletContextProvider>
  );
};