1
0
Fork 0
VaultUI/src/api/sys/getSealStatus.ts
2021-05-10 11:35:14 +01:00

15 lines
369 B
TypeScript

import { appendAPIURL } from "../apiUtils";
export type SealStatusType = {
progress: number;
t: number;
sealed: boolean;
}
export async function getSealStatus(): Promise<SealStatusType> {
const request = new Request(appendAPIURL("/v1/sys/seal-status"));
const resp = await fetch(request)
const data = await resp.json() as SealStatusType;
return data;
}