UNPKG

did-sdk-dev

Version:
15 lines (14 loc) 452 B
export declare type TJsonRpcResponse<T> = { code: number; message: string; content: T; details?: string; }; export declare class JsonRpc { endpoint: string; fetchBuiltin: (input?: Request | string, init?: RequestInit) => Promise<Response>; constructor(endpoint: string, args?: { fetch?: (input?: string | Request, init?: RequestInit) => Promise<Response>; }); fetch(path: string, body: any): Promise<any>; }