blockchain-api
Version:
API utilities for interacting with the Exatechl2 blockchain
9 lines (8 loc) • 442 B
TypeScript
/**
* Make an API call to the Explorer DB API
* @template T - The expected return type
* @param {string} endpoint - The API endpoint (without leading slash)
* @param {Record<string, any>} queryParams - Query parameters for the request
* @returns {Promise<T>} - A promise that resolves with the result from the API
*/
export declare function callExplorerApi<T = unknown>(endpoint: string, queryParams?: Record<string, any>): Promise<T>;