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
EVMQuery<GetSupportedTokensParams,string[]>
Constructors
Constructor
new GetSupportedTokens():
GetSupportedTokens
Returns
GetSupportedTokens
Inherited from
EVMQuery<GetSupportedTokensParams, string[]>.constructor
Properties
name
readonlyname:"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()
protectedprepare(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
| Parameter | Type |
|---|---|
params | GetSupportedTokensParams |
Returns
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
| Parameter | Type |
|---|---|
chain | EVMChain |
params | GetSupportedTokensParams |
Returns
Promise<string[]>
Inherited from
EVMQuery.query
read()
protectedread(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
| Parameter | Type |
|---|---|
chain | EVMChain |
__namedParameters | GetSupportedTokensParams |
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