Skip to content

Module: core

Core APIs

npm install @self.id/core

Classes

Type aliases

CeramicNetwork

Ƭ CeramicNetwork: "local" | "mainnet-gateway" | "testnet-clay" | "testnet-clay-gateway"


CoreModelTypes

Ƭ CoreModelTypes: ModelTypeAliases<{ AlsoKnownAs: AlsoKnownAs ; BasicProfile: BasicProfile ; CryptoAccounts: CryptoAccountLinks }, { alsoKnownAs: "AlsoKnownAs" ; basicProfile: "BasicProfile" ; cryptoAccounts: "CryptoAccounts" }>


CoreParams

Ƭ CoreParams<ModelTypes>: Object

Type parameters

Name Type
ModelTypes extends ModelTypeAliases = CoreModelTypes

Type declaration

Name Type
cache? TileCache | boolean
ceramic CeramicNetwork | string
loader? TileLoader
model? ModelTypesToAliases<ModelTypes>

PublicIDParams

Ƭ PublicIDParams<ModelTypes>: Object

Type parameters

Name Type
ModelTypes extends ModelTypeAliases = CoreModelTypes

Type declaration

Name Type
core Core<ModelTypes>
id string

Variables

CERAMIC_URLS

CERAMIC_URLS: Record<CeramicNetwork, string>

Functions

isCAIP10string

isCAIP10string(account): boolean

Parameters

Name Type
account string

Returns

boolean