History

Bancor SDKGlobalsHistory

Class: History

The History module allows querying historical data in the bancor network

Hierarchy

  • SDKModule

    History

Index

Constructors

Properties

Methods

Constructors

constructor

+ new History(core: Core): History

Inherited from History.constructor

Parameters:

Returns: History

Properties

core

core: any = null

Inherited from History.core

Methods

getConversionEvents

getConversionEvents(token: Token, fromBlock: number, toBlock: number): Promise‹ConversionEvent[]›

returns all Conversion events for a given liquidity pool / liquid token between two block numbers

Parameters:

Returns: Promise‹ConversionEvent[]›

list of Conversion events

getConversionEventsByTimestamp

getConversionEventsByTimestamp(token: Token, fromTimestamp: number, toTimestamp: number): Promise‹ConversionEvent[]›

returns all Conversion events for a given liquidity pool / liquid token between two points in time

Parameters:

Returns: Promise‹ConversionEvent[]›

list of Conversion events

Last updated