QVAC Logo

startQVACProvider( )

Starts a provider service for delegated inference.

function startQVACProvider(params): Promise<{
  error?: string;
  publicKey?: string;
  success: boolean;
  type: "provide";
}>;

Description

Starts a provider service that offers QVAC capabilities to remote peers. The provider's keypair can be controlled via the seed option or QVAC_HYPERSWARM_SEED environment variable.

Parameters

NameTypeRequired?Description
paramsobjectProvider configuration

params

FieldTypeRequired?Description
topicstringTopic to join
firewallobjectOptional firewall configuration

firewall

FieldTypeRequired?Description
mode"allow" | "deny"Firewall mode
publicKeysstring[]Array of public keys to allow or deny

Returns

Promise<object> — A promise that resolves to the provide response containing success status and public key

FieldTypeRequired?Description
successbooleanWhether the operation succeeded
publicKeystringProvider's public key
errorstringError message if failed
type"provide"Response type

Throws

When the response type is not "provide" or the request fails

On this page