Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 783 Bytes

buy.md

File metadata and controls

20 lines (15 loc) · 783 Bytes
description
Function to buy NFTs from a pool

Buy

buy(pool, nftIds, maximumPrice)

Buy nftIds, from a certain pool, limiting the price at maximumPrice.

This function is usually combined with some of following query functions:

  • getPool - In order to get the pool from the collection's address and pool token.
  • getPoolNFTs - In order to get the ALL the available nftIds to buy.
  • getBuyExactQuote - In order to get the maximumPrice for a certain set of NFTs.
  • getBuyQuote - In order to get the maximumPrice and a list of cheapest nftIds.

Returns the finalPrice for the buy operation.