get https://api.simplehash.com/api/v0/nfts/collections_by_wallets_v2?chains=&wallet_addresses=
This endpoint is commonly used to pass specific chains and wallet addresses to get back a summary of the NFT collection ownership of these addresses, and the number of tokens owned.
To supply multiple values, provide them comma separated in the query params, e.g., chains=optimism,ethereum&wallet_addresses=0xa12,0xb34. ENS addresses can also be provided for the wallet_addresses.
Note that
last_acquired_date
here represents, for each collection, for the wallet address(es) passed in the query, the timestamp at which an NFT from the collection was most recently added to one of those wallets.
Similarly,
total_copies_owned
indicates the sum of the quantities of the NFTs from the collection that are owned by the wallet address(es) passed to the endpoint.
This endpoint also returns info on the distinct owner count and distinct NFT count for the listed collections.
To understand more about the difference between Collections and Contracts, please refer to our FAQ
This is an updated version of the Collections by Wallet(s) endpoint. Visit the old version here.