revokeRoles

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

Example

import { revokeRoles } from "thirdweb/extensions/modular";
const transaction = revokeRoles({
contract,
user: ...,
roles: ...,
overrides: {
...
}
});
// Send the transaction
...
function revokeRoles(
| { asyncParams: () => Promise<RevokeRolesParams> }
>,

Parameters

The options for the "revokeRoles" function.

Type

| { asyncParams: () => Promise<RevokeRolesParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.