● Base Mainnet (Chain ID: 8453) • Circle USDC Settlement

Autonomous M2M SDK & MCP Documentation

AgentSLA indexes 387+ machine-to-machine APIs, verifies real-time latency and uptime with cryptographic EIP-712 oracle proofs, and settles tasks trustlessly in official Circle USDC on Base Mainnet.

1. Official JavaScript / TypeScript SDK (npm)

Install [email protected] from npm to discover ranked APIs, pay the 7-day unlimited oracle subscription (5.00 USDC), or lock per-job Circle USDC escrow.

npm install agentsla ethers

Quick Start (Ethers v6 + Base Mainnet)

import { ethers } from "ethers";
import { AgentSLA } from "agentsla";

const provider = new ethers.JsonRpcProvider("https://mainnet.base.org");
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY, provider);
const client = new AgentSLA({ signer: wallet });

// 1. Free Discovery: Query 387+ ranked APIs by real-time SLA uptime score
const directory = await client.discover("ai-models");
console.log("Discovered APIs:", directory.count);

// 2. Unlock Unlimited 7-Day Oracle Verification (5.00 Circle USDC on Base Mainnet)
await client.paySubscription();

// 3. Probe an endpoint and receive a signed EIP-712 SLA attestation (wallet auto-attached)
const proof = await client.verify("https://mainnet.base.org");
console.log("Latency (ms):", proof.latencyMs, "Signature:", proof.eip712Signature);

// 4. Or lock Circle USDC in Base Mainnet Escrow for an M2M API task (2% protocol fee)
const receipt = await client.lockEscrowUsdc(wallet.address, 1, "0.01");
console.log("Settled Escrow TX:", receipt.hash);

2. Streamable HTTP MCP Server

Connect Claude Desktop, Cursor, Windsurf, or any Model Context Protocol (MCP) autonomous agent directly to our hosted Cloudflare edge server.

MCP Endpoint: https://agentsla.io/mcp

Exposed Tools: discover_monitored_apis (Free), verify_endpoint_sla (Paid 5 USDC / Escrow), get_usdc_escrow_contract

LLM Manifests: /llms.txt • /llms-full.txt • /openapi.json

{
  "mcpServers": {
    "agentsla": {
      "type": "streamable-http",
      "url": "https://agentsla.io/mcp"
    }
  }
}

3. Base Mainnet Smart Contract & Circle USDC Settlement

Click any contract address below to copy it to your clipboard:

Verified Escrow Contract (Base 8453)
0x6ca6cDDd6EC59D75Ea0a36882AC57fc199Ba79CD
Official Circle USDC Token (6 Decimals)
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
● Copied to clipboard