Skip to main content
The React Hooks package provides hooks for accessing user state, connecting to and disconnecting from wallets.

Installation

Provider Setup

Wrap your application root in AurumProvider with an initialized Aurum instance:
See Core SDK Configuration for all available Aurum options.

Available Hooks

useAurum()

Access the raw Aurum SDK instance for advanced use cases.

useAccount()

Access connected user information. Updates automatically when the connection state changes.

useConnect()

Connect to a wallet via the modal or directly by wallet ID.
WalletId.Email cannot be used with connect(walletId) — use emailAuthStart / emailAuthVerify instead. See the Headless API for full examples.
Do not use useConnect() with <ConnectWidget>. Instead use useAccount() to react to connection state changes when using the widget.

useDisconnect()

Disconnect the current wallet.

useChain()

Access current chain information and switch networks.

Core SDK

Framework-agnostic API

Headless Mode

Build custom connection UIs