Api

constructor(apiHost: String, apiKey: String, requests: PortalRequests = PortalRequests(), provider: Provider, featureFlags: FeatureFlags? = null, enclaveApiHost: String = "mpc-client.portalhq.io")

Parameters

apiHost

The base URL of the API server.

apiKey

The API key used for authentication.

requests

An instance of PortalRequests to handle HTTP requests. Defaults to a new instance.

provider

An instance of Provider to access device specific data.

featureFlags

An optional instance of FeatureFlags for feature flag management.

enclaveApiHost

The Enclave MPC API host. Defaults to mpc-client.portalhq.io.