Docs

transferEvent

Creates an event object for the Transfer event.

Example

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

Parameters

Returns

The prepared event object.