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

1.11.4 • 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

276

Version

1.11.4

License

GPL

Unpacked Size

363 kB

Total Files

80

Last publish

Collaborators

  • alephium-personal
  • eyettea
  • mikapote