Type alias DirectBuyBuilderParams

DirectBuyBuilderParams: {
    auctionHouse: AuctionHouse;
    listing: Pick<Readonly<{
        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>;
    }>, "auctionHouse" | "asset" | "tradeStateAddress" | "receiptAddress" | "price" | "tokens" | "canceledAt" | "sellerAddress">;
    authority?: undefined | PublicKey | Signer;
    price?: undefined | SolAmount | SplTokenAmount;
    auctioneerAuthority?: undefined | Signer;
    buyer?: undefined | Signer;
    printReceipt?: undefined | boolean;
    bookkeeper?: undefined | Signer;
    createBidInstructionKey?: undefined | string;
    executeSaleInstructionKey?: undefined | string;
}

Type declaration

  • auctionHouse: AuctionHouse

    The Auction House in which to create a Bid and execute a Sale.

  • listing: Pick<Readonly<{
        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>;
    }>, "auctionHouse" | "asset" | "tradeStateAddress" | "receiptAddress" | "price" | "tokens" | "canceledAt" | "sellerAddress">

    The Listing that is used in the sale. We only need a subset of the Listing model but we need enough information regarding its settings to know how to execute the sale.

    This includes, its asset, auction house address, seller, receipt address etc.

  • Optional authority?: undefined | PublicKey | Signer

    The Auction House authority. If this is Signer the transaction fee will be paid from the Auction House Fee Account

    Default Value

    auctionHouse.authority

  • Optional price?: undefined | SolAmount | SplTokenAmount

    The buyer's price.

    Default Value

    listing.price.

  • Optional auctioneerAuthority?: undefined | Signer

    The Auctioneer authority key. It is required when Auction House has Auctioneer enabled.

    Default Value

    No default value.

  • Optional buyer?: undefined | Signer

    Creator of a bid. Should not be the same as seller who creates a Listing

    Default Value

    metaplex.identity()

  • Optional printReceipt?: undefined | boolean

    Prints the purchase receipt. The receipt holds information about the purchase, So it's important to print it if you want to use the Purchase model

    Default Value

    true

  • Optional bookkeeper?: undefined | Signer

    The address of the bookkeeper wallet responsible for the receipt.

    Default Value

    metaplex.identity()

  • Optional createBidInstructionKey?: undefined | string
  • Optional executeSaleInstructionKey?: undefined | string

Generated using TypeDoc