Circle Wallets · x402 · Stripe · Base · USDC

Trust infrastructure for agents that move money.

Audit trails, OFAC screening, on-chain proof, and agent-to-agent attestation. One SDK. One function call. Free forever.

$npm install kontext-sdk

On-Chain Proof

Anchored on Base

A2A Attestation

Agent-to-agent trust

8 Chains

Base, ETH, SOL + 5 more

Free Forever

20K events/mo

MIT License

Open source

GENIUS Act

Aligned

Interactive Demo

See it live — no API key required

Chat with an AI agent that moves USDC. Watch the audit trail, digest chain, trust score, and compliance checks update in real time.

Loading interactive demo...

Developer Experience

One function. Three layers of proof.

Call verify() on every wallet transfer. Get OFAC screening, trust scoring, on-chain anchoring, and counterparty attestation. All in one call.

  • Digest chain — tamper-evident local proof
  • On-chain anchor — immutable proof on Base
  • A2A attestation — bilateral compliance proof
  • Zero runtime dependencies
agent.tstypescript
import { Kontext } from 'kontext-sdk';

const ctx = Kontext.init({
  projectId: 'treasury-agent',
  environment: 'production',
});

const result = await ctx.verify({
  txHash: '0xabc...def',
  chain: 'base',
  amount: '5000',
  token: 'USDC',
  from: '0xAgentWallet',
  to: '0xRecipient',
  agentId: 'treasury-agent-v2',
  reasoning: 'Within daily limit. Recipient in allowlist.',
  anchor: {
    rpcUrl: 'https://mainnet.base.org',
    contractAddress: '0xbc71...b46',
  },
});

result.compliant            // true
result.trustScore.score     // 87
result.digestProof.valid    // true — tamper-evident
result.anchorProof?.txHash  // 0x... — on-chain proof
Integrations

Drop into your wallet stack

Circle Programmable Wallets, on-chain anchoring on Base, and agent-to-agent attestation.

Primary

Circle Programmable Wallets

Wrap every Circle wallet transfer with compliance logging. OFAC screening, trust scoring, and digest-chain proof in a single call.

circle.tstypescript
// Circle Programmable Wallets
const result = await ctx.verify({
  txHash: circleResponse.txHash,
  chain: 'base',
  amount: '5000',
  token: 'USDC',
  from: agentWallet,
  to: recipientAddress,
  agentId: 'treasury-agent-v2',
});

if (!result.compliant) {
  // Block transfer. result.checks shows what failed.
}
New

On-Chain Anchoring

Anchor your terminal digest to Base. Immutable, publicly verifiable proof that compliance checks ran. Anyone can audit — no Kontext account needed.

anchor.tstypescript
import { verifyAnchor } from 'kontext-sdk';

// Anyone can verify — read-only, zero deps
const proof = await verifyAnchor(
  'https://mainnet.base.org',
  '0xbc71...b46',
  digest,
);
console.log(proof.anchored); // true

// Or anchor inside verify()
const result = await ctx.verify({
  txHash: '0x...',
  chain: 'base',
  amount: '10000',
  token: 'USDC',
  from: agentWallet,
  to: recipientAddress,
  agentId: 'treasury-agent',
  anchor: {
    rpcUrl: 'https://mainnet.base.org',
    contractAddress: '0xbc71...b46',
    privateKey: process.env.ANCHOR_KEY,
  },
});
New

A2A Attestation

Exchange compliance proofs with counterparty agents. Both sides prove they ran checks on the same transaction. Zero dependencies.

attestation.tstypescript
// A2A: prove both sides ran compliance
const result = await ctx.verify({
  txHash: '0x...',
  chain: 'base',
  amount: '5000',
  token: 'USDC',
  from: '0xSender',
  to: '0xReceiver',
  agentId: 'sender-agent',
  counterparty: {
    endpoint: 'https://receiver.example.com',
    agentId: 'receiver-agent-v1',
  },
});

result.counterparty?.attested  // true
result.counterparty?.digest    // receiver's proof
Features

Everything your compliance officer will ask for

verify() logs the transaction, screens for sanctions, scores trust, anchors to the chain, and exchanges attestations with counterparties.

verify() in One Call

Log the transaction, run OFAC screening, score trust, and return a structured result. One function.

On-Chain Anchoring

Anchor your digest chain to Base. Immutable proof that compliance ran. Anyone can verify with just an RPC URL.

A2A Attestation

Exchange compliance proofs with counterparty agents. Both sides prove they checked the same transaction.

Agent Reasoning Logs

Record why your agent approved a transfer. When regulators ask, you have the answer.

Trust Scoring

0-100 trust score per agent. Five-factor breakdown: history, amount, frequency, destination, behavior.

Anomaly Detection

Flag unusual amounts, frequency spikes, new destinations, and off-hours activity.

Audit Export

Export JSON audit trails with tamper-evident digest proofs. CSV and SAR/CTR reports on Pro.

Digest Chain

Every action links to the previous via SHA-256. Proves no records were inserted, deleted, or reordered.

Agent Provenance

Session delegation records who authorized the agent. Action envelopes bind every call to a session. Human attestation proves a reviewer signed off.

Agent Forensics

Map wallets to agents, detect multi-wallet clustering with 5 heuristics, and compute identity confidence scores. Pro tier.

Kontext CLI

Verify transactions, audit digest chains, anchor on-chain, sync OFAC lists, and manage agent sessions — all from the terminal.

Architecture

Three layers of proof. One function call.

Each layer makes it harder to claim compliance checks didn't happen.

1

Digest Chain

Local Proof

SHA-256 hash chain links every action to the previous one. Tamper with one record and the chain breaks.

2

On-Chain Anchor

Immutable Proof

Terminal digest anchored to Base. Anyone with an RPC URL can verify it existed at a specific block.

3

A2A Attestation

Bilateral Proof

Both agents exchange digests. Each side proves independently that they ran compliance on the same transaction.

Provenance

Three-Layer Agent Accountability

Session delegation records who authorized the agent. Action envelopes bind every call to a session. Human attestation proves a reviewer signed off with a key the agent never touches.

  • Session delegation — records who granted agent authority
  • Action binding — ties every verify() call to a session
  • Human attestation — proves a reviewer signed off
  • Key separation — agent never touches the attestation key
provenance.tstypescript
const session = await ctx.createAgentSession({
  agentId: 'treasury-agent',
  delegatedBy: 'user:vinay',
  scope: ['transfer', 'approve'],
});

// Actions bound to session via sessionId
const result = await ctx.verify({
  ...txData,
  sessionId: session.sessionId,
});

// Human reviews and attests
const cp = await ctx.createCheckpoint({
  sessionId: session.sessionId,
  actionIds: [result.transaction.id],
  summary: 'Reviewed $5K transfer',
});
Regulatory Context

GENIUS Act signed. Regulations due July 2026.

The GENIUS Act (S. 1582) treats payment stablecoin issuers as financial institutions under the BSA. Implementing regulations drop July 2026. Prohibitions take effect November 2026. If your agents move USDC above $3K, you need an audit trail.

$3,000 — Travel Rule threshold (EDD required)
$10,000 — Currency Transaction Report threshold
OFAC screening — required for every transfer
Audit trails — required for BSA compliance

Ship compliance before the deadline.

npm install. Kontext.init(). verify(). Three layers of proof in one call. Open source, TypeScript-first, free forever.