SDK

How to use the protocol — packages, sign-in, data APIs, delegation, and CLI.

SDK

How to use the protocol — packages, sign-in, data APIs, delegation, and CLI.

Concepts

  • Packages — sdk-core, sdk-services, node-sdk, web-sdk, sdk-rs (WASM), vfs, and cli.
  • Sign-In Flow — session key → prepareSession (SIWE-ReCap) → wallet signs → completeSessionSetup → ensureSpaceExists.
  • Data APIs — Reading and writing data across the KV, SQL, and DuckDB services from the SDK.
  • Delegation API — delegateTo(did, PermissionEntry[]) and PortableDelegation for sharing capabilities.
  • Secrets Sharing — Sharing encrypted secrets between identities via the SDK.
  • CLI — The command-line interface for interacting with a node.