Try the public API end-to-end without writing code. Each endpoint sends a real request to this deployment.
The headline differentiator. view_bond(min_bond, min_score) reverts your program’s tx atomically if the agent doesn’t meet policy. Use this when a UI gate isn’t enough.
// In your Anchor program - gate any capital-handling instruction
// with a CPI to view_bond. Reverts the parent tx atomically if any of:
// agent.frozen == true | bond < min_bond | score < min_score
use telaro::cpi::accounts::ViewBond;
use telaro::cpi::view_bond;
use telaro::program::Telaro;
#[derive(Accounts)]
pub struct DelegateCapital<'info> {
pub agent: Account<'info, telaro::Agent>,
pub bonded_agents_program: Program<'info, Telaro>,
// ... your program's other accounts
}
pub fn delegate(ctx: Context<DelegateCapital>, amount: u64) -> Result<()> {
view_bond(
CpiContext::new(
ctx.accounts.bonded_agents_program.to_account_info(),
ViewBond { agent: ctx.accounts.agent.to_account_info() },
),
100_000_000, // min_bond - atomic USDC (= $100)
700, // min_score - 0..=1000
)?;
// ↑ if the agent doesn't clear policy, we never get here.
// ... your normal delegation logic
Ok(())
}# Cargo.toml
[dependencies]
telaro = { version = "0.1", features = ["cpi"] }
anchor-lang = "0.30"/api/healthService liveness probe.
/api/health/api/agentsList bonded agents. Supports framework / minBond / minScore / limit filters.
/api/agents?minScore=700&limit=5/api/agent/{pubkey}Single agent full detail (score, bond, action log, claims, score series).
/api/agent/AgentSenda1JupiterLPv31111111111111111111111/api/leaderboardTop-N agents + ecosystem stats. Designed for embeds.
/api/leaderboard?limit=5/api/card/{pubkey}.pngDynamic Trust Card PNG. This URL is what the AgentID NFT image_url points at.
/api/card/AgentSenda1JupiterLPv31111111111111111111111.png/api/agent/{pubkey}/anomaliesPRO+ only. Heuristic risk signals: dispute spike, action burst, bond ratio, score collapse.
Mint a key at /keys and upgrade tier from there. Without a key this endpoint returns HTTP 402.
/api/agent/AgentSenda1JupiterLPv31111111111111111111111/anomalies/api/verxio/badge/{pubkey}Verxio loyalty badge metadata (Metaplex Core schema). Tier auto-derives from current score.
/api/verxio/badge/AgentSenda1JupiterLPv31111111111111111111111