Five lines.
Full compliance.
The compliance logging SDK for developers building on Circle Programmable Wallets. One call — compliance check, trust score, anomaly detection, reasoning, and tamper-evident proof. 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',
approvalThreshold: '3000', // auto human-in-the-loop above $3K
});
// One call. Everything back.
const result = await ctx.verify({
txHash: '0xabc...', chain: 'base', amount: '5000', token: 'USDC',
from: '0xsender', to: '0xrecipient', agentId: 'agent-v1',
reasoning: 'Transfer within daily limit. Recipient in allowlist.',
confidence: 0.95,
});
result.compliant // true
result.trustScore.score // 87
result.requiresApproval // true (amount > approvalThreshold)
result.task // { id: 'task_abc', status: 'pending', ... }
result.digestProof // { terminalDigest: '4a8f...', valid: true }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 result = await ctx.verify({
txHash: '0xabc...', chain: 'base',
amount: '5000', token: 'USDC',
from: '0xsender', to: '0xrecipient',
agentId: 'agent-v1',
reasoning: 'Approved. Recipient in allowlist.',
});
// result.compliant, trustScore, anomalies, digestProof
// result.requiresApproval, result.task (if above threshold)export()
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()
One call, everything back. Compliance check, transaction log, trust score, anomaly detection, reasoning, and digest proof. OFAC screening, EDD thresholds ($3K Travel Rule, $10K CTR) included.
Built-in Reasoning
Pass reasoning and confidence directly to verify(). When regulators ask "why did your agent approve this?" — the answer is in the response, tamper-evident.
Auto Trust Scoring
Every verify() call returns a 0-100 trust score per agent, computed across 5 factors: history depth, task completion, anomaly frequency, transaction consistency, compliance adherence.
Auto Anomaly Detection
Configure anomaly rules at init(), get results in every verify() response. unusualAmount and frequencySpike are free. Advanced rules 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.
approvalThreshold
Set approvalThreshold at init() and verify() auto-creates a pending task when the amount exceeds it. Confirm with confirmTask(). 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() — compliance, trust, anomalies, reasoning, proof
- ✓ approvalThreshold — auto human-in-the-loop
- ✓ 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.