@bitte-ai/react
TypeScript icon, indicating that this package has built-in type declarations

0.8.2 • Public • Published

@bitte-ai/react

This package contains React helpers for interacting with Bitte Wallet.

Summary

Installing

NPM:

npm install @bitte-ai/react
npm install @near-wallet-selector/modal-ui

Yarn:

yarn add @bitte-ai/react
yarn add @near-wallet-selector/modal-ui

PNPM:

pnpm install @bitte-ai/react
pnpm install @near-wallet-selector/modal-ui

BitteWalletContextProvider

the default way of interacting with Bitte Wallet is using the BitteWalletContextProvider

properties:

network : mainnet | testnet

additionalWallets : WalletModuleFactory[] extra wallets setup

import "@near-wallet-selector/modal-ui/styles.css";
import { BitteWalletContextProvider } from  '@bitte-ai/react'

<BitteWalletContextProvider
  network="mainnet"
>
   <Component {...pageProps} />
</BitteWalletContextProvider>

Troubleshooting

The wallet runs only on client-side.

Any other questions or issues you can contact support on our Telegram Channel.

License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

Readme

Keywords

none

Package Sidebar

Install

npm i @bitte-ai/react

Weekly Downloads

188

Version

0.8.2

License

MIT

Unpacked Size

2.37 MB

Total Files

8

Last publish

Collaborators

  • bh2smith
  • rmarcus
  • sainthiago
  • microchipgnu
  • markeljan