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
| Parameter | Type |
|---|---|
chain | SolanaChain |
poolProgram | PublicKey |
mint | PublicKey |
remoteChainSelector | bigint |
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.