buyerApprovedForListingEvent

Creates an event object for the BuyerApprovedForListing event.

Example

import { getContractEvents } from "thirdweb";
import { buyerApprovedForListingEvent } from "thirdweb/extensions/marketplace";
const events = await getContractEvents({
contract,
events: [
buyerApprovedForListingEvent({
listingId: ...,
buyer: ...,
})
],
});
function buyerApprovedForListingEvent(
filters: Partial<{ buyer: string; listingId: bigint }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "listingId";
readonly type: "uint256";
},
{
readonly indexed: true;
readonly name: "buyer";
readonly type: "address";
},
{ readonly name: "approved"; readonly type: "bool" },
];
readonly name: "BuyerApprovedForListing";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ buyer: string; listingId: bigint }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "listingId";
readonly type: "uint256";
},
{
readonly indexed: true;
readonly name: "buyer";
readonly type: "address";
},
{ readonly name: "approved"; readonly type: "bool" },
];
readonly name: "BuyerApprovedForListing";
readonly type: "event";
}>;

The prepared event object.