function useSolanaConnection(opts): SolanaConnection;Defined in: account-kit/react/src/hooks/useSolanaConnection.ts:39
This hook is used for establishing a connection to Solana and returns the connection object and the signer object.
import { useSolanaConnection } from "@account-kit/react";
const { connection } = useSolanaConnection();| Parameter | Type | Description |
|---|---|---|
|
| Options for the hook to get setup |
The transaction hook.