grantMinterRole

Grants the minter role to a user.

Example

import { grantMinterRole } from "thirdweb/modules";
const tx = await grantMinterRole({
contract,
user: userAddress,
});
function grantMinterRole(
options: BaseTransactionOptions<GrantMinterRoleParams>,

Parameters

The transaction options.

Type

let options: BaseTransactionOptions<GrantMinterRoleParams>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

The transaction to send.