> ## 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.

# Check a wallet

> Scans one wallet on the chain you name against our labels and rules, stores the report and answers it: the verdict, the summary, the facts (fractions) and the labels they name. When the providers are busy the check is queued: 202 with the report's id and status `queued`; poll GET /v1/wallet-check/{report}. A provider failure answers 503 with `Retry-After` and stores no result. One check takes one unit of the organisation's Wallet Check allowance (402 `allowance_required` when none is left) and counts as one request against the key's quota; a failed check gives its unit back. Send the same `idempotency_key` (body) or `Idempotency-Key` (header) to resend safely: the same key answers the same report, charged once. Needs an organisation key with the `compliance` scope; an account key answers 403 `insufficient_scope`.



## OpenAPI

````yaml /openapi.json post /v1/wallet-check
openapi: 3.0.0
info:
  title: Sharpe API
  version: 1.0.0
  description: >-
    Institutional-grade crypto market data API. Access funding rates, futures,
    arbitrage opportunities, narratives, ecosystems, and more.


    Authentication is supported via two production-safe methods:

    1. **Bearer token** in the Authorization header: `Authorization: Bearer
    sk_live_...`

    2. **X-API-Key header**: `X-API-Key: sk_live_...`


    API keys in query parameters are rejected by default because URLs are
    commonly stored in logs, browser history, analytics tools, and referrer
    headers.


    These `/v1` endpoints send no CORS headers and must be called from a server:
    calling them from a browser would expose your API key in page JavaScript.


    Every endpoint needs an API key, except `/v1/health` and
    `/v1/meta/coverage`. A key works on a paid plan
    (https://www.sharpe.ai/pricing) or during its account's one-time trial of 7
    days and 250 requests; otherwise it answers 401 `expired_api_key`. There is
    no free API tier and no keyless API.
  contact:
    name: Sharpe API Support
    url: https://sharpe.ai
    email: team@sharpe.ai
servers:
  - url: https://www.sharpe.ai/api
    description: Production
security:
  - BearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: System
    description: Health checks and service status
  - name: Account
    description: API key usage and quota information
  - name: Derivatives
    description: Funding rates and futures data
  - name: Market Data
    description: >-
      Heatmaps, correlations, tracker, price predictions, news, gem finder, and
      market cap search
  - name: Arbitrage
    description: >-
      Spot-perp, cross-exchange, dated futures basis, calendar spread,
      perp-dated carry, and transfer arbitrage scanners
  - name: Categories
    description: Narratives, ecosystems, and memecoins data
  - name: New Listings
    description: >-
      Spot listings, Perp listings, delistings, suspensions, scheduled trading
      starts, exchange pages, and narrative flow across CEXs and Perp DEXs.
  - name: Screener
    description: Rug Check security, holders, resolve and trending endpoints.
  - name: Signals
    description: >-
      Composite signal scores derived from cross-exchange derivatives data:
      insider selling pressure and pump-and-dump detection.
  - name: Compliance
    description: >-
      Wallet Check reports and batch jobs of an organisation, called with an
      organisation key that has the `compliance` scope.
  - name: Reports
    description: >-
      Markdown reports rendered on the server from the endpoints above: the
      market briefing, one coin's analysis, and the funding-arbitrage
      opportunities.
paths:
  /v1/wallet-check:
    post:
      tags:
        - Compliance
      summary: Check a wallet
      description: >-
        Scans one wallet on the chain you name against our labels and rules,
        stores the report and answers it: the verdict, the summary, the facts
        (fractions) and the labels they name. When the providers are busy the
        check is queued: 202 with the report's id and status `queued`; poll GET
        /v1/wallet-check/{report}. A provider failure answers 503 with
        `Retry-After` and stores no result. One check takes one unit of the
        organisation's Wallet Check allowance (402 `allowance_required` when
        none is left) and counts as one request against the key's quota; a
        failed check gives its unit back. Send the same `idempotency_key` (body)
        or `Idempotency-Key` (header) to resend safely: the same key answers the
        same report, charged once. Needs an organisation key with the
        `compliance` scope; an account key answers 403 `insufficient_scope`.
      operationId: checkWallet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WalletCheckRequest'
      responses:
        '200':
          description: 'The check succeeded: the stored report.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletCheckResponse'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-Quota-Limit:
              $ref: '#/components/headers/X-Quota-Limit'
            X-Quota-Remaining:
              $ref: '#/components/headers/X-Quota-Remaining'
            X-Quota-Reset:
              $ref: '#/components/headers/X-Quota-Reset'
        '202':
          description: >-
            Queued: the providers were busy. The report has status `queued`;
            poll GET /v1/wallet-check/{report}.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletCheckResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    WalletCheckRequest:
      type: object
      properties:
        chain:
          type: string
          enum:
            - 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
          description: The chain to check on; an EVM address is checked on this chain only.
        address:
          type: string
          minLength: 1
          maxLength: 128
        idempotency_key:
          type: string
          pattern: ^(?!failed:)[\w.:-]{1,200}$
          description: >-
            Letters, digits and `_.:-`, up to 200. A resend with the same key
            answers the same report and is charged once. Default: the
            organisation, chain, address and the current UTC minute.
      required:
        - chain
        - address
    WalletCheckResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessEnvelope'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/WalletReport'
          required:
            - data
    SuccessEnvelope:
      type: object
      properties:
        data:
          description: >-
            Endpoint-specific response payload. See the operation response
            schema.
        meta:
          $ref: '#/components/schemas/ApiMeta'
      required:
        - data
        - meta
    WalletReport:
      type: object
      properties:
        id:
          type: string
          description: The report id, `R-` and 10 characters.
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
          x-field: wallet_risk.report_status
          description: >-
            Where the check stands: queued (waiting for a provider slot),
            running, succeeded (facts stored) or failed (no facts; see
            error_code).
        chain:
          type: string
          enum:
            - 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
          x-field: wallet_risk.chain
          description: >-
            The chain the wallet, label or row is on. An EVM address valid on
            many chains is checked on the one chain named.
        address:
          type: string
          description: The wallet, normalised (EVM lower-case).
        created_at:
          type: string
          format: date-time
          x-field: wallet_risk.created_at
          description: When the check was requested.
        finished_at:
          nullable: true
          type: string
          format: date-time
          x-field: wallet_risk.finished_at
          description: When the check succeeded or failed.
        error_code:
          nullable: true
          description: >-
            Why a failed check failed (provider_failed, provider_lease_over,
            subject_unresolved, rebuild_mismatch, abandoned, internal, …); null
            otherwise. A failed check stores no facts and is not charged.
          type: string
        verdict:
          nullable: true
          type: object
          properties:
            kind:
              type: string
              enum:
                - score
                - nothing_found
                - no_rule_fired
                - partial
              x-field: wallet_risk.verdict
              description: >-
                What the report concludes: 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).
            score:
              nullable: true
              type: number
              minimum: 0
              maximum: 10
              x-field: wallet_risk.score
              description: >-
                scoreFacts: the highest score of the enabled rules a wallet's
                own labels, exposure rows, unpriced labelled contacts and
                behaviours hit (each rule's ramp over its share, halved for an
                unconfirmed label), 0 to 10 at one decimal; null when no rule
                scored.
            severity:
              nullable: true
              type: string
              enum:
                - severe
                - high
                - medium
                - low
                - none
              x-field: wallet_risk.severity
              description: >-
                The score's band: severe from 9, high from 7, medium from 4, low
                from 0.1, none without a score.
            reasons:
              type: array
              items:
                type: string
              description: >-
                For score: the names of the top rules that scored (up to 3). For
                partial: what the check could not cover. Empty otherwise.
          required:
            - kind
            - score
            - severity
            - reasons
        summary:
          nullable: true
          description: >-
            Written once just after the check succeeds; null until then and on
            any other status.
          type: object
          properties:
            text:
              type: string
            source:
              type: string
              enum:
                - template
                - model
              x-field: wallet_risk.summary_source
              description: >-
                How the summary was written: template (sentences filled from the
                report's computed values; the only kind written today).
          required:
            - text
            - source
        facts:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/WalletFacts'
        labels_used:
          nullable: true
          description: >-
            Every label the facts name by id, at the report's label version or
            built by its scan.
          type: array
          items:
            $ref: '#/components/schemas/WalletLabel'
        versions:
          nullable: true
          type: object
          properties:
            rule_set:
              type: string
            labels:
              type: number
              x-field: wallet_risk.label_version
              description: >-
                The published label version a report read, or the version that
                added a label. Versions only grow.
            labels_as_of:
              type: string
              format: date-time
              x-field: wallet_risk.labels_as_of
              description: When the label version the report read was published.
            active_labels:
              type: integer
              minimum: 0
              x-field: wallet_risk.active_labels
              description: >-
                How many labels were active at the report's label version: the
                set a clean result was checked against.
            engine:
              type: number
              x-field: wallet_risk.engine_version
              description: >-
                The version of the engine that wrote the facts, which is also
                their schema version.
          required:
            - rule_set
            - labels
            - labels_as_of
            - active_labels
            - engine
      required:
        - id
        - status
        - chain
        - address
        - created_at
        - finished_at
        - error_code
        - verdict
        - summary
        - facts
        - labels_used
        - versions
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          format: uri
          description: URI identifying the error type.
          example: https://www.sharpe.ai/errors/invalid_parameter
        title:
          type: string
          description: Short human-readable summary.
          example: Invalid Parameter
        status:
          type: integer
          description: HTTP status code.
          example: 400
        detail:
          type: string
          description: Human-readable explanation specific to this occurrence.
          example: 'Invalid parameter "coin": must not be empty'
        request_id:
          type: string
          description: Unique request identifier for support reference.
          example: req_a1b2c3d4e5f6g7h8i9j0
        doc_url:
          type: string
          format: uri
          description: Link to the relevant documentation page for troubleshooting.
          example: https://www.sharpe.ai/docs/errors#error-codes
        suggested_action:
          type: string
          description: Actionable suggestion for resolving the error.
          example: >-
            Check the 'coin' parameter value and ensure it is a valid ticker
            symbol.
      required:
        - type
        - title
        - status
        - detail
        - request_id
        - doc_url
        - suggested_action
      description: Error response following RFC 9457 (Problem Details for HTTP APIs).
    ApiMeta:
      type: object
      properties:
        request_id:
          type: string
          description: Unique request identifier.
          example: req_a1b2c3d4e5f6g7h8i9j0
        timestamp:
          type: string
          format: date-time
          description: ISO 8601 timestamp of the response.
        elapsed_ms:
          type: integer
          minimum: 0
          description: Server processing time in milliseconds.
        dataset_id:
          type: string
          enum:
            - funding_rates_current
            - funding_rates_history
            - funding_accumulated
            - funding_fee_settlement
            - global_overview_snapshot
            - futures_open_interest
            - futures_basis
            - futures_term_structure
            - futures_liquidations
            - futures_long_short_ratio
            - futures_ohlcv
            - futures_coins
            - options_open_interest
            - open_interest_market
            - rwa_perp_rates_current
            - arbitrage_tickers
            - arbitrage_boards
            - arbitrage_dated_quotes
            - narratives
            - narrative_bench
            - ecosystems
            - memecoins
            - mindshare
            - sectors
            - chains
            - sector_coins
            - chain_coins
            - gem_finder
            - web_traffic
            - heatmap_cache
            - stablecoins
            - news
            - listings
            - memecoin_launches
            - rug_check_inputs
            - rug_check_trending
            - pump_dump
            - insider_pressure
            - price_prediction_inputs
            - correlation_prices
            - market_cap_search
            - coingecko_coin_list
            - boros_markets
            - margin_borrow_rates
            - wallet_risk_reports
            - platform_jobs
          description: >-
            The dataset the answer is read from; /v1/meta/coverage lists each
            product's datasets with their cadence and SLA.
        as_of:
          nullable: true
          type: string
          format: date-time
          description: >-
            When the data was current: the dataset's own time (the newest live
            row, the snapshot or refresh time, the fetch time), not the response
            time. Null when unknown.
        stale_after:
          nullable: true
          type: string
          format: date-time
          description: >-
            `as_of` plus the freshness SLA: after this instant the data is
            stale, whenever the body is read (a cached copy can be re-judged
            against it).
        freshness_sla_seconds:
          type: number
          description: >-
            Seconds after `as_of` the data stays fresh: the writer's cadence
            plus one skipped run.
        freshness_status:
          type: string
          enum:
            - fresh
            - stale
            - unknown
          description: >-
            `fresh` within the SLA at `generated_at`, `stale` past it, `unknown`
            when `as_of` is null.
        runtime_status:
          type: string
          enum:
            - ok
            - degraded
          description: >-
            `degraded` when this read was incomplete: a leg timed out or failed,
            a row budget was hit, or a fallback answered. Degraded answers are
            never cached.
        served_from:
          type: string
          enum:
            - snapshot
            - table
            - matview
            - live
            - last-good
          description: >-
            Where the rows came from: a precomputed snapshot, a table or
            materialized view, the upstream on request, or the server's last
            good answer.
        generated_at:
          type: string
          format: date-time
          description: >-
            When this answer was built (the instant `freshness_status` is judged
            at).
        source:
          type: array
          items:
            type: string
          description: >-
            The upstream sources behind the rows (source ids such as `binance`,
            `coingecko`).
        coverage:
          type: object
          properties:
            expected:
              type: number
            used:
              type: number
            dropped:
              type: object
              additionalProperties:
                type: number
            missing:
              type: array
              items:
                type: string
          required:
            - expected
            - used
            - dropped
          description: >-
            How complete the stored data is (never whether it is cached): `used`
            of `expected` inputs counted; `dropped` counts the rest by reason (a
            halted market is `not_live`, outside `expected`); `missing` names
            the late ones when known.
        warnings:
          type: array
          items:
            type: string
          description: >-
            What the read could not do, in words (an unreadable table, a late
            writer).
        truncated:
          type: boolean
          description: True when a row budget cut the answer short.
      required:
        - request_id
        - timestamp
        - elapsed_ms
    WalletFacts:
      type: object
      properties:
        subject:
          type: object
          properties:
            chain:
              type: string
              enum:
                - 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
              x-field: wallet_risk.chain
              description: >-
                The chain the wallet, label or row is on. An EVM address valid
                on many chains is checked on the one chain named.
            address:
              type: string
          required:
            - chain
            - address
        computedAt:
          type: string
          format: date-time
          x-field: wallet_risk.computed_at
          description: >-
            When the scan read the chain: the report describes the wallet as of
            this time and is never refreshed.
        versions:
          type: object
          properties:
            labels:
              type: number
              x-field: wallet_risk.label_version
              description: >-
                The published label version a report read, or the version that
                added a label. Versions only grow.
            ruleSet:
              type: string
            engine:
              type: number
              x-field: wallet_risk.engine_version
              description: >-
                The version of the engine that wrote the facts, which is also
                their schema version.
          required:
            - labels
            - ruleSet
            - engine
        trace:
          type: object
          properties:
            maxHops:
              type: integer
              minimum: 1
              maximum: 10
              x-field: wallet_risk.max_hops
              description: How many hops from the wallet the trace followed at most.
            maxPathSteps:
              type: integer
              minimum: 0
              x-field: wallet_risk.max_path_steps
              description: The longest evidence path the trace kept, in transfers.
          required:
            - maxHops
            - maxPathSteps
        totals:
          type: object
          properties:
            inflowUsd:
              type: number
              minimum: 0
              x-field: wallet_risk.inflow
              description: >-
                US dollars the wallet received over the transfers read, priced
                at each transfer's time.
            outflowUsd:
              type: number
              minimum: 0
              x-field: wallet_risk.outflow
              description: >-
                US dollars the wallet sent over the transfers read, priced at
                each transfer's time.
          required:
            - inflowUsd
            - outflowUsd
        ownLabels:
          type: array
          items:
            $ref: '#/components/schemas/WalletLabel'
        exposure:
          type: array
          items:
            type: object
            properties:
              direction:
                type: string
                enum:
                  - source
                  - destination
                x-field: wallet_risk.direction
                description: >-
                  Which way the money moved: source (into the wallet) or
                  destination (out of it).
              category:
                type: string
                enum:
                  - sanctioned
                  - terrorist_financing
                  - child_abuse
                  - frozen_by_issuer
                  - sanctioned_jurisdiction
                  - stolen_funds
                  - ransomware
                  - scam
                  - darknet_market
                  - laundering_service
                  - mixer
                  - no_kyc_exchange
                  - gambling
                  - bridge
                  - exchange
                  - otc_desk
                  - payments
                  - defi
                  - mining
                  - protocol
                  - unknown
                x-field: wallet_risk.category
                description: >-
                  What a label says the address is, from sanctioned to unknown;
                  the first seven are severe.
              entityId:
                nullable: true
                type: string
              entityName:
                nullable: true
                type: string
              reach:
                type: string
                enum:
                  - ownership
                  - counterparty
                  - indirect
                x-field: wallet_risk.reach
                description: >-
                  How the wallet meets the labelled address: ownership (the
                  wallet itself), counterparty (one hop) or indirect (more
                  hops).
              hops:
                type: integer
                minimum: 0
                x-field: wallet_risk.hops
                description: >-
                  Transfers between the wallet and the labelled address on the
                  shortest path the trace found; 0 is the wallet itself.
              usd:
                type: number
                minimum: 0
                x-field: wallet_risk.value
                description: >-
                  US dollars behind a row, behaviour or rule hit, priced at each
                  transfer's time.
              share:
                type: number
                minimum: 0
                maximum: 1
                x-field: wallet_risk.share
                description: >-
                  The row's or hit's dollars over the wallet's flow in that
                  direction, a fraction from 0 to 1 (0.084 is 8.4 %).
              confidence:
                type: string
                enum:
                  - confirmed
                  - high
                  - medium
                  - low
                x-field: wallet_risk.confidence
                description: >-
                  How sure the source is: confirmed, high, medium or low. Medium
                  and low labels score at half weight.
              halfWeight:
                type: boolean
                x-field: wallet_risk.half_weight
                description: >-
                  True when the label behind it is unconfirmed (medium or low
                  confidence, or a severe category from an unofficial,
                  unreviewed source), so it scores at half weight.
              afterDesignation:
                nullable: true
                type: boolean
                x-field: wallet_risk.after_designation
                description: >-
                  True when the money moved after the address was sanctioned,
                  false when before.
              labelIds:
                type: array
                items:
                  type: string
              evidence:
                type: array
                items:
                  type: string
                description: Transaction hashes on the subject's chain that show the row.
            required:
              - direction
              - category
              - entityId
              - entityName
              - reach
              - hops
              - usd
              - share
              - confidence
              - halfWeight
              - afterDesignation
              - labelIds
              - evidence
        behaviours:
          type: array
          items:
            type: object
            properties:
              kind:
                type: string
                enum:
                  - peel_chain
                  - rapid_pass_through
                  - structuring
                  - many_to_one_collection
                  - mixer_first_funding
                  - address_poisoning_target
                  - bridge_layering
                  - cash_out
                  - new_wallet_large_flow
                  - gas_funded_by_risk
                x-field: wallet_risk.behaviour
                description: >-
                  A laundering pattern the trace found in the wallet's own
                  transfers.
              steps:
                type: integer
                minimum: 0
                x-field: wallet_risk.behaviour_steps
                description: Transfers that make up the behaviour.
              usd:
                nullable: true
                type: number
                minimum: 0
                x-field: wallet_risk.value
                description: >-
                  US dollars behind a row, behaviour or rule hit, priced at each
                  transfer's time.
              from:
                type: string
                format: date-time
                x-field: wallet_risk.behaviour_from
                description: The first transfer of the behaviour.
              to:
                type: string
                format: date-time
                x-field: wallet_risk.behaviour_to
                description: The last transfer of the behaviour.
              halfWeight:
                type: boolean
                x-field: wallet_risk.half_weight
                description: >-
                  True when the label behind it is unconfirmed (medium or low
                  confidence, or a severe category from an unofficial,
                  unreviewed source), so it scores at half weight.
              evidence:
                type: array
                items:
                  type: string
            required:
              - kind
              - steps
              - usd
              - from
              - to
              - halfWeight
              - evidence
        coverage:
          type: object
          properties:
            partial:
              type: boolean
              x-field: wallet_risk.partial
              description: >-
                True when the check could not read everything it needed (a
                provider failed, a cap was reached, a wallet was unresolved): it
                then has no clean verdict.
            transfersRead:
              type: integer
              minimum: 0
              x-field: wallet_risk.transfers_read
              description: >-
                Transfers the scan read, the wallet's own and its
                counterparties'.
            walletsExpanded:
              type: integer
              minimum: 0
              x-field: wallet_risk.wallets_expanded
              description: Wallets whose transfers the trace read beyond the subject.
            unresolved:
              type: array
              items:
                type: object
                properties:
                  address:
                    type: string
                  reason:
                    type: string
                    enum:
                      - failed
                      - truncated
                      - invalid_address
                      - depth_limit
                    x-field: wallet_risk.unresolved_reason
                    description: >-
                      Why a wallet on the trace was not read in full: failed,
                      truncated, invalid_address or depth_limit.
                required:
                  - address
                  - reason
            unvaluedContacts:
              type: array
              items:
                type: object
                properties:
                  direction:
                    type: string
                    enum:
                      - source
                      - destination
                    x-field: wallet_risk.direction
                    description: >-
                      Which way the money moved: source (into the wallet) or
                      destination (out of it).
                  address:
                    type: string
                  category:
                    type: string
                    enum:
                      - sanctioned
                      - terrorist_financing
                      - child_abuse
                      - frozen_by_issuer
                      - sanctioned_jurisdiction
                      - stolen_funds
                      - ransomware
                      - scam
                      - darknet_market
                      - laundering_service
                      - mixer
                      - no_kyc_exchange
                      - gambling
                      - bridge
                      - exchange
                      - otc_desk
                      - payments
                      - defi
                      - mining
                      - protocol
                      - unknown
                    x-field: wallet_risk.category
                    description: >-
                      What a label says the address is, from sanctioned to
                      unknown; the first seven are severe.
                  entityId:
                    type: string
                  labelIds:
                    type: array
                    items:
                      type: string
                  halfWeight:
                    type: boolean
                    x-field: wallet_risk.half_weight
                    description: >-
                      True when the label behind it is unconfirmed (medium or
                      low confidence, or a severe category from an unofficial,
                      unreviewed source), so it scores at half weight.
                required:
                  - direction
                  - address
                  - category
                  - entityId
                  - labelIds
                  - halfWeight
            unvalued:
              type: array
              items:
                type: object
                properties:
                  asset:
                    type: string
                  count:
                    type: integer
                    minimum: 0
                    x-field: wallet_risk.unvalued_transfers
                    description: >-
                      Transfers of one asset that had no price, so their dollars
                      are not in any share.
                required:
                  - asset
                  - count
            dustTransfers:
              type: integer
              minimum: 0
              x-field: wallet_risk.dust_transfers
              description: Transfers below the dust floor, left out of the trace.
            staleSources:
              type: array
              items:
                type: string
          required:
            - partial
            - transfersRead
            - walletsExpanded
            - unresolved
            - unvaluedContacts
            - unvalued
            - dustTransfers
            - staleSources
        addresses:
          type: array
          items:
            type: string
        score:
          type: object
          properties:
            score:
              nullable: true
              type: number
              minimum: 0
              maximum: 10
              x-field: wallet_risk.score
              description: >-
                scoreFacts: the highest score of the enabled rules a wallet's
                own labels, exposure rows, unpriced labelled contacts and
                behaviours hit (each rule's ramp over its share, halved for an
                unconfirmed label), 0 to 10 at one decimal; null when no rule
                scored.
            severity:
              type: string
              enum:
                - severe
                - high
                - medium
                - low
                - none
              x-field: wallet_risk.severity
              description: >-
                The score's band: severe from 9, high from 7, medium from 4, low
                from 0.1, none without a score.
            hits:
              type: array
              items:
                type: object
                properties:
                  ruleId:
                    type: string
                  ruleName:
                    type: string
                  direction:
                    nullable: true
                    type: string
                    enum:
                      - source
                      - destination
                    x-field: wallet_risk.direction
                    description: >-
                      Which way the money moved: source (into the wallet) or
                      destination (out of it).
                  score:
                    type: number
                    minimum: 0
                    maximum: 10
                    x-field: wallet_risk.rule_score
                    description: >-
                      One rule's score in one direction, 0 to 10 at one decimal,
                      halved for an unconfirmed label.
                  share:
                    nullable: true
                    type: number
                    minimum: 0
                    maximum: 1
                    x-field: wallet_risk.share
                    description: >-
                      The row's or hit's dollars over the wallet's flow in that
                      direction, a fraction from 0 to 1 (0.084 is 8.4 %).
                  usd:
                    nullable: true
                    type: number
                    minimum: 0
                    x-field: wallet_risk.value
                    description: >-
                      US dollars behind a row, behaviour or rule hit, priced at
                      each transfer's time.
                  halfWeight:
                    type: boolean
                    x-field: wallet_risk.half_weight
                    description: >-
                      True when the label behind it is unconfirmed (medium or
                      low confidence, or a severe category from an unofficial,
                      unreviewed source), so it scores at half weight.
                  rows:
                    type: array
                    items:
                      type: integer
                      minimum: 0
                      x-field: wallet_risk.hit_row
                      description: >-
                        The position of an exposure row (in facts.exposure, from
                        0) that a rule hit counts.
                required:
                  - ruleId
                  - ruleName
                  - direction
                  - score
                  - share
                  - usd
                  - halfWeight
                  - rows
          required:
            - score
            - severity
            - hits
      required:
        - subject
        - computedAt
        - versions
        - trace
        - totals
        - ownLabels
        - exposure
        - behaviours
        - coverage
        - addresses
        - score
      description: >-
        What the scan found, as stored and rebuildable: labels, exposure rows,
        behaviours, coverage and the score with every rule hit. Shares are
        fractions (0.084 is 8.4 %).
    WalletLabel:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
          enum:
            - 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
          x-field: wallet_risk.chain
          description: >-
            The chain the wallet, label or row is on. An EVM address valid on
            many chains is checked on the one chain named.
        address:
          type: string
        familyWide:
          type: boolean
          x-field: wallet_risk.family_wide
          description: >-
            True when one label covers the address on every chain of its family
            (an EVM address on all EVM chains).
        entityId:
          type: string
        entityName:
          type: string
          description: >-
            The entity's name as its source publishes it. Printed as published
            only from an official source; any other may hold outside text, so a
            client shows it as plain text.
        category:
          type: string
          enum:
            - sanctioned
            - terrorist_financing
            - child_abuse
            - frozen_by_issuer
            - sanctioned_jurisdiction
            - stolen_funds
            - ransomware
            - scam
            - darknet_market
            - laundering_service
            - mixer
            - no_kyc_exchange
            - gambling
            - bridge
            - exchange
            - otc_desk
            - payments
            - defi
            - mining
            - protocol
            - unknown
          x-field: wallet_risk.category
          description: >-
            What a label says the address is, from sanctioned to unknown; the
            first seven are severe.
        subcategory:
          nullable: true
          type: string
        role:
          type: string
          enum:
            - hot_wallet
            - deposit
            - cold_wallet
            - contract
            - owner
            - other
          x-field: wallet_risk.label_role
          description: The labelled address's role within its entity.
        scope:
          type: string
          enum:
            - address
            - cluster
          x-field: wallet_risk.label_scope
          description: >-
            Whether the label names one address or a cluster the address belongs
            to.
        confidence:
          type: string
          enum:
            - confirmed
            - high
            - medium
            - low
          x-field: wallet_risk.confidence
          description: >-
            How sure the source is: confirmed, high, medium or low. Medium and
            low labels score at half weight.
        official:
          type: boolean
          x-field: wallet_risk.official
          description: >-
            True when the label comes from an official list (a government
            sanctions list).
        reviewed:
          type: boolean
          x-field: wallet_risk.reviewed
          description: True when a person reviewed the label.
        validFrom:
          nullable: true
          type: string
          format: date-time
          x-field: wallet_risk.valid_from
          description: From when the label speaks for money that moved.
        validTo:
          nullable: true
          type: string
          format: date-time
          x-field: wallet_risk.valid_to
          description: Until when the label speaks for money that moved.
        sanctions:
          type: array
          items:
            type: object
            properties:
              list:
                type: string
              designatedAt:
                type: string
                format: date-time
                x-field: wallet_risk.designated_at
                description: When the sanctions list designated the address.
              delistedAt:
                nullable: true
                type: string
                format: date-time
                x-field: wallet_risk.delisted_at
                description: When the sanctions list removed the address.
              program:
                nullable: true
                type: string
            required:
              - list
              - designatedAt
              - delistedAt
              - program
        jurisdiction:
          nullable: true
          type: string
        asset:
          nullable: true
          type: string
        source:
          type: object
          properties:
            id:
              type: string
            kind:
              type: string
            url:
              type: string
            quote:
              nullable: true
              type: string
            txHashes:
              type: array
              items:
                type: string
          required:
            - id
            - kind
            - url
            - quote
            - txHashes
        firstSeen:
          type: string
          format: date-time
          x-field: wallet_risk.first_seen
          description: When the label was first recorded.
        lastVerified:
          type: string
          format: date-time
          x-field: wallet_risk.last_verified
          description: When the label was last checked against its source.
        addedBy:
          type: object
          properties:
            kind:
              type: string
              enum:
                - pipeline
                - agent
                - reviewer
              x-field: wallet_risk.added_by
              description: 'Who added the label: a source pipeline, an agent or a reviewer.'
            name:
              type: string
          required:
            - kind
            - name
        labelVersion:
          type: number
          x-field: wallet_risk.label_version
          description: >-
            The published label version a report read, or the version that added
            a label. Versions only grow.
      required:
        - id
        - chain
        - address
        - familyWide
        - entityId
        - entityName
        - category
        - subcategory
        - role
        - scope
        - confidence
        - official
        - reviewed
        - validFrom
        - validTo
        - sanctions
        - jurisdiction
        - asset
        - source
        - firstSeen
        - lastVerified
        - addedBy
        - labelVersion
  headers:
    X-Request-Id:
      schema:
        type: string
      description: Unique request identifier. Include this value when contacting support.
    X-RateLimit-Limit:
      schema:
        type: integer
      description: Requests allowed per minute for the authenticated API key.
    X-RateLimit-Remaining:
      schema:
        type: integer
      description: Requests remaining in the current one-minute rate-limit window.
    X-RateLimit-Reset:
      schema:
        type: integer
      description: Unix timestamp in seconds when the current rate-limit window resets.
    X-Quota-Limit:
      schema:
        type: integer
      description: Monthly request quota for the authenticated API key.
    X-Quota-Remaining:
      schema:
        type: integer
      description: Monthly requests remaining in the current billing period.
    X-Quota-Reset:
      schema:
        type: string
        format: date-time
      description: >-
        ISO 8601 timestamp when the monthly quota resets, when available from
        the quota store.
    Retry-After:
      schema:
        type: integer
      description: >-
        Seconds to wait before retrying after a per-minute rate-limit or
        monthly-quota rejection.
  responses:
    BadRequest:
      description: Invalid or missing parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/invalid_parameter
            title: Invalid Parameter
            status: 400
            detail: 'Invalid parameter "coin": must not be empty'
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#error-codes
            suggested_action: >-
              Check the parameter value against the endpoint documentation. Use
              GET /v1/futures/coins or GET /v1/meta/coverage to discover valid
              values.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    Unauthorized:
      description: >-
        Missing or invalid API key, or a key without an active plan
        (`expired_api_key`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalid_api_key:
              summary: Missing or invalid API key
              value:
                type: https://www.sharpe.ai/errors/invalid_api_key
                title: Invalid API Key
                status: 401
                detail: >-
                  Missing API key. Pass via Authorization: Bearer <key> or the
                  X-API-Key header.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/authentication
                suggested_action: >-
                  Check your API key is correct. Pass it via Authorization:
                  Bearer <key> or the X-API-Key header.
            expired_api_key:
              summary: The key has no active plan
              value:
                type: https://www.sharpe.ai/errors/expired_api_key
                title: Expired API Key
                status: 401
                detail: >-
                  This API key has no active plan. Subscribe or renew at
                  https://www.sharpe.ai/dashboard/billing.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/authentication
                suggested_action: >-
                  Subscribe or renew at https://www.sharpe.ai/dashboard/billing.
                  The same key works again once the plan is active.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    PaymentRequired:
      description: >-
        The organisation has no allowance left for this action (Wallet Check: no
        allowance, or a blocking allowance used up). Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/allowance_required
            title: Allowance Required
            status: 402
            detail: >-
              This organisation's Wallet Check allowance is used up for this
              period.
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#error-codes
            suggested_action: >-
              Ask an owner or admin to add Wallet Check checks to the
              organisation's plan, then send the request again.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    Forbidden:
      description: The API key lacks a scope this endpoint requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/insufficient_scope
            title: Insufficient Scope
            status: 403
            detail: 'This API key requires the following scope(s): read.'
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/authentication
            suggested_action: >-
              Create a new API key with the required scopes, or contact support
              to update scopes on your existing key.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    Conflict:
      description: >-
        The request conflicts with what is stored: an idempotency key reused for
        another request, or a change to something still running.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/conflict
            title: Conflict
            status: 409
            detail: This idempotency key was used for another wallet.
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#error-codes
            suggested_action: >-
              Use a new idempotency key for a new request, or wait for the
              running work to finish and try again.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    RateLimited:
      description: >-
        Per-minute rate limit or monthly quota exceeded. Both are temporary;
        retry after the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rate_limit_exceeded:
              summary: Per-minute rate limit exceeded
              value:
                type: https://www.sharpe.ai/errors/rate_limit_exceeded
                title: Rate Limit Exceeded
                status: 429
                detail: Rate limit of 30 requests per minute exceeded.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/rate-limits
                suggested_action: >-
                  Wait until the time in the X-RateLimit-Reset header before
                  retrying. Upgrade your plan for higher limits.
            monthly_quota_exceeded:
              summary: Monthly quota exceeded
              value:
                type: https://www.sharpe.ai/errors/monthly_quota_exceeded
                title: Monthly Quota Exceeded
                status: 429
                detail: >-
                  Monthly quota of 50,000 requests exceeded. Resets at
                  2026-12-01T00:00:00.000Z.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/rate-limits
                suggested_action: >-
                  Retry after the seconds given in the Retry-After header, when
                  the monthly quota resets. Upgrade your plan for a higher
                  monthly quota. Check usage at GET /v1/usage.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-Quota-Limit:
          $ref: '#/components/headers/X-Quota-Limit'
        X-Quota-Remaining:
          $ref: '#/components/headers/X-Quota-Remaining'
        X-Quota-Reset:
          $ref: '#/components/headers/X-Quota-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/internal_error
            title: Internal Server Error
            status: 500
            detail: An unexpected error occurred. Please try again later.
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#retry-guidance
            suggested_action: >-
              Retry with exponential backoff (1s, 2s, 4s, up to 30s). If the
              error persists, contact support with the X-Request-Id.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    ServiceUnavailable:
      description: The API or quota verification service is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/service_unavailable
            title: Service Unavailable
            status: 503
            detail: >-
              API key verification is temporarily unavailable. Please retry
              shortly.
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#retry-guidance
            suggested_action: >-
              The API is temporarily unavailable. Retry with exponential
              backoff. If it persists, contact team@sharpe.ai with the
              X-Request-Id.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a Bearer token in the Authorization header:
        `Authorization: Bearer sk_live_...`
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Alternatively, pass your API key via the X-API-Key header.

````

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