Constants
Canonical Masumi endpoints shipped with the SDK.
The SDK ships with the canonical production URLs for the Masumi identity infrastructure so you don't have to remember or hard-code them.
MASUMI_IDENTITY_ENDPOINTS
const MASUMI_IDENTITY_ENDPOINTS = {
production: {
credentialServerUrl: "https://cred-issuance.masumi-identity.xyz",
keriaUrl: "https://keria.masumi-identity.xyz",
},
} as const;Import
import { MASUMI_IDENTITY_ENDPOINTS } from "@masumi_network/identity-sdk";Recommended patterns
import {
MasumiIdentity,
MASUMI_IDENTITY_ENDPOINTS,
} from "@masumi_network/identity-sdk";
const identity = new MasumiIdentity(MASUMI_IDENTITY_ENDPOINTS.production);import {
MasumiIdentity,
MASUMI_IDENTITY_ENDPOINTS,
} from "@masumi_network/identity-sdk";
const identity = new MasumiIdentity({
credentialServerUrl:
process.env.MASUMI_CRED_URL ??
MASUMI_IDENTITY_ENDPOINTS.production.credentialServerUrl,
keriaUrl:
process.env.MASUMI_KERIA_URL ??
MASUMI_IDENTITY_ENDPOINTS.production.keriaUrl,
});These URLs are versioned alongside the SDK. If the network moves, a new SDK release ships with updated URLs — consumers get the fix on upgrade. Prefer reading from this constant over hard-coding the URLs in your own code.
VERSION
The current SDK version as a string constant. Useful for diagnostic logs.
import { VERSION } from "@masumi_network/identity-sdk";
console.log(`Using Masumi Identity SDK v${VERSION}`);