useSolanaConnection
Defined in: account-kit/react/dist/types/hooks/useSolanaConnection.d.ts:30
This hook is used for establishing a connection to Solana and returns the connection object and the signer object.
Example
import { function useSolanaConnection(opts?: SolanaConnectionHookParams): SolanaConnectionThis hook is used for establishing a connection to Solana and returns the connection object and the signer object.
useSolanaConnection } from "@account-kit/react";
const { const connection: Connection | nullThe solana connection used to send the transaction
connection } = function useSolanaConnection(opts?: SolanaConnectionHookParams): SolanaConnectionThis hook is used for establishing a connection to Solana and returns the connection object and the signer object.
useSolanaConnection();Parameters
Returns
The transaction hook.