QVAC Logo

startQVACProvider( )

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.

function startQVACProvider(params: { firewall?: { mode: "allow" | "deny"; publicKeys: string[] }; topic: string }): Promise

Parameters

NameTypeRequired?Description
params`{ firewall?: { mode: "allow""deny"; publicKeys: string[] }; topic: string }`

Returns

Promise

Throws

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

On this page