indexer
indexer copied to clipboard
Shared contract warning
Some contracts like Art Blocks are "shared contracts", containing multiple collections. Often people will pass these contract addresses as a collection ID, get no results, and be confused. We should have a list of contracts that we've broken into multiple collections (hard coded for now), and if you try to use it as a collection filter, it throws an error and explains how to get the collection ids
This is a shared contract containing multiple collections. You can access them here: https://api.reservoir.tools/collections/v4?contract=0x059edd72cd353df5106d2b9cc5ab83a52287ac3a
We can create a common method that checks the collection id and throws the error, and add to any API that allows collection as a filter.