useConnection

1function useConnection(): Connection;

Defined in: account-kit/react/dist/types/hooks/useConnection.d.ts:7

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

Returns

Connection

the current connection. ref