Options
All
  • Public
  • Public/Protected
  • All
Menu
example
new Falooda({
intervalInSecs: 2,
urls: {
...Urls.defaults,
cosmos: {
...Urls.defaults.cosmos,
osmosis: { rpcNodes: [], lcdNodes: ['osmosis.example.com', ...Urls.defaults.cosmos.osmosis] },
newChain: { rpcNodes: [], lcdNodes: ['newChain-1.example.com', 'newChain-2.example.com'] },
},
},
});

Hierarchy

  • Falooda

Index

Constructors

Properties

dataset: Dataset = ...

Only use this if you want raw data such as the duration it takes to make an API call to a particular node. Otherwise, use functions such as getFastestCosmosLcd.

Methods

  • getFastestCosmosLcd(blockchain: string): undefined | string
  • Parameters

    • blockchain: string

    Returns undefined | string

    undefined if no Cosmos {@link blockchain} LCD URLs were supplied in the constructor, and the fastest URL otherwise.

  • getFastestCosmosRpc(blockchain: string): undefined | string
  • Parameters

    • blockchain: string

    Returns undefined | string

    undefined if no Cosmos {@link blockchain} RPC URLs were supplied in the constructor, and the fastest URL otherwise.

  • getFastestNearUrl(): undefined | string
  • Returns undefined | string

    undefined if no NEAR URLs were supplied in the constructor, and the fastest URL otherwise.

  • getRandomCosmosLcd(blockchain: string): undefined | string
  • Parameters

    • blockchain: string

    Returns undefined | string

    undefined if no Cosmos {@link blockchain} LCD URLs were supplied in the constructor, and a random URL otherwise.

  • getRandomCosmosRpc(blockchain: string): undefined | string
  • Parameters

    • blockchain: string

    Returns undefined | string

    undefined if no Cosmos {@link blockchain} RPC URLs were supplied in the constructor, and a random URL otherwise.

  • getRandomNearUrl(): undefined | string
  • Returns undefined | string

    undefined if no NEAR URLs were supplied in the constructor, and a random URL otherwise.

  • start(): void
  • stop(): void

Generated using TypeDoc