Query Functions

Functions that return information about a trading pool's state.

getPool

getPool(nft, token)

Returns the trading pool associated with a certain nft and token. Most of the time you will want to use the WETH address for the token parameter.

getPoolNFTs

getPoolNFTs(pool)

Returns the NFTs deposited in certain pool.

getNFTLP

getNFTLP(pool, nftId)

Returns the LP ID associated with a certain nftId in the pool.

getPrice

getPrice(pool)

Returns the lowest buy and highest sell price for a certain pool.

getBuyQuote

getBuyQuote(amount, pool)

Returns a pool's buy quote for an amount of NFTs, the cheapest combination of NFTs will be returned.

getBuyExactQuote

getBuyExactQuote(nfts, pool)

Returns a pool's buy quote for an array of nfts.

getSellQuote

getSellQuote(amount, pool)

Returns a pool's sell quote for an amount of NFTs.

Last updated