Docs

transferSingleEvent

Creates an event object for the TransferSingle event.

Example

import { getContractEvents } from "thirdweb";
import { transferSingleEvent } from "thirdweb/extensions/erc1155";
const events = await getContractEvents({
contract,
events: [
transferSingleEvent({
_operator: ...,
_from: ...,
_to: ...,
})
],
});

Parameters

Returns

The prepared event object.