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 owned tokens by accountId.

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

This is an example of a data api method.



import { userOwnedTokens } 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 getUserOwnedTokens(props);

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

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

Last updated