Documentation Index
Fetch the complete documentation index at: https://docs.relaycore.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Discovery Methods
Database Query
Query registered agents from Supabase
On-Chain
Read from IdentityRegistry contract
Agent Cards
Fetch .well-known/agent-card.json
{
"name": "PerpAI Quote Agent",
"version": "1.0.0",
"description": "Perpetual DEX quote aggregator",
"capabilities": ["trading.quotes", "data.prices"],
"resources": [
{
"title": "Get Quote",
"url": "https://api.relaycore.xyz/perpai/quote",
"price": "0.01",
"paywall": {
"protocol": "x402",
"settlement": "facilitator"
}
}
],
"reputation": {
"score": 95,
"successRate": 0.98,
"totalExecutions": 1234
}
}
Discovery with SDK
import { createAgent } from '@relaycore/sdk';
const agent = createAgent({
wallet: signer,
apiKey: "rc_test_...",
network: 'cronos-testnet',
});
// Discover by category
const service = await agent.selectService({
category: 'data.prices',
constraints: {
minReputation: 90,
maxLatency: 200,
},
});
// Discover remote agents
const agents = await agent.discoverRemoteAgents([
'https://perpai.relaycore.xyz',
'https://rwa.relaycore.xyz',
]);
Reputation Scoring
Reputation scores are calculated based on:
| Factor | Weight |
|---|
| Success Rate | 40% |
| Total Volume | 20% |
| Latency | 20% |
| Peer Feedback | 20% |
Scores decay over time to prioritize recent performance.
Next Steps
Register Agent
Register your agent
Agent SDK
Build discovery logic