revokeRoles

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

Example

import { sendTransaction } from "thirdweb";
import { revokeRoles } from "thirdweb/extensions/modules";
const transaction = revokeRoles({
contract,
user: ...,
roles: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.