> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sharpe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Wallet Check API

> Check a wallet against Sharpe's labels and risk rules, read the stored report, and check up to 500 wallets in one batch job with an organisation key.

Wallet Check scans one wallet on the chain you name against our labels and rules, stores the report and answers it: the verdict, a summary, the facts behind them and the labels they name. A batch job checks up to 500 wallets, one report each. A report describes the wallet as of the time the scan read the chain and is never refreshed.

These endpoints act for an organisation, not an account:

* They take only an **organisation key** with the `compliance` scope. An account key answers `403` `insufficient_scope`, and an organisation key on any other endpoint answers `403` `org_key_scope`. Owners and admins create organisation keys under Organisation keys at [/dashboard/api-keys](https://www.sharpe.ai/dashboard/api-keys).
* Every report and job belongs to the key's organisation. Another organisation's id, or a malformed one, answers `404` `resource_not_found`.
* Each check takes one unit of the organisation's Wallet Check allowance and counts as one request against the key's quota. With no allowance left the check answers `402` `allowance_required` and nothing is charged. A failed check gives its unit back.
* Shares are fractions (`0.084` is 8.4%), dollar amounts are US dollars priced at each transfer's time, and times are RFC 3339 date-times.

### Idempotency

`POST /v1/wallet-check` and `POST /v1/jobs` take an idempotency key, as the `idempotency_key` body field or the `Idempotency-Key` header: letters, digits and `_.:-`, up to 200 characters. A resend with the same key answers the same report or job and is charged once. If you send both, they must be equal (`400` otherwise). Without a key, the same request from the same organisation inside one UTC minute is one request. On `POST /v1/wallet-check`, a key you already used for another wallet answers `409` `conflict`. On `POST /v1/jobs`, a key you already used answers the job first submitted with it, whatever wallets you send.

***

## Check a wallet

`POST /v1/wallet-check`

Scans one wallet and answers the stored report. A check that succeeds answers `200` with the full report. When our data providers are busy the check is queued: `202` with the report's `id` and `status` `queued`, and no verdict or facts yet; poll [`GET /v1/wallet-check/{report}`](#get-a-wallet-check) until the status is `succeeded` or `failed`. A provider failure answers `503` `service_unavailable` with a `Retry-After` header and stores no result.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Request body

**chain** `string` *required*

The chain to check on. An EVM address is checked on this chain only. One of `bitcoin`, `litecoin`, `dogecoin`, `bitcoin_cash`, `ethereum`, `bsc`, `polygon`, `arbitrum`, `optimism`, `base`, `zksync`, `linea`, `avalanche`, `hashkey`, `merlin`, `iotex`, `tron`, `solana`, `ton`, `xrp`, `stellar`, `aptos`, `sui`, `hyperliquid`. A chain no provider reads yet answers `400`.

**address** `string` *required*

The wallet, 1 to 128 characters. It is normalised before the check (an EVM address to lower case), so one wallet in two spellings is one check. An address that is not valid on the chain answers `400`.

**idempotency\_key** `string`

Optional. See [Idempotency](#idempotency).

### Response fields

**id** `string`

The report id: `R-` and 10 characters.

**status** `string`

`queued` (waiting for a provider slot), `running`, `succeeded` (facts stored) or `failed` (no facts; see `error_code`).

**chain** `string`

The chain the wallet was checked on.

**address** `string`

The wallet, normalised (EVM lower-case).

**created\_at** `string`

When the check was requested.

**finished\_at** `string | null`

When the check succeeded or failed. Null while it is queued or running.

**error\_code** `string | null`

Why a failed check failed (`provider_failed`, `provider_lease_over`, `subject_unresolved`, `rebuild_mismatch`, `abandoned`, `internal`, and others); null otherwise. A failed check stores no facts and is not charged.

**verdict** `object | null`

What the report concludes. Null until the check succeeds.

**verdict.kind** `string`

`score` (a rule fired), `nothing_found` (no label in our set touched the wallet), `no_rule_fired` (the wallet has labels of its own but no rule fired) or `partial` (the check is incomplete, so it has no score and never reads clean).

**verdict.score** `number | null`

The highest score of the rules that fired, 0 to 10 at one decimal. Null unless `kind` is `score`.

**verdict.severity** `string | null`

The score's band: `severe` from 9, `high` from 7, `medium` from 4, `low` from 0.1. Null unless `kind` is `score`.

**verdict.reasons** `string[]`

For `score`: the names of the top rules that scored (up to 3). For `partial`: what the check could not cover. Empty otherwise.

**summary** `object | null`

`text` and `source` (`template`: sentences filled from the report's computed values). Written once just after the check succeeds; null until then and on any other status.

**facts** `object | null`

What the scan found, as stored: `subject`, `computedAt` (when the scan read the chain), `versions`, `trace` (`maxHops`, `maxPathSteps`), `totals` (`inflowUsd`, `outflowUsd`), `ownLabels` (labels on the wallet itself), `exposure` (one row per labelled counterparty reached, with `direction`, `category`, `reach`, `hops`, `usd`, `share`, `confidence`, `halfWeight` and the transaction hashes in `evidence`), `behaviours` (laundering patterns found in the wallet's own transfers), `coverage` (`partial`, transfers read, wallets expanded, unresolved wallets, unpriced contacts and assets, dust transfers, stale sources), `addresses` (every wallet the trace visited, the subject included) and `score` (`score`, `severity` and every rule hit). Null until the check succeeds.

**labels\_used** `object[] | null`

Every label the facts name by id, at the report's label version or built by its scan: its entity, category, role, confidence, whether it is official or reviewed, any sanctions designations, and its source. `entityName` is the name as the source publishes it; show it as plain text. Null until the check succeeds.

**versions** `object | null`

`rule_set`, `labels` (the published label version the report read), `labels_as_of` (when that version was published), `active_labels` (how many labels were active at that version: the set a clean result was checked against) and `engine` (the version of the engine that wrote the facts). Null until the check succeeds.

```bash cURL theme={null}
curl https://www.sharpe.ai/api/v1/wallet-check \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: check-0001" \
  -d '{"chain": "ethereum", "address": "0x0000000000000000000000000000000000000001"}'
```

```ts TypeScript theme={null}
const res = await fetch('https://www.sharpe.ai/api/v1/wallet-check', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer sk_live_your_key_here',
    'Content-Type': 'application/json',
    'Idempotency-Key': 'check-0001',
  },
  body: JSON.stringify({ chain: 'ethereum', address: '0x0000000000000000000000000000000000000001' }),
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://www.sharpe.ai/api/v1/wallet-check",
    headers={
        "Authorization": "Bearer sk_live_your_key_here",
        "Idempotency-Key": "check-0001",
    },
    json={"chain": "ethereum", "address": "0x0000000000000000000000000000000000000001"},
)
data = resp.json()["data"]
```

A check queued while the providers are busy:

```json Response (202) theme={null}
{
  "data": {
    "id": "R-0000000001",
    "status": "queued",
    "chain": "ethereum",
    "address": "0x0000000000000000000000000000000000000001",
    "created_at": "2026-12-04T12:00:00.000Z",
    "finished_at": null,
    "error_code": null,
    "verdict": null,
    "summary": null,
    "facts": null,
    "labels_used": null,
    "versions": null
  },
  "meta": {
    "request_id": "req_abc123def456ghij",
    "timestamp": "2026-12-04T12:00:01Z",
    "elapsed_ms": 840
  }
}
```

Errors: `400` (a body that does not fit, an invalid address, an unsupported chain, or an idempotency key that differs from the header), `401`, `402` `allowance_required`, `403`, `409` `conflict`, `429`, `500`, `503` `service_unavailable`. See [Errors](https://docs.sharpe.ai/errors.md).

***

## List wallet checks

`GET /v1/wallet-check`

The organisation's reports, newest first, without their facts: status, score, severity and whether the check was partial. Page with `before` set to the previous page's `next_before`. A stored report this API version cannot read is left out and counted in `meta.warnings`.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Query parameters

**limit** `integer` (default: 25)

Reports per page, `1` to `100`.

**before** `string`

A report id: answers the reports created before it. Pass the previous page's `next_before`. A value that is not a report id answers `400`.

### Response fields

**reports** `object[]`

One row per report: `id`, `status`, `chain`, `address`, `score` and `severity` (null unless the check succeeded with a score), `partial` and `engine_version` (null until the check succeeds), `error_code`, `created_at`, `finished_at`.

**next\_before** `string | null`

Pass as `before` for the next page; null on the last page.

```bash cURL theme={null}
curl -G https://www.sharpe.ai/api/v1/wallet-check \
  -H "Authorization: Bearer sk_live_your_key_here" \
  --data-urlencode "limit=25"
```

```ts TypeScript theme={null}
const params = new URLSearchParams({ limit: '25' })
const res = await fetch(`https://www.sharpe.ai/api/v1/wallet-check?${params}`, {
  headers: { Authorization: 'Bearer sk_live_your_key_here' },
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://www.sharpe.ai/api/v1/wallet-check",
    headers={"Authorization": "Bearer sk_live_your_key_here"},
    params={"limit": 25},
)
data = resp.json()["data"]
```

Errors: `400`, `401`, `403`, `429`, `500`, `503`.

***

## Get a wallet check

`GET /v1/wallet-check/{report}`

One report of the organisation, as `POST /v1/wallet-check` answers it. A queued or running check has no verdict, facts or summary yet: poll until its status is `succeeded` or `failed`. A failed check carries `error_code` and no facts.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Path parameters

**report** `string` *required*

The report id. Another organisation's id, or a malformed one, answers `404`.

The response fields are those of [Check a wallet](#check-a-wallet).

```bash cURL theme={null}
curl https://www.sharpe.ai/api/v1/wallet-check/R-0000000001 \
  -H "Authorization: Bearer sk_live_your_key_here"
```

```ts TypeScript theme={null}
const res = await fetch('https://www.sharpe.ai/api/v1/wallet-check/R-0000000001', {
  headers: { Authorization: 'Bearer sk_live_your_key_here' },
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://www.sharpe.ai/api/v1/wallet-check/R-0000000001",
    headers={"Authorization": "Bearer sk_live_your_key_here"},
)
data = resp.json()["data"]
```

Errors: `400`, `401`, `403`, `404`, `429`, `500`, `503`.

***

## Submit a batch job

`POST /v1/jobs`

Queues a `wallet_check_batch` job: 1 to 500 wallets, one report each, every report queued as its own check. Every submit answers `202` with the job as stored; poll [`GET /v1/jobs/{job}`](#get-a-batch-job), whose result lists each wallet's report id, or why it was not queued. Each wallet takes one unit of the organisation's Wallet Check allowance when it is queued, given back if its check fails. A wallet past the allowance is not queued and is listed in the result with its code, with nothing charged for it.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Request body

**kind** `string` *required*

`wallet_check_batch`, the only kind the API takes.

**input.wallets** `object[]` *required*

1 to 500 wallets, each `{ "chain", "address" }` with the same values as [Check a wallet](#check-a-wallet). Each becomes one report and takes one Wallet Check unit.

**idempotency\_key** `string`

Optional. See [Idempotency](#idempotency). Without one, the default key is the organisation, the wallets and the current UTC minute.

The response fields are those of [Get a batch job](#get-a-batch-job); `result` is null until the job has queued every wallet.

```bash cURL theme={null}
curl https://www.sharpe.ai/api/v1/jobs \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: batch-0001" \
  -d '{"kind": "wallet_check_batch", "input": {"wallets": [{"chain": "ethereum", "address": "0x0000000000000000000000000000000000000001"}, {"chain": "base", "address": "0x0000000000000000000000000000000000000002"}]}}'
```

```ts TypeScript theme={null}
const res = await fetch('https://www.sharpe.ai/api/v1/jobs', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer sk_live_your_key_here',
    'Content-Type': 'application/json',
    'Idempotency-Key': 'batch-0001',
  },
  body: JSON.stringify({
    kind: 'wallet_check_batch',
    input: {
      wallets: [
        { chain: 'ethereum', address: '0x0000000000000000000000000000000000000001' },
        { chain: 'base', address: '0x0000000000000000000000000000000000000002' },
      ],
    },
  }),
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://www.sharpe.ai/api/v1/jobs",
    headers={
        "Authorization": "Bearer sk_live_your_key_here",
        "Idempotency-Key": "batch-0001",
    },
    json={
        "kind": "wallet_check_batch",
        "input": {
            "wallets": [
                {"chain": "ethereum", "address": "0x0000000000000000000000000000000000000001"},
                {"chain": "base", "address": "0x0000000000000000000000000000000000000002"},
            ]
        },
    },
)
data = resp.json()["data"]
```

Errors: `400`, `401`, `403`, `409`, `429`, `500`, `503`.

***

## List batch jobs

`GET /v1/jobs`

The organisation's `wallet_check_batch` jobs, newest first, without their results. [Get a batch job](#get-a-batch-job) answers one with its result.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Query parameters

**limit** `integer` (default: 25)

Jobs to answer, `1` to `100`.

**status** `string`

Only jobs in this status. One of `queued`, `running`, `succeeded`, `failed`, `cancelled`.

The response `data` is an array of jobs with the fields of [Get a batch job](#get-a-batch-job), without `result`.

```bash cURL theme={null}
curl -G https://www.sharpe.ai/api/v1/jobs \
  -H "Authorization: Bearer sk_live_your_key_here" \
  --data-urlencode "status=running"
```

```ts TypeScript theme={null}
const params = new URLSearchParams({ status: 'running' })
const res = await fetch(`https://www.sharpe.ai/api/v1/jobs?${params}`, {
  headers: { Authorization: 'Bearer sk_live_your_key_here' },
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://www.sharpe.ai/api/v1/jobs",
    headers={"Authorization": "Bearer sk_live_your_key_here"},
    params={"status": "running"},
)
data = resp.json()["data"]
```

Errors: `400`, `401`, `403`, `429`, `500`, `503`.

***

## Get a batch job

`GET /v1/jobs/{job}`

One `wallet_check_batch` job of the organisation: its status, progress and, once it has queued every wallet, one result row per wallet with its report id. Each report then finishes on its own: read it with [`GET /v1/wallet-check/{report}`](#get-a-wallet-check). A job never answers its input.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Path parameters

**job** `string` *required*

The job id (a UUID). Another organisation's id, or a malformed one, answers `404`.

### Response fields

**id** `string`

The job id (a UUID).

**kind** `string`

`wallet_check_batch`.

**status** `string`

`queued` (waiting, or waiting to retry), `running`, `succeeded`, `failed` or `cancelled`.

**progress** `object | null`

`done` (wallets queued so far, reported every 50 wallets and at the end) and `total` (wallets in the job). Null until the job reports progress.

**result** `object | null`

`results`: one row per input wallet once the batch has queued them all; null before. A queued wallet's row is `{ index, id, status }`: `index` is its position in `input.wallets` from 0, `id` its report id, and `status` where its report stood when the batch queued it (`queued`, or `succeeded` or `failed` for a resent wallet whose report already existed). A wallet that was not queued has `{ index, code }` instead (`invalid_address`, `exceeded`, `not_entitled`, and others); nothing was charged for it.

**error** `object | null`

`code` and `message`: why a failed job failed; null otherwise.

**attempts** `integer`

How many times a runner has started the job.

**max\_attempts** `integer`

How many times the job may start before a retryable failure fails it.

**cancel\_requested** `boolean`

True once a cancel was asked for a running job; it stops before its next wallet.

**created\_at** `string`

When the job was submitted.

**started\_at** `string | null`

When a runner last started the job. Null until one does.

**finished\_at** `string | null`

When the job succeeded, failed or was cancelled. Null while it is queued or running.

**run\_after** `string`

The earliest time a runner may start the job: now for a new job, later for a retry after a backoff.

```bash cURL theme={null}
curl https://www.sharpe.ai/api/v1/jobs/00000000-0000-4000-8000-000000000001 \
  -H "Authorization: Bearer sk_live_your_key_here"
```

```ts TypeScript theme={null}
const res = await fetch('https://www.sharpe.ai/api/v1/jobs/00000000-0000-4000-8000-000000000001', {
  headers: { Authorization: 'Bearer sk_live_your_key_here' },
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://www.sharpe.ai/api/v1/jobs/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": "Bearer sk_live_your_key_here"},
)
data = resp.json()["data"]
```

A finished batch of two wallets, one queued and one refused:

```json Response theme={null}
{
  "data": {
    "id": "00000000-0000-4000-8000-000000000001",
    "kind": "wallet_check_batch",
    "status": "succeeded",
    "progress": { "done": 2, "total": 2 },
    "result": {
      "results": [
        { "index": 0, "id": "R-0000000001", "status": "queued" },
        { "index": 1, "code": "invalid_address" }
      ]
    },
    "error": null,
    "attempts": 1,
    "max_attempts": 3,
    "cancel_requested": false,
    "created_at": "2026-12-04T12:00:00.000Z",
    "started_at": "2026-12-04T12:00:05.000Z",
    "finished_at": "2026-12-04T12:00:06.000Z",
    "run_after": "2026-12-04T12:00:00.000Z"
  },
  "meta": {
    "request_id": "req_abc123def456ghij",
    "timestamp": "2026-12-04T12:01:00Z",
    "elapsed_ms": 45
  }
}
```

Errors: `400`, `401`, `403`, `404`, `429`, `500`, `503`.

***

## Cancel a batch job

`DELETE /v1/jobs/{job}`

Cancels a `wallet_check_batch` job and answers the job after the cancel. A queued job is cancelled at once; a running one stops before its next wallet, and `cancel_requested` is true until it does. Wallets it already queued keep their reports and their units. A finished job is answered as it is.

### Required scope

This endpoint requires the `compliance` scope and accepts only organisation keys.

### Path parameters

**job** `string` *required*

The job id. Another organisation's id, or a malformed one, answers `404`.

The response fields are those of [Get a batch job](#get-a-batch-job).

```bash cURL theme={null}
curl -X DELETE https://www.sharpe.ai/api/v1/jobs/00000000-0000-4000-8000-000000000001 \
  -H "Authorization: Bearer sk_live_your_key_here"
```

```ts TypeScript theme={null}
const res = await fetch('https://www.sharpe.ai/api/v1/jobs/00000000-0000-4000-8000-000000000001', {
  method: 'DELETE',
  headers: { Authorization: 'Bearer sk_live_your_key_here' },
})
const { data } = await res.json()
```

```python Python theme={null}
import requests

resp = requests.delete(
    "https://www.sharpe.ai/api/v1/jobs/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": "Bearer sk_live_your_key_here"},
)
data = resp.json()["data"]
```

Errors: `400`, `401`, `403`, `404`, `429`, `500`, `503`.

[See error reference](https://docs.sharpe.ai/errors.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.