@azuro-org/toolkit
Version:
This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.
29 lines (28 loc) • 853 B
TypeScript
import type { ChainId } from '../../config';
import type { GameData } from './types';
export type GetGamesByIdsParams = {
chainId: ChainId;
gameIds: string[];
};
type GetGamesByIdsResponse = {
games: GameData[];
};
export type GetGamesByIdsResult = GetGamesByIdsResponse['games'];
/**
* Fetches game data for a specific list of game IDs.
* Returns detailed information for each requested game including participants, timing, and league data.
*
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByIds
*
* @example
* import { getGamesByIds } from '@azuro-org/toolkit'
*
* const games = await getGamesByIds({
* chainId: 137,
* gameIds: ['1006000000000080373237'],
* })
*
* const gameData = games[0]
* */
export declare const getGamesByIds: (props: GetGamesByIdsParams) => Promise<GetGamesByIdsResult>;
export {};