did-sdk-dev
Version:
SAN did sdk
15 lines (14 loc) • 452 B
TypeScript
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>;
}