Skip to main content

Python SDK for x402 AI-to-AI payments on Algorand — buyer client + seller decorators (FastAPI/Flask)

Project description

algo-x402

Python SDK for x402 AI-to-AI payments on Algorand USDC.

Install

pip install algo-x402

Quickstart

from algo_x402 import AlgoAgentClient

client = AlgoAgentClient(
    mnemonic  = "word1 word2 ... word25",
    agent_id  = "my-agent-001",
    base_url  = "https://api.ai-agentic-wallet.com",
)

# Execute a payment via the x402 payment rail
result = client.execute_trade(amount_usdc=0.01)
print(result.txn_id)

Requirements

  • Python ≥ 3.10
  • py-algorand-sdk >= 2.0

Links

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

algo_x402-0.2.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

algo_x402-0.2.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file algo_x402-0.2.0.tar.gz.

File metadata

  • Download URL: algo_x402-0.2.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for algo_x402-0.2.0.tar.gz
Algorithm Hash digest
SHA256 df6f84c00c305d45003f29df39dea2cfeba56339812758115e1150b927525043
MD5 1244a35be5340cd991860790ee48ef21
BLAKE2b-256 eece4f76719625b7c68eaa6515e1940bbb59ce508b0d6bce2be467eb3c8f251d

See more details on using hashes here.

File details

Details for the file algo_x402-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: algo_x402-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for algo_x402-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 327810058840a68e8f9444a57962bcedb4f89e42c69b75e9d4d679a8fa95a0e1
MD5 dd816df7212d1ead95054a58e29a61d9
BLAKE2b-256 5fd91a307288af32aea0a4ba19952fcbb6b388304b1911062e2eb10690bdc5e9

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