UNPKG

@dioxide-js/silas

Version:

RPC utility for Silas

14 lines (13 loc) 439 B
import { AxiosRequestConfig } from 'axios'; export default class Fetcher { apiKey: string; get autherization(): string; constructor(opts: { apiKey: string; }); prune: (url: string) => string; postToBC<T>(action: string, payload: { [key: string]: any; }, opts?: AxiosRequestConfig): Promise<T>; post<T>(action: string, payload?: any, toBC?: boolean, opts?: AxiosRequestConfig): Promise<T>; }