Skip to main content

The First Payment SDK for Autonomous AI Agents.

Project description

🤖 iAgentPay SDK v1.0

The Standard Payment Layer for Autonomous AI Agents.

PyPI version License: MIT

AgentPay is a Python SDK designed to allow AI Agents (AutoGPT, LangChain, BabyAGI) to send and receive micropayments securely.

🚀 Features

  • ⚡ High-Frequency Trading: Capable of 750+ transactions per minute.
  • 🔐 Military-Grade Security: Encrypted JSON Keystores (AES-128).
  • 🔐 Military-Grade Security: Encrypted JSON Keystores (AES-128).
  • 🌍 Multi-Chain Support (EVM):
    • Ethereum (Mainnet & Sepolia)
    • Base (Coinbase L2)
    • Polygon (Low fees)
    • Arbitrum & Optimism
    • 🚧 Solana (Coming Soon in v2.0)
  • 🛡️ Reliability Engine: Auto-manages Nonces and Gas Fees to prevent stuck transactions.
  • 🛡️ Reliability Engine: Auto-manages Nonces and Gas Fees to prevent stuck transactions.
  • 💸 Dynamic Pricing: Update your agent's service fees remotely without code changes.
  • 🎁 60-Day Free Trial: Start building risk-free with our extended beta program.
  • 📊 Audit Logs: Built-in SQLite transaction history.

📦 Installation

pip install iagent-pay

⚡ Quick Start

1. Initialize Wallet

from iagent_pay import WalletManager

# Create or Load Wallet (Securely)
wm = WalletManager()
wallet = wm.get_or_create_wallet(password="SuperSecurePassword")
print(f"My Agent Address: {wallet.address}")

2. Send a Payment (Sepolia)

from iagent_pay import AgentPay

# Connect to Sepolia (or BASE, POLYGON, LOCAL)
agent = AgentPay(wallet, chain_name="SEPOLIA")

# Pay another agent 0.001 ETH
tx_hash = agent.pay_agent(
    recipient_address="0x123...", 
    amount=0.001, 
    wait=True  # Wait for confirmation
)

print(f"Payment Successful! Hash: {tx_hash}")

3. High-Frequency Mode (No Waiting)

# Send 10 payments instantly
for i in range(10):
    agent.pay_agent("0x123...", 0.0001, wait=False)

🛠️ Configuration

To enable remote pricing updates, create a pricing_config.json locally or host it online:

{
  "trial_days": 14,
  "subscription_price_eth": 0.01
}
from iagent_pay import PricingManager

pm = PricingManager(config_url="https://mysite.com/pricing.json")
price = pm.get_config()['subscription_price_eth']

📄 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

iagent_pay-1.0.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

iagent_pay-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for iagent_pay-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45ce3487749c9eef7b91c8c1ef2a4c64955e77c7fbc6b30c70c43e8c11b09578
MD5 8c7fa2de2b81338435a0c882d384b2e9
BLAKE2b-256 88c44a723bcec11f1320c3b1e6a64bc5ae3459e1083ace698e9f950e472ba689

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for iagent_pay-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41b62bdf8756d5c2957b021ccf5d455f7b1afa71245e0c91b1115a703b16feee
MD5 96f5daa346fd1a6a0c4bd4b64e850bf8
BLAKE2b-256 68f3d70081d532d9f5ffb54a4809463fa33d70720d554be26657dc283cf46632

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