Buy

Function to buy NFTs from a pool

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.

Last updated