Skip to main content
Version: 1.15.0

Class: GetMinters

Defined in: cct/evm/token/operations/get-minters.ts:23

Lists the accounts holding a BurnMintERC677 token's mint role, via getMinters().

Extends​

Constructors​

Constructor​

new GetMinters(): GetMinters

Returns​

GetMinters

Inherited from​

EVMQuery<GetMintersParams, GetMintersResult>.constructor

Properties​

name​

readonly name: "getMinters" = 'getMinters'

Defined in: cct/evm/token/operations/get-minters.ts:24

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetMintersParams): GetMintersParams

Defined in: cct/evm/token/operations/get-minters.ts:30

Validates the token address; nothing to convert for read.

Parameters​

ParameterType
paramsGetMintersParams

Returns​

GetMintersParams

Throws​

CCTParamsInvalidError if tokenAddress is not a valid, non-zero address

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetMintersParams): Promise<GetMintersResult>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetMintersParams

Returns​

Promise<GetMintersResult>

Inherited from​

EVMQuery.query


read()​

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

Defined in: cct/evm/token/operations/get-minters.ts:41

Enumerates the role set in a single eth_call.

Parameters​

ParameterType
chainEVMChain
__namedParametersGetMintersParams

Returns​

Promise<string[]>

Remarks​

No version resolution: getMinters() is identical at v1.5.1 and v1.6.2, and a contract that does not declare it is reported by readV1TokenRoleHolders.

Throws​

CCTContractTypeInvalidError if tokenAddress is not a BurnMintERC677 token

Overrides​

EVMQuery.read