batchChangeMinters
Change minting permissions for your smart contract by removing or adding multiple accountIds in one call.
Account IDs in the removeMinters
array will lose minting permission for the specified contract. Ids in the addMinters
array get granted that permission.
As with all new SDK api methods, this call should be wrapped in execute and passed a signing method
This is only available on Mintbase v1 smart contracts, if you are using a Mintbase v2 contract, use batchChangeCreators
instead.
batchChangeMinters(args: addMinterArgs): NearContractCall
batchChangeMinters
takes a single argument of type BatchChangeMintersArgs
React example
Example usage of batchChangeMinters method in a hypothetical React component:
BatchChangeMintersComponent.ts
Last updated