acceptedOfferEvent
Creates an event object for the AcceptedOffer event.
import { getContractEvents } from "thirdweb";import { acceptedOfferEvent } from "thirdweb/extensions/marketplace"; const events = await getContractEvents({contract,events: [ acceptedOfferEvent({ offeror: ..., offerId: ..., assetContract: ...,})],});
function acceptedOfferEvent( filters: Partial<{ assetContract: string; offerId: bigint; offeror: string; }>, readonly inputs: readonly [ { readonly indexed: true; readonly name: "offeror"; readonly type: "address"; }, { readonly indexed: true; readonly name: "offerId"; readonly type: "uint256"; }, { readonly indexed: true; readonly name: "assetContract"; readonly type: "address"; }, { readonly name: "tokenId"; readonly type: "uint256" }, { readonly name: "seller"; readonly type: "address" }, { readonly name: "quantityBought"; readonly type: "uint256" }, { readonly name: "totalPricePaid"; readonly type: "uint256" }, ]; readonly name: "AcceptedOffer"; readonly type: "event";}>;
readonly inputs: readonly [ { readonly indexed: true; readonly name: "offeror"; readonly type: "address"; }, { readonly indexed: true; readonly name: "offerId"; readonly type: "uint256"; }, { readonly indexed: true; readonly name: "assetContract"; readonly type: "address"; }, { readonly name: "tokenId"; readonly type: "uint256" }, { readonly name: "seller"; readonly type: "address" }, { readonly name: "quantityBought"; readonly type: "uint256" }, { readonly name: "totalPricePaid"; readonly type: "uint256" }, ]; readonly name: "AcceptedOffer"; readonly type: "event";}>;
The prepared event object.