renounceRoles

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

Example

import { sendTransaction } from "thirdweb";
import { renounceRoles } from "thirdweb/extensions/modules";
const transaction = renounceRoles({
contract,
roles: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function renounceRoles(
| { asyncParams: () => Promise<RenounceRolesParams> }
>,

Parameters

The options for the "renounceRoles" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.