Skip to main content

Python SDK for Larkin — wallet authorization for x402-paid APIs.

Project description

larkin-x402

Python SDK for Larkin — wallet authorization for x402-paid APIs.

from larkin_x402 import Larkin, verify

client = Larkin(api_key="pf_live_...")
result = client.check(wallet="0xd8dA...", min_score=40)
# → { "ok": True, "data": { ... } }

# Pure verifier — no HTTP, verify any receipt with our public key
status = verify(receipt, public_key_base64url)
# → { "valid": True, "payload": {...} } or { "valid": False, "reason": "..." }

Install

pip install larkin-x402

License

MIT

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

larkin_x402-1.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

larkin_x402-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file larkin_x402-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for larkin_x402-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0b5ecfdd3058b086f46bec35efdd104f84853a7daaed593cf381678163a7d907
MD5 50787245b8c83a9c2e751b3c1424194c
BLAKE2b-256 3e679e5d2eeaa4fdd64e2006d98cc3cc50bd2590c65fef14a7b17225a69fa1a4

See more details on using hashes here.

File details

Details for the file larkin_x402-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: larkin_x402-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for larkin_x402-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee092437c2fe55280b228a55115e6997ffbf1fe0e48bcdfd18cf78dedd420072
MD5 622926fc8b5e34f0a6f862db402c2d1f
BLAKE2b-256 564864a6b1f51aa1c52a119e6d1236e5ca2b7ad8ce32c8e843e983146ce7f17b

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