roleGrantedEvent

Creates an event object for the RoleGranted event.

Example

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

Parameters

Returns

The prepared event object.