# near-connect-hooks
> React hooks for NEAR Protocol wallet integration using @hot-labs/near-connect. Use when building React/Next.js apps that need NEAR wallet connection, smart contract calls (view and change methods), token transfers, access key management, or NEP-413 message signing. Triggers on queries about NEAR wallet hooks, NearProvider setup, useNearWallet hook, or NEAR dApp React integration.
- Author: Artem Sirobaba
- Repository: near/agent-skills
- Version: 20260126204711
- Stars: 6
- Forks: 0
- Last Updated: 2026-02-06
- Source: https://github.com/near/agent-skills
- Web: https://mule.run/skillshub/@@near/agent-skills~near-connect-hooks:20260126204711
---
---
name: near-connect-hooks
description: React hooks for NEAR Protocol wallet integration using @hot-labs/near-connect. Use when building React/Next.js apps that need NEAR wallet connection, smart contract calls (view and change methods), token transfers, access key management, or NEP-413 message signing. Triggers on queries about NEAR wallet hooks, NearProvider setup, useNearWallet hook, or NEAR dApp React integration.
---
# near-connect-hooks
React hooks library for NEAR wallet integration built on `@hot-labs/near-connect`.
## Installation
```bash
npm install near-connect-hooks @hot-labs/near-connect near-api-js
```
## Quick Start
### 1. Wrap App with NearProvider
```tsx
import { NearProvider } from 'near-connect-hooks';
function App() {
return (
);
}
```
### 2. Use the Hook
```tsx
import { useNearWallet } from 'near-connect-hooks';
function WalletButton() {
const { signedAccountId, loading, signIn, signOut } = useNearWallet();
if (loading) return