Type alias Purchase

Purchase: {
    model: "purchase";
    lazy: false;
    auctionHouse: AuctionHouse;
    asset: SftWithToken | NftWithToken;
    buyerAddress: PublicKey;
    sellerAddress: PublicKey;
    bookkeeperAddress: Option<PublicKey>;
    receiptAddress: Option<PublicKey>;
    price: SolAmount | SplTokenAmount;
    tokens: SplTokenAmount;
    createdAt: DateTime;
}

Type declaration

  • model: "purchase"

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

  • auctionHouse: AuctionHouse

    A model of the Auction House related to this purchase.

  • asset: SftWithToken | NftWithToken

    The Nft or Sft with the associated token account.

  • buyerAddress: PublicKey

    The address of the buyer's wallet.

  • sellerAddress: PublicKey

    The address of the seller's wallet.

  • bookkeeperAddress: Option<PublicKey>

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

  • receiptAddress: Option<PublicKey>

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

  • price: SolAmount | SplTokenAmount

    The number of tokens spent on this purchase.

  • tokens: SplTokenAmount

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

  • createdAt: DateTime

    The date of creation.

Generated using TypeDoc