@registrai/kya
v0.1.0
Published
TypeScript SDK for the KYA (Know Your Agent) API — agent identity, reputation, feedback, and cross-chain linking
Readme
@registrai/kya
TypeScript SDK for the RegistrAI KYA API.
Install
npm install @registrai/kyaQuick start
import { KYAClient } from "@registrai/kya";
const kya = new KYAClient({
baseUrl: "https://api.registrai.cc",
apiKey: process.env.KYA_API_KEY, // required for write endpoints
});
const stats = await kya.getStats();
const profile = await kya.getAgent("0xOwnerOrMasterAgentId");
const trust = await kya.isAgentTrusted(profile.masterAgentId, {
minScore: 50,
minFeedback: 5,
});Runtime requirements
- Node.js
>=18(or any runtime withfetchsupport)
Notes
- Public read endpoints work without an API key.
- Webhook and developer endpoints require a valid developer API key.
- SDK throws
KYAErrorfor HTTP and network failures.
