Type alias CreateBidInput

CreateBidInput: {
    auctionHouse: AuctionHouse;
    mintAccount: PublicKey;
    buyer?: Signer;
    authority?: PublicKey | Signer;
    auctioneerAuthority?: Signer;
    seller?: Option<PublicKey>;
    tokenAccount?: Option<PublicKey>;
    price?: SolAmount | SplTokenAmount;
    tokens?: SplTokenAmount;
    printReceipt?: boolean;
    bookkeeper?: Signer;
}

Type declaration

  • auctionHouse: AuctionHouse

    The Auction House in which to create a Bid.

  • mintAccount: PublicKey

    The mint account to create a bid for. This is used to find the metadata.

  • Optional buyer?: Signer

    Creator of a bid.

    Default Value

    metaplex.identity()

  • Optional authority?: 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 auctioneerAuthority?: Signer

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

    Default Value

    No default value.

  • Optional seller?: Option<PublicKey>

    The account address that holds the asset a bid created is for. If this or tokenAccount isn't provided, then the bid will be public.

    Default Value

    No default value.

  • Optional tokenAccount?: Option<PublicKey>

    The token account address that's associated to the asset a bid created is for. If this or seller isn't provided, then the bid will be public.

    Default Value

    No default value.

  • Optional price?: SolAmount | SplTokenAmount

    The buyer's price.

    Default Value

    0 SOLs or tokens.

  • Optional tokens?: SplTokenAmount

    The number of tokens to bid for. For an NFT bid it must be 1 token.

    When a Fungible Asset is put on sale. The buyer can then create a buy order of said assets that is less than the token_size of the sell order.

    Default Value

    1 token.

  • Optional printReceipt?: boolean

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

    The receipt printing is skipped for the Auctioneer Auction House Since it currently doesn't support it.

    Default Value

    true

  • Optional bookkeeper?: Signer

    The address of the bookkeeper wallet responsible for the receipt.

    Default Value

    metaplex.identity()

Generated using TypeDoc