nostrbasedocs
Start building
API reference
.md

Read the record protocol guide. Signatures below come from the published SDK declarations. Access SDK services through db; use their constructors only when integrating at a lower level.

RECORD_KIND

declare const RECORD_KIND = 30078;

PROTOCOL_VERSION

declare const PROTOCOL_VERSION = 1;

scopeTag

declare const scopeTag: (namespace: string, table: string) => string;

recordIdentifier

declare const recordIdentifier: (
  namespace: string,
  table: string,
  id: string,
) => string;

Search guides, API methods, and protocols.