Last updated 1 year ago
Use this method to get an Item's Transaction History.
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;
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; }
perPage
number
Optional
The number of events to return
page
The offset for returned items. Calculated as (page - 1) * perPage