1.8 KiB
1.8 KiB
External Integrator Quickstart
This is the minimal path for external teams integrating wallets, bots, or backend services with clawd.
1) Runtime readiness gate
Use the same startup/readiness flow operators run:
make clawd-build
make clawd-up-ready MANIFEST="https://testnet.clawchain.dev/manifest.json" HOST="your.public.host"
make runtime-readiness-gate
If you are integrating through OpenClaw runtime:
make openclaw-up-ready MANIFEST="https://testnet.clawchain.dev/manifest.json" HOST="your.public.host"
2) Query path (read-only)
Use the SDK for canonical query paths:
import { ClawChainClient } from "@clawchain/sdk";
const client = new ClawChainClient({ rpcUrl: "http://localhost:26657" });
await client.connect();
const root = await client.getMerkleRoot();
const skills = await client.getSkills();
await client.disconnect();
See full query+tx templates in sdk/examples/README.md.
3) Transaction path (signed)
Pass a mnemonic and broadcast through typed module methods:
import { ClawChainClient } from "@clawchain/sdk";
const client = new ClawChainClient({
rpcUrl: "http://localhost:26657",
mnemonic: process.env.CLAWCHAIN_MNEMONIC,
});
await client.connect();
const tx = await client.delegateTask({
assignee: "claw1...",
description: "Run task X",
budget: "100000uclaw",
deadlineBlocks: 200,
});
console.log(tx.transactionHash);
await client.disconnect();
4) Release-facing integration gate
For release candidate verification without CI/test-suite expansion:
make protocol-sanity
make release-ready-gate MANIFEST="https://testnet.clawchain.dev/manifest.json" HOST="your.public.host"
This ensures protocol surface lock consistency, readiness-oriented startup flow, and reproducibility/provenance checks required by current PRD gates.