Skip to main content

sdk.erc721lazymint.grantrole

Home > @openformat/sdk > ERC721LazyMint > grantRole

ERC721LazyMint.grantRole() method

Grants the MINTER_ROLE to the specified account for the current ERC721 contract. setMinterRole

Signature:

grantRole(params: ERC721LazyMint_SetMinterRoleParams): Promise<ContractReceipt>;

Parameters

ParameterTypeDescription
paramsERC721LazyMint_SetMinterRoleParams

Returns:

Promise<ContractReceipt>

{Promise<ContractReceipt>} - A Promise that resolves to a ContractReceipt object that contains information about the transaction.

Exceptions

{Error} - Throws an error if the network check fails or if there is an error during the grantRole transaction.