Skip to content

Latest commit

 

History

History
53 lines (16 loc) · 881 Bytes

File metadata and controls

53 lines (16 loc) · 881 Bytes

tokenListingCounts

{% hint style="warning" %}

This is a work in progress, please reach out to us on Telegram for support.

For the most reliable data, reference our existing graphql docs.

{% endhint %}

Returns number of tokens by metadataId.

tokenListingCountsByMetaId( metadataId: string, network?: 'mainnet' | 'testnet')

This is an example of a data api method.

Example:

{% code title="queryNftsByStore.ts" overflow="wrap" lineNumbers="true" %}

import { tokenListingCountsByMetaId, TokenListingQueryResults } from  '@mintbase-js/data'



const data: TokenListingQueryResults = tokenListingCountsByMetaId('dogeflower.mintbase1.near%3A5ef2d9b0651172d90dc173af0726b5fc', 'mainnet');



console.log(data.totalListingsCount) // => 10

{% endcode %}