sdk.erc721base.grantrole
Home > @openformat/sdk > ERC721Base > grantRole
ERC721Base.grantRole() method
Grants a give role to the specified account for the current ERC721 contract. grantRole
Signature:
grantRole(params: ERC721SetMinterRoleParams): Promise<ContractReceipt>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | ERC721SetMinterRoleParams |
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.