Skip to main content

Python SDK for the Infinihash KYT API (wallet screening, cases, SAR drafts).

Project description

infinihash-kyt (Python)

Thin Python wrapper for the Infinihash KYT REST API. Screen wallets, manage cases, pull SAR drafts.

Install

pip install infinihash-kyt

Use

from infinihash_kyt import KYT

client = KYT(api_key="ih_kyt_...")  # or set INFINIHASH_KYT_KEY in your env

# Screen a wallet
r = client.screen.address("0x722122dF12D4e14e13Ac3b6895a86e84145b6967", chain="ethereum")
print(r["risk_score"], r["risk_level"])

# Open a case
case = client.cases.create(
    address="0x722122dF12D4e14e13Ac3b6895a86e84145b6967",
    chain="ethereum",
    notes="High-risk exposure detected from automated screen.",
)

# FinCEN-shaped JSON template (read-only - you still file with FinCEN yourself)
export = client.cases.sar_export_fincen(case["id"])

Errors

All non-2xx responses raise KYTError(status, message, body). The body field preserves the parsed JSON the server sent back, when available.

Status

Alpha. The surface area mirrors what is documented at https://kyt.infinihash.com/docs. If you need an endpoint that is not in the client, file an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infinihash_kyt-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infinihash_kyt-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file infinihash_kyt-0.1.0.tar.gz.

File metadata

  • Download URL: infinihash_kyt-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for infinihash_kyt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8207d6ec764c77d38715450850eee040642d2924a2906230e0e8e374c983c9cb
MD5 09b17519592c2d0204ceeb0aa09bd546
BLAKE2b-256 482da631ba29f116d645f62d595fcbb9eea8d547d112292879ec09ea94d4e10c

See more details on using hashes here.

File details

Details for the file infinihash_kyt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for infinihash_kyt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c47ccb6339e48db965ca3470bd752828306c4f67f77f72de4bfc6528e322cf05
MD5 f8d9e5a392789f43b55dcbb45bbbf679
BLAKE2b-256 f795900f5b2b28195db2ac852b293e5618f60b389d615b79c5152846961ea082

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page