@aresprotocol/sdk
v0.1.0
Published
Official TypeScript SDK for ARES Protocol trust and verification surfaces
Maintainers
Readme
ARES TypeScript SDK
Minimal TypeScript client for the public ARES Protocol API.
Canonical MCP quickstart:
Quickstart
import { AresClient } from '@aresprotocol/sdk';
const client = new AresClient({
apiBase: 'https://ares-protocol.xyz/api'
});
const agent = await client.getAgent('star');
const score = await client.getScore('star');
const leaderboard = await client.getLeaderboard();
const actions = await client.getActions({ agent: 'star', limit: 10 });
const disputes = await client.getDisputes({ agent: 'star', limit: 10 });
const health = await client.healthCheck();Available Methods
getAgent(address: string)getScore(address: string)getLeaderboard()getActions(query?: { agent?: string; limit?: number; cursor?: string; page?: number })getDisputes(query?: { agent?: string; limit?: number; cursor?: string | number; resolution?: 'pending' | 'accepted' | 'rejected' | 'no_quorum' })healthCheck()
Notes
apiBaseshould point to the public API root, for examplehttps://ares-protocol.xyz/api.- The constructor also accepts legacy
baseUrlfor backward compatibility, butapiBaseis the preferred option.
