Skip to main content
Version: 2.0.4 | View on npm React hooks for Grid SDK - authentication, balances, and transactions.

Installation

Quick Start

1. Setup Provider

For Production: Generate an App ID in the Grid Dashboard, whitelist your domain, and pass it to the provider:

2. Email Authentication

3. Balances and Transfers

Available Hooks

  • useEmailAuth() - Email + OTP authentication with session management
  • usePasskeyAuth() - WebAuthn passkey authentication
  • useAccount() - Real-time account state
  • useBalance(options) - Fetch single token balance
  • useBalances(options) - Fetch all balances with pagination
  • useTransfer() - Send funds
  • useTransfers(options) - Fetch transfer history with filtering
  • useGrid() - Access Grid SDK client directly

TypeScript