userMintedTokens

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.

Returns number of minted tokens by accountId.

getUserMintedTokens({accountId: string, filters: UserTokensFilter,network?: "testnet" | mainnet}): Promise<ParsedDataReturn>

This is an example of a data api method.

Example:

userMintedTokens.ts

import { userMintedTokens } from  '@mintbase-js/data'

const props = {
  accountId: 'mintbase1.near',
  filters: {
      orderBy: 'price asc',
      limit: 10,
      offset: 0,
      listedFilter: true,
    },
  network: 'mainnet'
}

const { data, error } = await getUserMintedTokens(props);

if (error) {console.log('error', error)}

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

Last updated