decent-sdk
Version:
SDK for the Decent API
25 lines (24 loc) • 1.08 kB
TypeScript
import { SupportedChainId } from '../types/Chains';
import { Health, Meta } from '../types/Api';
import { BaseParams } from './common/params';
/**
* Fetches API metadata information.
* @param params - The parameters for fetching API info.
* @param params.apiUrl - Optional API URL override.
* @returns {Promise<Meta>} A promise with the API metadata.
*/
export declare const apiInfo: (params?: BaseParams) => Promise<Meta>;
/**
* Fetches API health status.
* @param params - The parameters for fetching API health.
* @param params.apiUrl - Optional API URL override.
* @returns {Promise<Health>} A promise with the API health status.
*/
export declare const apiHealth: (params?: BaseParams) => Promise<Health>;
/**
* Fetches the list of supported chains from the API.
* @param params - The parameters for fetching supported chains.
* @param params.apiUrl - Optional API URL override.
* @returns {Promise<SupportedChainId[]>} A promise with an array of supported chain IDs.
*/
export declare const apiChains: (params?: BaseParams) => Promise<SupportedChainId[]>;