Stargaze API
The Stargaze API provides programmatic access to Stargaze data.
Query data on collections, offers on Marketplace, NFT media info, Stargaze Names, or whatever you want. Everything that is on the website at stargaze.zone is available via this API.
GraphQL
Here is a quick and basic example which returns a subset of available data for a given collectionAddr
and tokenId
using the @apollo/client
package.
Notes:
You can use your favorite GraphQL tech and tools such as
react-query
if you wishIf you run into
CORS
issues you can proxy the request through your own server or a serverless solution such as CloudFlare functions (example).
Last updated