buyerApprovedForListingEvent
Creates an event object for the BuyerApprovedForListing event.
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";}>;
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.