Integrate
Two calls to
go live
Register once, query forever. The Sigil SDK wraps registry contract calls and returns a normalized trust profile your agent, dashboard, or payment middleware can consume without parsing raw logs.
Use the CLI for one-off registration during development, then embed the client in production flows where every outbound USDC transfer checks the recipient first.
$ npm install @sigil/sdk
$ sigil register --config agent.json
Responses are stable JSON whether you query from TypeScript, Python, or an MCP tool. Cache profiles locally, refresh on a TTL, or subscribe to registry events for real-time gate updates.
register.ts
import { SigilClient } from '@sigil/sdk';
const sigil = new SigilClient({ network: 'base' });
const agent = await sigil.register({
name: 'storm-scout',
role: 'data-fetcher',
endpoints: ['https://api.example/mcp'],
registrationURI: 'ipfs://Qm.../agent.json',
});
console.log(agent.agentId); // 4821
trust-profile.ts
const profile = await sigil.getTrustProfile({
agentId: 4821,
});
// Response
{
"identity": { "verified": true, "owner": "0x71C..." },
"reputation": { "score": 87, "feedbackCount": 142 },
"attestations": 3,
"lastActive": "2026-06-24T14:02:00Z"
}