@provablehq/aleo-wallet-adaptor-react
v0.3.0-alpha.0
Published
React integration for wallet adapter
Downloads
436
Readme
@provablehq/aleo-wallet-adaptor-react
React context, hooks, and utilities for consuming Aleo wallet adapters in browser applications.
When to use it
- Wrap your React tree with a wallet provider that manages connection state, auto-connect, and error handling.
- Access wallet methods (
connect,executeTransaction,decrypt, etc.) through a simpleuseWallethook. - Pair with the UI kit (
@provablehq/aleo-wallet-adaptor-react-ui) or build your own custom interface.
Installation
pnpm add @provablehq/aleo-wallet-adaptor-reactQuick start
import { AleoWalletProvider } from '@provablehq/aleo-wallet-adaptor-react';
import { GalileoWalletAdapter } from '@provablehq/aleo-wallet-adaptor-prove-alpha';
const wallets = [new GalileoWalletAdapter()];
export function App({ children }: { children: React.ReactNode }) {
return <AleoWalletProvider wallets={wallets}>{children}</AleoWalletProvider>;
}Related packages
@provablehq/aleo-wallet-adaptor-core– underlying adapter interfaces consumed by the provider.@provablehq/aleo-wallet-adaptor-react-ui– drop-in modals and buttons that work with this context.- Wallet adapters such as
@provablehq/aleo-wallet-adaptor-prove-alpha,-puzzle,-leo, etc.
Live demo: https://aleo-dev-toolkit-react-app.vercel.app/
