UNPKG

@self.id/core

Version:

Read public records in Node and browsers environments

11 lines (10 loc) 259 B
import { AccountId } from 'caip'; export { isDIDstring } from '@glazed/did-datastore'; /** @internal */ export function isCAIP10string(account) { try { AccountId.parse(account); return true; } catch (e) { return false; } }