@fairmint/canton-node-sdk
Version:
Canton Node SDK
28 lines • 1.34 kB
TypeScript
import { ApiOperation } from '../../../../../core/operations/ApiOperation';
import { operations } from '../../../../../generated/apps/scan/src/main/openapi/scan';
import { GetMemberTrafficStatusParams } from '../../../schemas/operations';
/**
* @description Get a member's traffic status as reported by the sequencer
* @example
* ```typescript
* // Get traffic status for current party in current mining round domain
* const status = await client.getMemberTrafficStatus();
*
* // Get traffic status for specific member in current mining round domain
* const status = await client.getMemberTrafficStatus({
* memberId: 'PAR::id::fingerprint'
* });
*
* // Get traffic status for specific member in specific domain
* const status = await client.getMemberTrafficStatus({
* domainId: 'domain123',
* memberId: 'PAR::id::fingerprint'
* });
*
* console.log(`Total consumed: ${status.traffic_status.actual.total_consumed}`);
* ```
*/
export declare class GetMemberTrafficStatus extends ApiOperation<GetMemberTrafficStatusParams, operations['getMemberTrafficStatus']['responses']['200']['content']['application/json']> {
execute(params: GetMemberTrafficStatusParams): Promise<operations['getMemberTrafficStatus']['responses']['200']['content']['application/json']>;
}
//# sourceMappingURL=get-member-traffic-status.d.ts.map