Creating the client
Usealphscan(settings?) to create the API client. Settings can be omitted (then env is used), or passed to override.
AlphscanSettings
Environment variables
The SDK reads settings from the environment when you don’t pass them:Helpers
getSettingsFromEnv()— returns a partialAlphscanSettingsfromprocess.env.resolveSettings(overrides?)— merges env with overrides (overrides win).getApiBaseUrl(settings)— returns the effective base URL (e.g.https://api.alphscan.ioorhttps://api.alphscan.io/dev).
AlphscanClientApi
The object returned byalphscan():
Accessing
keys or payment without an API key throws.
Deprecated
createAlphscanClient({ baseUrl }) — use alphscan({ apiUrl: baseUrl }) instead.
