[//]: # { "title": "@mintbase-js/data", "order": 1 }
@mintbase-js/data
Built-in methods to help fetch data from our indexer
methods
method name | params | description |
---|
ownedNftsByStore | ownerId: string,contractAddress: string, pagination: {limit: number, offset:number} | get all nfts from a single store |
ownedTokens | ownerId: string,{limit: number, offset:number} | get all tokens/nfts from a owner |
tokenById | tokenId: string, contractAddress: string | get token data by id of certain contract |
tokenListingCountsByMetaId | metadataId: string | get token listings from metadata id |
tokensByStatus | metadataId: string, ownedBy: string | get token by status on metadataId, and owner |
For now, use our GraphQL schemas
For as long as we have had an indexer, we have relied on GraphQL to provide Mintbase Builders with a flexible and efficient way to query data any way they like.
While we will continue to provide public and our new mb_views schema objects, we will also begin to introduce helper methods here that can be used to query data without having to write any graphql.
For now, reference our existing graphql docs and be sure to check back here soon for updates concerning our data layer API.