grantRoles

Prepares a transaction to call the "grantRoles" function on the contract.

Example

import { grantRoles } from "thirdweb/extensions/modular";
const transaction = grantRoles({
contract,
user: ...,
roles: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.