Files
prime-sdk-node/src/system.ts
Andrew Miller 98ab2e05a7
Some checks failed
Build and Test / build (16.x) (push) Failing after 12s
Build and Test / build (18.x) (push) Failing after 6s
Build and Test / build (20.x) (push) Failing after 6s
Initial Commit
2025-11-05 15:25:20 -05:00

29 lines
559 B
TypeScript

/**
* System module for Dragonchain system operations
*/
import { DragonchainClient } from './client';
import { SystemStatus } from './types';
export class SystemClient {
private client: DragonchainClient;
constructor(client: DragonchainClient) {
this.client = client;
}
/**
* Checks system health
*/
async health(): Promise<void> {
await this.client.get<void>('/api/v1/health');
}
/**
* Gets system status
*/
async status(): Promise<SystemStatus> {
return this.client.get<SystemStatus>('/api/v1/status');
}
}