newBidEvent
Creates an event object for the NewBid event.
import { getContractEvents } from "thirdweb";import { newBidEvent } from "thirdweb/extensions/marketplace"; const events = await getContractEvents({contract,events: [ newBidEvent({ auctionId: ..., bidder: ..., assetContract: ...,})],});
function newBidEvent( filters: Partial<{ assetContract: string; auctionId: bigint; bidder: string; }>, readonly inputs: readonly [ { readonly indexed: true; readonly name: "auctionId"; readonly type: "uint256"; }, { readonly indexed: true; readonly name: "bidder"; readonly type: "address"; }, { readonly indexed: true; readonly name: "assetContract"; readonly type: "address"; }, { readonly name: "bidAmount"; readonly type: "uint256" }, { readonly components: readonly [ { readonly name: "auctionId"; readonly type: "uint256" }, { readonly name: "tokenId"; readonly type: "uint256" }, { readonly name: "quantity"; readonly type: "uint256" }, { readonly name: "minimumBidAmount"; readonly type: "uint256"; }, { readonly name: "buyoutBidAmount"; readonly type: "uint256"; }, { readonly name: "timeBufferInSeconds"; readonly type: "uint64"; }, { readonly name: "bidBufferBps"; readonly type: "uint64" }, { readonly name: "startTimestamp"; readonly type: "uint64" }, { readonly name: "endTimestamp"; readonly type: "uint64" }, { readonly name: "auctionCreator"; readonly type: "address" }, { readonly name: "assetContract"; readonly type: "address" }, { readonly name: "currency"; readonly type: "address" }, { readonly name: "tokenType"; readonly type: "uint8" }, { readonly name: "status"; readonly type: "uint8" }, ]; readonly name: "auction"; readonly type: "tuple"; }, ]; readonly name: "NewBid"; readonly type: "event";}>;
readonly inputs: readonly [ { readonly indexed: true; readonly name: "auctionId"; readonly type: "uint256"; }, { readonly indexed: true; readonly name: "bidder"; readonly type: "address"; }, { readonly indexed: true; readonly name: "assetContract"; readonly type: "address"; }, { readonly name: "bidAmount"; readonly type: "uint256" }, { readonly components: readonly [ { readonly name: "auctionId"; readonly type: "uint256" }, { readonly name: "tokenId"; readonly type: "uint256" }, { readonly name: "quantity"; readonly type: "uint256" }, { readonly name: "minimumBidAmount"; readonly type: "uint256"; }, { readonly name: "buyoutBidAmount"; readonly type: "uint256"; }, { readonly name: "timeBufferInSeconds"; readonly type: "uint64"; }, { readonly name: "bidBufferBps"; readonly type: "uint64" }, { readonly name: "startTimestamp"; readonly type: "uint64" }, { readonly name: "endTimestamp"; readonly type: "uint64" }, { readonly name: "auctionCreator"; readonly type: "address" }, { readonly name: "assetContract"; readonly type: "address" }, { readonly name: "currency"; readonly type: "address" }, { readonly name: "tokenType"; readonly type: "uint8" }, { readonly name: "status"; readonly type: "uint8" }, ]; readonly name: "auction"; readonly type: "tuple"; }, ]; readonly name: "NewBid"; readonly type: "event";}>;
The prepared event object.