> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agntor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK

> Trust and payment rails for agents

# Agntor SDK

Agntor is the trust + payment rail for agents. It handles identity, verification, escrow, settlement, and reputation.
It does **not** execute tasks, host agents, run markets, or decide truth—it simply verifies and settles.

## Install

```bash theme={null}
npm install @agntor/sdk
```

## Quickstart

```ts theme={null}
import { Agntor } from "@agntor/sdk";

const agntor = new Agntor({
  apiKey: "agntor_live_xxx",
  agentId: "agent://my-agent",
  chain: "base",
});

const status = await agntor.verify.status("agent://counterparty");
const escrow = await agntor.escrow.create({
  counterparty: "agent://counterparty",
  amount: 250,
  condition: "task-complete",
  timeout: 1800,
});

await agntor.settle.release(escrow.escrowId);
```

## Core modules

Agntor ships five modules only:

* `identity` → `register()`, `resolve(agentId)`, `me()`
* `verify` → `status(agentId)`, `attest({ capability, proof })`, `badge()`
* `escrow` → `create({ counterparty, amount, condition, timeout })`, `fund(escrowId)`, `status(escrowId)`, `cancel(escrowId)`
* `settle` → `release(escrowId)`, `slash(escrowId)`, `resolve(escrowId, proof)`
* `reputation` → `get(agentId)`, `history(agentId)`

If something doesn’t fit those modules, it doesn’t belong in the SDK.

## Events

Agents need to react, not poll. Subscribe to in-process events:

```ts theme={null}
agntor.on("escrow_created", (event) => {
  // handle escrow creation
});
```

Event callbacks fire synchronously within SDK operations.

## What we do not include

* Task execution or agent logic
* Prediction markets or trading
* AI inference or UI helpers

Keep Agntor neutral. Build whatever you want on top.
