useConnection

1function useConnection(): Connection;

Defined in: account-kit/react/src/hooks/useConnection.ts:16

A hook that returns the current connection including chain, policy, and transport that you’re currently using.

Returns

Connection

the current connection. ref