Skip to main content
Version: 1.15.0

Function: readTokenOwner()

readTokenOwner(chain: EVMChain, tokenAddress: string): Promise<string>

Defined in: cct/evm/token/contracts.ts:287

Reads a token's on-chain owner(), checksummed.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
tokenAddressstringToken contract to read owner() from.

Returns​

Promise<string>

The current owner, checksummed.

Remarks​

One eth_call against a single ABI, with no version resolution: owner() is declared identically by FactoryBurnMintERC20 v1.5.1 / v1.6.2 and by v2.0.0's CrossChainToken, where it aliases the DEFAULT_ADMIN_ROLE holder. Mirrors readTokenPoolOwner in token-pool/contracts.ts.