[//]: # { "title": "API Methods", "order": "2.0" }
npm install @mintbase-js/data
Currently, these wrappers are methods for the GraphQL API. They are still in beta and may change at anytime.
| method name | params | description |
|---|---|---|
| attributesByMetaId | metadataId: string |
get all attributes from a specific metadataId |
| 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 |
| tokenOwner | tokenId: string, contractAddress: string |
get token owner by token id and certain contract |
| tokenProvenance | tokenId: string, contractAddress: string, pagination?: {limit: number, offset:number} |
get token provenance by token id and certain contract |
| tokenOwnersByMetadataId | metadataId: string, pagination?: {limit: number, offset:number} |
get token owners by metadata id |
| ownedStores | ownerId: string |
get stores owned by owner id |
| nearPrice | - | get near price in usd |
| checkStoreName | name: string |
check if store name already exists |
| storeData | `contractAddress: string | string[]` |
| storeNfts | `contractAddress: string | string[], showOnlyListed?: boolean, pagination?: {limit: number, offset:number}` |
| metadataByMetadataId | metadataId: string |
get metadata by metadataId |
| tokenByAttributes | contractId: string, filters: AttributesFilters |
get tokens of a certain contract and filters |
| attributesByContract | contractId: string |
get attributes of a certain contract |
| attributeRarity | contractId: string, attributeType: string, attributeValue: string |
get attribute rarity of a certain contract, attribute type and attribute value |