btc-wallet
Version:
BTC Wallet is a toolkit that enables Bitcoin usage on the NEAR blockchain through the Satoshi protocol.
13 lines (12 loc) • 486 B
TypeScript
interface RequestOptions<T> extends RequestInit {
body?: RequestInit['body'] | any;
retryCount?: number;
timeout?: number;
cacheTimeout?: number;
pollingInterval?: number;
maxPollingAttempts?: number;
shouldStopPolling?: (response: T) => boolean;
}
export declare function withCache<T>(key: string, fetcher: () => Promise<T>, timeout?: number): Promise<T>;
export default function request<T>(url: string, options?: RequestOptions<T>): Promise<T>;
export {};