Address screening (SRR API): a fast yes/no risk verdict for one address or a batch, evaluated per chain under a risk configuration.
Options (all optional):
config: the risk model, e.g.co-defi,co-vasp,co-institution, your organization's own config, orco-sandboxfor the free sandbox. Omitted, CipherOwl applies your organization's default; the response'sconfigsays which was used.hops: tracing depth, 0 to 8. Pass it when depth matters: omitted, the docs say the config's own reach applies, but live behavior has been observed to be single-hop.reference: your own label for attribution, e.g.acme.withdrawals; lowercased, dot-separated[a-z0-9_].trackAlert: false opts this request out of case creation (CipherOwl's default is true).
Values
MAX_BATCH
MAX_BATCH: Int 50
Functions
batch-request
fn (chain: Str, addresses: Vec<Str>, options: Map): Map
The spec for batch screening (POST /api/screen/v1/chains/{chain}/batch). Every address is validated for
the chain; an empty list errs. Exposed for testing.
Example
spec ::cipherowl::screening/batch-request("evm", ["0x0000000000000000000000000000000000000001"], {config: "co-sandbox"})
spec.path // "/api/screen/v1/chains/evm/batch"
spec.body.addresses // ["0x0000000000000000000000000000000000000001"]
batch-screen
fn (chain: Str, addresses: Vec<Str>, options: Map): Map
fn (chain: Str, addresses: Vec<Str>, options: Map, opts: Map): Map
Screen several addresses on one chain in one call. Returns {config, chain, results: [{address, foundRisk}], version, reference?, requested-chain}. At most 50 addresses per call (MAX_BATCH): split
longer lists.
Example
out ::cipherowl::screening/batch-screen("evm", [
"0x93df2c9c8786242b8fdca3f96b3914b8b4a9f704",
"0x0000000000000000000000000000000000000001"
], {config: "co-sandbox"})
risky-addresses
fn (batch-result: Any): Vec<Str>
The addresses in a batch result with foundRisk: true. Pure.
Example
batch {results: [{address: "0x93df2c9c8786242b8fdca3f96b3914b8b4a9f704", foundRisk: true}, {address: "0x0000000000000000000000000000000000000001", foundRisk: false}]}
::cipherowl::screening/risky-addresses(batch) // ["0x93df2c9c8786242b8fdca3f96b3914b8b4a9f704"]
screen-address
fn (chain: Str, address: Str): Map
fn (chain: Str, address: Str, options: Map): Map
fn (chain: Str, address: Str, options: Map, opts: Map): Map
Screen one address. Returns {config, chain, address, foundRisk, version, reference?, explanations?, requested-chain}: chain is
the class CipherOwl answers with (evm for a base request), so
requested-chain keeps what you asked for. Screening carries no
severity: pair a hit with ::cipherowl::risk/risk-score for a band. foundRisk: true means do not
auto-approve: triage with ::cipherowl::risk/risk-score, or decide
with ::cipherowl::decisions/decide.
Example
out ::cipherowl::screening/screen-address("evm", "0x93df2c9c8786242b8fdca3f96b3914b8b4a9f704", {config: "co-sandbox"})
out.foundRisk
screen-options
fn (options: Map): Map
Validate and normalize screening options into the query/body fields
CipherOwl takes: config, reference (normalized), hops (0 to 8),
trackAlert. Unset options are dropped. Exposed for testing.
Example
::cipherowl::screening/screen-options({config: "co-vasp", hops: 2, reference: "Acme.Withdrawals"})
// {config: "co-vasp", reference: "acme.withdrawals", hops: 2}
screen-request
fn (chain: Str, address: Str, options: Map): Map
The spec for screening one address (GET /api/screen/v1/chains/{chain}/addresses/{address}). Exposed for
testing.
Example
::cipherowl::screening/screen-request("evm", "0x0000000000000000000000000000000000000001", {hops: 2}).path
// "/api/screen/v1/chains/evm/addresses/0x0000000000000000000000000000000000000001?hops=2"