approvalEvent

Creates an event object for the Approval event.

Example

import { getContractEvents } from "thirdweb";
import { approvalEvent } from "thirdweb/extensions/erc721";
const events = await getContractEvents({
contract,
events: [
approvalEvent({
owner: ...,
approved: ...,
tokenId: ...,
})
],
});

Parameters

Returns

The prepared event object.