Type alias PublicBid

PublicBid: { model: "bid"; lazy: false; auctionHouse: AuctionHouse; tradeStateAddress: Pda; buyerAddress: PublicKey; bookkeeperAddress: Option<PublicKey>; receiptAddress: Option<Pda>; purchaseReceiptAddress: Option<PublicKey>; price: SolAmount | SplTokenAmount; tokens: SplTokenAmount; createdAt: DateTime; canceledAt: Option<DateTime>; isPublic: true; asset: Sft | Nft }

Type declaration

  • model: "bid"

    A model identifier to distinguish models in the SDK.

  • lazy: false

    Whether or not the asset was loaded. When this is false, it means the Bid includes asset model.

  • auctionHouse: AuctionHouse

    A model of the Auction House related to this bid.

  • tradeStateAddress: Pda

    The address of the buyer's trade state account.

  • buyerAddress: PublicKey

    The address of the buyer's wallet.

  • bookkeeperAddress: Option<PublicKey>

    The address of the bookkeeper account. It is responsible for signing a Bid Receipt Print.

  • receiptAddress: Option<Pda>

    The address of the bid receipt account. This is the account that stores information about this bid. The Bid model is built on top of this account.

  • purchaseReceiptAddress: Option<PublicKey>

    The address of the purchase receipt account. This is the account that stores information about the purchase related to this bid.

    const transactionBuilder = metaplex
    .auctionHouse()
    .builders()
    .findPurchaseByReceipt({ auctionHouse, receiptAddress: purchaseReceiptAddress });
  • price: SolAmount | SplTokenAmount

    The buyer's price.

  • tokens: SplTokenAmount

    The number of tokens bid is for.

  • createdAt: DateTime

    The date of creation.

  • canceledAt: Option<DateTime>

    The date of cancellation.

  • isPublic: true

    The bid is public. This means that a bid can stay active beyond the end of an auction and be resolved if it meets the criteria for subsequent auctions of that token.

  • asset: Sft | Nft

    The Nft or Sft related to the Bid.

Generated using TypeDoc