Skip to main content
Version: 1.17.1

Function: readTokenPoolChainConfigV2()

readTokenPoolChainConfigV2(chain: SolanaChain, poolProgram: PublicKey, mint: PublicKey, remoteChainSelector: bigint): Promise<TokenPoolChainConfigV2Fields | undefined>

Defined in: cct/solana/token-pool/operations/chain-config-v2.ts:284

Reads a 2.0 pool's ChainConfigV2 for a lane: its allowed finality, fees and CCVs.

Parameters​

ParameterType
chainSolanaChain
poolProgramPublicKey
mintPublicKey
remoteChainSelectorbigint

Returns​

Promise<TokenPoolChainConfigV2Fields | undefined>

The lane's config, or undefined if the lane has no ChainConfigV2: the pool then allows full finality only, charges no pool fees and requires no CCVs of its own on it.

Throws​

CCTDataDecodeError if the account exists but is not a ChainConfigV2.