Documentation Index
Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt
Use this file to discover all available pages before exploring further.
TypeScript SDK
LucidLayer API: LucidLayer Offchain API. Route groups:/v1/*— Passports, Match, Run, Receipts, Epochs, Payouts, Compute/health/*— System health and dependency checks/api/agents/*— AI Agent MMR, Planner, and Orchestrator
Installation
Quick Start
Authentication
Namespaces
| Namespace | Description | Operations |
|---|---|---|
sdk.a2a | Google A2A protocol — agent cards, task submission, and task lifecycle | 6 |
sdk.agents | DEPRECATED: Legacy agent MMR orchestration (use AgentDeploy, AgentMirror instead) | 19 |
sdk.agentscrosschain | Cross-chain agent operations. | 2 |
sdk.anchoring | DePIN anchoring control plane — query, verify, and trace artifact anchor records | 5 |
sdk.chains | Supported chain and network metadata. | 2 |
sdk.compute | Compute node heartbeat registration and health monitoring | 3 |
sdk.crosschain | EVM multi-chain operations — chain status, ERC-8004 registration, cross-chain reputation and payouts | 2 |
sdk.deploy | Agent deployment workflows. | 8 |
sdk.disputes | Escrow dispute resolution — open, submit evidence, resolve, appeal | 5 |
sdk.epochs | Epoch lifecycle — creation, finalization, on-chain anchoring, and retry | 12 |
sdk.escrow | Cross-chain escrow lifecycle — create, release, dispute, and query | 4 |
sdk.health | System health — liveness, readiness, and per-dependency status checks | 7 |
sdk.identity | Cross-chain identity bridging — CAIP-10 linking, resolution, and chain discovery | 5 |
sdk.launch | Agent launch flows. | 6 |
sdk.match | Policy-based compute matching and route planning | 3 |
sdk.memory | Agent memory — episodic, semantic, procedural, entity, trust-weighted, temporal types with hash-chain provenance | 19 |
sdk.mirror | Mirroring and projection operations. | 4 |
sdk.modules | ERC-7579 module management — install, uninstall, and configure policy/payout modules | 5 |
sdk.passports | AI asset identity — create, list, update, delete model/compute/tool/dataset/agent passports | 15 |
sdk.paymaster | ERC-4337 gas sponsorship — sponsor transactions, estimate fees, check rates | 3 |
sdk.payments | x402 payment configuration — pricing, facilitators, grants, and subscription | 10 |
sdk.payouts | Revenue split calculation and payout execution (basis-point math) | 4 |
sdk.payoutscrosschain | Cross-chain payout operations. | 2 |
sdk.receipts | Cryptographic receipts — create, verify, and generate MMR inclusion proofs | 7 |
sdk.reputation | Pluggable reputation scoring — algorithms, compute scores, and composite aggregation | 3 |
sdk.reputationcrosschain | Cross-chain reputation operations. | 5 |
sdk.revenue | Revenue and share accounting. | 3 |
sdk.run | OpenAI-compatible inference (chat completions) and model listing | 2 |
sdk.shares | Share token launch and revenue airdrop for fractional AI asset ownership | 3 |
sdk.tba | ERC-6551 Token Bound Accounts — create and query agent wallets | 2 |
sdk.wallet | Wallet and account helpers. | 4 |
sdk.webhooks | Deployment webhook receivers — normalizes provider-specific callbacks into deployment events | 1 |
sdk.zkml | Zero-knowledge ML — prove inference, verify proofs, register models on-chain | 4 |
Supported Runtimes
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:- Web Fetch API
- Web Streams API and in particular
ReadableStream - Async iterables using
Symbol.asyncIterator
- Evergreen browsers which include: Chrome, Safari, Edge, Firefox
- Node.js active and maintenance LTS releases
- Currently, this is v18 and v20
- Bun v1 and above
- Deno v1.39
- Note that Deno does not currently have native support for streaming file uploads backed by the filesystem (issue link)
Recommended TypeScript compiler options
The followingtsconfig.json options are recommended for projects using this
SDK in order to get static type support for features like async iterables,
streams and fetch-related APIs (for await...of,
AbortSignal, Request, Response and
so on):
target can be set to older ECMAScript versions, it may result in extra,
unnecessary compatibility code being generated if you are not targeting old
runtimes.
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)