Skip to main content
Version: 1.16.0

Class: GetSupportedTokens

Defined in: cct/evm/token-admin-registry/operations/get-supported-tokens.ts:36

Lists every token configured in the TokenAdminRegistry resolved from address, paginating through getAllConfiguredTokens until exhausted.

Extends​

Constructors​

Constructor​

new GetSupportedTokens(): GetSupportedTokens

Returns​

GetSupportedTokens

Inherited from​

EVMQuery<GetSupportedTokensParams, string[]>.constructor

Properties​

name​

readonly name: "getSupportedTokens" = 'getSupportedTokens'

Defined in: cct/evm/token-admin-registry/operations/get-supported-tokens.ts:37

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetSupportedTokensParams): GetSupportedTokensParams

Defined in: cct/evm/token-admin-registry/operations/get-supported-tokens.ts:44

Validates the resolution address and, when given, page; nothing to convert for read.

Parameters​

ParameterType
paramsGetSupportedTokensParams

Returns​

GetSupportedTokensParams

Throws​

CCTParamsInvalidError if address is not a valid address, or page is given and is not a positive integer

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetSupportedTokensParams): Promise<string[]>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetSupportedTokensParams

Returns​

Promise<string[]>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetSupportedTokensParams): Promise<string[]>

Defined in: cct/evm/token-admin-registry/operations/get-supported-tokens.ts:61

Resolves the TAR and lists its configured tokens.

Parameters​

ParameterType
chainEVMChain
__namedParametersGetSupportedTokensParams

Returns​

Promise<string[]>

Remarks​

Delegates pagination to EVMChain.getSupportedTokens, which already loops getAllConfiguredTokens(startIndex, maxCount) until a short page ends the scan — this op does not reimplement that loop.

Overrides​

EVMQuery.read