batchChangeCreators
Change creator permissions for your smart contract by removing or adding multiple accountIds in one call.
Account IDs in the removeCreators
array will lose creator permission for the specified contract. Ids in the addCreators
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 v2 smart contracts, if you are using a Mintbase v1 contract, use batchChangeMinters
instead.
batchChangeCreators(args: BatchChangeCreatorsArgs): NearContractCall
batchChangeCreators
takes a single argument of type BatchChangeCreatorsArgs
React example
Example usage of batchChangeMinters method in a hypothetical React component:
BatchChangeMintersComponent.ts
Last updated