useConnection A hook that returns the current connection including chain, policy, and transport that you’re currently using. Import Copyimport { useConnection } from "@account-kit/react"; Returns Connection the current connection. ref