Api

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

Parameters

apiHost

The base URL of the API server.

credentials

Supplies the bearer token sent with each request.

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.


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

Deprecated

Provide a PortalCredentials instead of a raw key.

Constructs the API with a raw Client API Key.