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 token provenance by tokenId in a particular contractAddress with limit and offset pagination.

tokenProvenance({tokenId: string | number, contractAddress: string, pagination?: Pagination, network?: "testnet" | "mainnet"})

This is an example of a data api method.


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

const props = {
    tokenId: '104',
    contractAddress: 'teammintbase.mintbase1.near',
    pagination : {limit: 20 , offset:0 },
    network: 'mainnet',

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

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

console.log(data.nft_activities) // => token provenance data
console.log(data.nft_activities_aggregate.aggregate.count) // => token provenance counter

Last updated