Docs

roleRevokedEvent

Creates an event object for the RoleRevoked event.

Example

import { getContractEvents } from "thirdweb";
import { roleRevokedEvent } from "thirdweb/extensions/permissions";
const events = await getContractEvents({
contract,
events: [
roleRevokedEvent({
role: ...,
account: ...,
sender: ...,
})
],
});

Parameters

Returns

The prepared event object.