For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get an Item's History

Use this method to get an Item's Transaction History.

Usage in your script

const response = await alturaItem.getHistory();

// customize options
const response = await alturaItem.getHistory({
  perPage: 20,
  page: 1
});

const history = response.events;
const response: {events: IAlturaEvent[]} = await alturaItem.getHistory();

// customize options
const response: {events: IAlturaEvent[]} = await alturaItem.getHistory({
  perPage: 20,
  page: 1
});

const history = response.events;

Parameters

Parameter
Type
Required
Description

perPage

number

Optional

The number of events to return

page

number

The offset for returned items. Calculated as (page - 1) * perPage

Event Object

export interface IAlturaEvevnt {
  id: string;
  amount: string;
  blockNumber: number;
  chainId: number;
  event: string;
  from: string;
  itemCollection: string;
  itemRef: string;
  timestamp: number;
  to: string;
  tokenId: number;
  transactionHash: string;
}

Last updated