Skip to main content
Version: 1.16.0

Class: GetTokenAdminRegistry

Defined in: cct/evm/token-admin-registry/operations/get-token-admin-registry.ts:49

Reads a token's TokenAdminRegistry entry directly through getTokenConfig, reporting a zero administrator rather than throwing.

Remarks​

Deliberately diverges from EVMChain.getRegistryTokenConfig, which throws CCIPTokenNotConfiguredError whenever administrator === ZeroAddress — exactly the post-registerAdmin, pre-acceptAdmin state, which made a pending registration unobservable through the public read API. This op reads getTokenConfig through readTokenAdminRegistryConfig instead of delegating to that helper, so { administrator: ZeroAddress, pendingAdministrator } is reported faithfully. pendingAdministrator and tokenPool are still omitted when zero (nothing pending, no pool registered) — only administrator survives as the zero address, since that is the one state this op exists to surface.

Extends​

Constructors​

Constructor​

new GetTokenAdminRegistry(): GetTokenAdminRegistry

Returns​

GetTokenAdminRegistry

Inherited from​

EVMQuery< GetTokenAdminRegistryParams, GetTokenAdminRegistryResult >.constructor

Properties​

name​

readonly name: "getTokenAdminRegistry" = 'getTokenAdminRegistry'

Defined in: cct/evm/token-admin-registry/operations/get-token-admin-registry.ts:53

camelCase id; matches the token-manager facade method and error context.

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetTokenAdminRegistryParams): GetTokenAdminRegistryParams

Defined in: cct/evm/token-admin-registry/operations/get-token-admin-registry.ts:59

Validates both addresses; nothing to convert for read.

Parameters​

ParameterType
paramsGetTokenAdminRegistryParams

Returns​

GetTokenAdminRegistryParams

Throws​

CCTParamsInvalidError if address or tokenAddress is not a valid address

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetTokenAdminRegistryParams): Promise<RegistryTokenConfig>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetTokenAdminRegistryParams

Returns​

Promise<RegistryTokenConfig>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetTokenAdminRegistryParams): Promise<RegistryTokenConfig>

Defined in: cct/evm/token-admin-registry/operations/get-token-admin-registry.ts:66

Resolves the TAR from address, then reads and normalizes getTokenConfig(tokenAddress).

Parameters​

ParameterType
chainEVMChain
__namedParametersGetTokenAdminRegistryParams

Returns​

Promise<RegistryTokenConfig>

Overrides​

EVMQuery.read