Fide logoFIDE

getFideEntityTypeSpecByCode

Look up the definition for a single Fide entity type by hexadecimal code.

Node Runtime Required

This function requires a Node.js runtime and is disabled in the browser docs preview.
getFideEntityTypeSpecByCode(code)

Parameters

codeFideEntityTypeCode*
The 2-character hexadecimal entity type code.

Returns

Prop

Type

import { getFideEntityTypeSpecByCode } from '@fide-work/context-protocol';

const result = getFideEntityTypeSpecByCode('10');

Type Definitions

type FideEntityTypeCode

"00" | "01" | "02" | "10" | "11" | "12" | "20" | "21" | "22" | "30" | "31" | "40" | "41" | "42" | "43" | "a0" | "a1" | "a2" | "a3" | "b1" | "b2" | "b3" | "b4" | "b0" | "b5" | "c0" | "c1"

type FideEntityTypeSpec

FideEntityTypeSpec

Properties

Prop

Type

type Statement7 properties

Complete statement object with all required fields **Important**: Both Fide IDs and reference identifiers are required because: - Fide IDs are one-way hashes - cannot be reversed to get reference identifiers - Protocol specification requires both fields - Indexers need reference identifiers for lookup tables and human-readable display - Enables mapping back to human-readable identifiers for debugging and display

Statement

Properties

Prop

Type

type FideId

Full Fide ID format (with did:fide:0x prefix). Length: 11 ("did:fide:0x") + 40 hex = 51 chars.

`did:fide:0x${string}`