Ask or search…
⌃K
Links

API Methods

Installing

npm install @mintbase-js/data
package needed: npm install --save-dev isomorphic-unfetch

Using Data APIs

Currently, these wrappers are methods for the GraphQL API. They are still in beta and may change at anytime.

methods

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
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
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}`
metadataId: string
get metadata by metadataId
​tokenByAttributes​
contractId: string, filters: AttributesFilters
get tokens of a certain contract and filters
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