# Function: useNode()

```ts
function useNode(): P2PNode;
```

Defined in: [packages/react/src/context.ts:138](https://github.com/leifriksheim/minca/blob/main/react/src/context.ts#L138)

The node acting for the account. For components that only appear once
someone is in.

## Returns

[`P2PNode`](https://minca.dev/api/core/interfaces/P2PNode.md)

## Throws

Outside a `MincaProvider`, or before sign-in or connecting
