For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

The React wrapper is @megaeth-labs/wallet-sdk-react. It depends on the core SDK and TanStack Query. Use it for React 19+ products; for React apps already using wagmi, use the Wagmi Connector instead. The wagmi connector also works with RainbowKit, ConnectKit, and Reown AppKit.

# pick your package manager
npm install @megaeth-labs/wallet-sdk-react @megaeth-labs/wallet-sdk @tanstack/react-query
pnpm add @megaeth-labs/wallet-sdk-react @megaeth-labs/wallet-sdk @tanstack/react-query
yarn add @megaeth-labs/wallet-sdk-react @megaeth-labs/wallet-sdk @tanstack/react-query

Peer Requirements

  • react@^19

  • @tanstack/react-query@^5

The React wrapper depends on:

  • @megaeth-labs/wallet-sdk — core wallet methods and types.

  • @tanstack/react-query — query/mutation lifecycle used by hooks.

Published Packages

Already Managing a React Query Client?

If your app already instantiates a shared QueryClient, review the Provider Setup page before integrating — the React SDK instantiates its own QueryClient internally.

Last updated