Skip to main content
Version: 1.16.0

Function: readTokenPoolSiloedLockbox()

readTokenPoolSiloedLockbox(chain: EVMChain, poolAddress: string, remoteChainSelector: bigint): Promise<string>

Defined in: cct/evm/token-pool/contracts.ts:1177

Reads a v2.0.0 siloed pool's getLockBox(remoteChainSelector) in one eth_call: the lockbox that lane's transfers escrow through.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
poolAddressstringv2.0.0 SiloedLockReleaseTokenPool to read.
remoteChainSelectorbigintLane to ask about.

Returns​

Promise<string>

The lane's lockbox, checksummed.

Remarks​

Same gating as readTokenPoolLockboxConfigs. The raw call: it reverts LockBoxNotConfigured for an unbound lane; test for that with isTokenPoolRevert.