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

0.40.0 • Public • Published

Alephium Logo Alephium Logo


Table of contents

Install from sources

First clone this repository on your machine then run:

npm install
npm run build

Development

To setup the repo on your machine just run:

npm install
npm run dev

Example

To add a auth button to your react/nextjs app, simply wrap your app with AlephiumWalletProvider component and add the AlephiumWalletProvider component.

const App = () => {
  return (
    <AlephiumWalletProvider useTheme="win95">
      /* Your App */
      <AlephiumConnectButton />
    </AlephiumWalletProvider>
  );

useTheme is optional, there are a dozon themes that can be chosen from.

Credits

We have built this project on top of ConnectKit's codebase. We would like to take this oppurtunity to thank all the contributors of the ConnectKit project ❤️

Package Sidebar

Install

npm i @alephium/web3-react

Weekly Downloads

135

Version

0.40.0

License

GPL

Unpacked Size

352 kB

Total Files

78

Last publish

Collaborators

  • mikapote
  • eyettea
  • alephium-personal