QVAC Logo

stopQVACProvider( )

Stops a running provider service and leaves the specified topic.

function stopQVACProvider(params): Promise<object>;

Parameters

NameTypeRequired?Description
params.topicstringTopic hex string to leave

Returns

Promise<object> — The stop provide response containing success and optional error.

Throws

ErrorWhen
INVALID_RESPONSE_TYPEResponse type does not match expected "stopProvide"
PROVIDER_STOP_FAILEDThe server reports provider stop failure

Example

await stopQVACProvider({ topic: "a1b2c3d4..." });

On this page