Type alias Listing

Listing: {
    model: "listing";
    lazy: false;
    auctionHouse: AuctionHouse;
    asset: SftWithToken | NftWithToken;
    tradeStateAddress: Pda;
    sellerAddress: PublicKey;
    bookkeeperAddress: Option<PublicKey>;
    receiptAddress: Option<Pda>;
    purchaseReceiptAddress: Option<PublicKey>;
    price: SolAmount | SplTokenAmount;
    tokens: SplTokenAmount;
    createdAt: DateTime;
    canceledAt: Option<DateTime>;
}

Type declaration

  • model: "listing"

    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 Listing includes asset model.

  • auctionHouse: AuctionHouse

    A model of the Auction House related to this listing.

  • asset: SftWithToken | NftWithToken

    The Nft or Sft with the associated token account.

  • tradeStateAddress: Pda

    The address of the seller's trade state account.

  • sellerAddress: PublicKey

    The address of the seller's wallet.

  • bookkeeperAddress: Option<PublicKey>

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

  • receiptAddress: Option<Pda>

    The address of the listing receipt account. This is the account that stores information about this listing. The Listing 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 listing.

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

    The sellers's price.

  • tokens: SplTokenAmount

    The number of tokens listed in case it's a sale of a Fungible Token.

  • createdAt: DateTime

    The date of creation.

  • canceledAt: Option<DateTime>

    The date of cancellation.

Generated using TypeDoc