Official client libraries for Python and TypeScript. Typed models, async support, automatic retry with exponential backoff, and built-in rate limit handling.
Sync and async clients. Typed Pydantic models. Built on httpx.
Requires Python 3.9 or later. Built on httpx for async support.
pip install veris-sdk
from veris import Veris
client = Veris(api_key="vrs_sk_live_...")
# Screen an address
result = client.screen(
address="0x7Ff9...D4eA",
chain="ethereum",
include_risk=True
)
print(result.status) # "match"
print(result.risk_score) # 0.94
from veris import AsyncVeris
client = AsyncVeris(api_key="vrs_sk_live_...")
async def check_risk():
risk = await client.risk(
address="0x7Ff9...D4eA",
chain="ethereum"
)
print(risk.score) # 0.82
print(risk.detectors) # [Detector(...), ...]
print(risk.shap_values) # {"mixer_exposure": 0.21, ...}
Full type definitions. Promises throughout. Works in Node.js and modern browsers.
Works in Node.js 18+ and modern browsers. Ships with full type definitions.
npm install @veris/sdk
import { Veris } from "@veris/sdk";
const client = new Veris({ apiKey: "vrs_sk_live_..." });
// Screen an address
const result = await client.screen({
address: "0x7Ff9...D4eA",
chain: "ethereum",
includeRisk: true,
});
console.log(result.status); // "match"
console.log(result.riskScore); // 0.94
// All methods return promises
const [risk, alerts] = await Promise.all([
client.risk("0x7Ff9...D4eA", { chain: "ethereum" }),
client.alerts({ status: "open", limit: 10 }),
]);
console.log(risk.score); // 0.82
console.log(alerts.total); // 142
Both SDKs read configuration from environment variables. You can also pass values directly to the constructor. Constructor values take precedence over environment variables.
| Variable | Default | Description |
|---|---|---|
| VERIS_API_KEY | None | Your API key. Required for all requests. |
| VERIS_BASE_URL | https://api.useveris.finance | API base URL. Override for sandbox or self-hosted deployments. |
| VERIS_TIMEOUT | 30s | Request timeout. Accepts seconds (integer) or duration string. |
Both SDKs raise typed exceptions. Catch specific error classes to handle different failure modes.
from veris import Veris, VerisError, VerisRateLimitError, VerisAuthError client = Veris(api_key="vrs_sk_live_...")
Generate your API key, run the quickstart, move to production.