Five lines.
Full compliance.
The compliance logging SDK for developers building on Circle Programmable Wallets. verify(), trust scoring, anomaly detection, and tamper-evident audit trails — with zero runtime dependencies.
npm install kontext-sdk · 20K events/mo free forever · no credit card
import { Kontext } from 'kontext-sdk';
const ctx = Kontext.init({ projectId: 'payment-agent', environment: 'production' });
const sessionId = Kontext.generateSessionId();
// 1. verify() — compliance check + log in one call
const result = await ctx.verify({
txHash: '0xabc...', chain: 'base', amount: '5000', token: 'USDC',
from: '0xsender', to: '0xrecipient', agentId: 'agent-v1', sessionId,
});
// result.compliant = true result.riskLevel = 'low'
// 2. logReasoning() — the why is auditable too
await ctx.logReasoning({ agentId: 'agent-v1', sessionId, step: 1,
action: 'approve-transfer', reasoning: 'verify() passed. Proceeding.',
confidence: 0.98 });
// 3. getTrustScore() — behavioral health over time
const trust = await ctx.getTrustScore('agent-v1');
// trust.score = 87 trust.level = 'high'
// 4. export() — tamper-evident audit trail (Patent US 12,463,819 B1)
const audit = await ctx.export({ format: 'json' });
// audit.terminalDigest = 'sha256:4a8f...'Developers handling $3K+ USDC transfers with zero compliance infrastructure.
Developers building on Circle Programmable Wallets handle material USDC transfers with zero audit trails, reasoning logs, or tamper-evident proof that compliance checks actually ran. The GENIUS Act (signed July 2025) treats payment stablecoin issuers as financial institutions under the BSA. Prohibitions take effect November 2026.
Compliance infrastructure exists for enterprises paying $100K+/year. Nothing exists for developers shipping autonomous agents with npm install. That's what Kontext fixes.
From zero to compliant in 3 steps
Install
30 seconds
npm install kontext-sdkverify()
2 minutes
const ctx = Kontext.init({ projectId: 'my-agent' });
const result = await ctx.verify({
txHash: '0xabc...', chain: 'base',
amount: '5000', token: 'USDC',
from: '0xsender', to: '0xrecipient',
agentId: 'agent-v1',
});
// result.compliant = trueexport()
1 minute
const audit = await ctx.export({ format: 'json' });
const valid = ctx.verifyDigestChain();
// valid.valid = true valid.chainLength = 42Everything you need to ship compliant
Verify transactions, score agent trust, detect anomalies, and generate compliance certificates. All included. Free features are free forever.
verify()
Compliance check + transaction log in a single call. OFAC screening, EDD thresholds ($3K Travel Rule, $10K CTR), and digest chain entry — all at once.
logReasoning()
When regulators ask "why did your agent approve this?" — only Kontext users can answer. The why-chain is in the audit trail, tamper-evident.
Trust Scoring
0–100 behavioral health score per agent, computed across 5 factors: history depth, task completion, anomaly frequency, transaction consistency, compliance adherence.
Anomaly Detection
unusualAmount and frequencySpike detection are free. Advanced rules — newDestination, offHoursActivity, rapidSuccession, roundAmount — are Pay as you go at $0.10/anomaly.
Compliance Certificates
Generate exportable certificates with digest chain proof, trust score, action counts, and reasoning entries. SHA-256 content hash for tamper detection.
createTask()
Human-in-the-loop for high-value transfers. Create tasks with required evidence, confirm or fail them. Every decision is logged into the digest chain.
export()
JSON audit export is free. CSV export is Pay as you go. Every export includes the terminal digest and full chain verification for tamper-evident proof.
Digest Chain
SHA-256 rolling hash chain links every action, transaction, and reasoning entry into a tamper-evident sequence. Patent US 12,463,819 B1.
Tamper-evident by design
Every action, transaction, and reasoning entry is linked into a SHA-256 rolling hash chain. If any entry is altered, the chain verification fails. The terminal digest is your cryptographic proof that compliance ran.
Genesis Block
sha256:0000...
Action Hash
sha256:1b3c...
Action Hash
sha256:2b3c...
Terminal Digest
sha256:4a8f...
Each hash includes the previous hash — altering any entry breaks the chain
Simple, honest pricing
First 20,000 events are free forever. No credit card required.
Free
$0
forever, no credit card
- ✓ 20,000 events/mo always free
- ✓ verify(), logReasoning(), createTask()
- ✓ Trust scoring + compliance certificates
- ✓ Basic anomaly detection (2 rules)
- ✓ JSON audit export
- ✓ Base chain
Pay as you go
$0 to start
then $2.00 / 1K events
- ✓ First 20K events always free
- ✓ $2.00 / 1K events after 20K
- ✓ All 8 chains (after $5 spend)
- ✓ Advanced anomaly detection ($0.10/anomaly)
- ✓ CSV audit export
- ✓ Email support
GENIUS Act — What you need to know
July 18, 2025
GENIUS Act signed into law
July 2026
Implementing regulations published
November 2026
Prohibitions take effect
The GENIUS Act (S. 1582, signed July 18, 2025) treats payment stablecoin issuers as financial institutions under the BSA. Implementing regulations are due July 2026. Developers handling material USDC transfers need audit infrastructure before prohibitions take effect November 2026.
Ship compliance today.
20,000 events free forever. No credit card. Five minutes to integration.