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
| Parameter | Type | Description |
|---|---|---|
chain | EVMChain | Chain to read from. |
tokenAddress | string | Token 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.