Skip to main content

Function: solanaConfig()

function solanaConfig<N>(config): SolanaConfig<N>;

Defined in: solana-client/src/config.ts:115

Build a complete SolanaConfig from a partial one, filling unset fields from DEFAULT_SOLANA_CONFIG — including the core / layer / hook program ids, which default to the canonical deployment when a caller targeting it omits them. The deployment's domain is read from chain (see getDomain), not configured.

Type Parameters​

Type Parameter
N extends string

Parameters​

ParameterType
configInputConfig<SolanaConfig<N>, N>

Returns​

SolanaConfig<N>