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.2.0.tar.gz (13.1 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.2.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iagent_pay-1.2.0.tar.gz
  • Upload date:
  • Size: 13.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 7a113bd4a697828b34c61a52cc9642af331e4d8386ca486a71d01d37be70e0bb
MD5 40205ca2378b8e8c5be637d57993d496
BLAKE2b-256 ca8b0c9d53469b3b4545020851a6ba3bdce00df660cc378b8dba0530a7a4d91d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iagent_pay-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a10c91099ee622f57cf1a0cae0d3d3ecd90d1b33eea6d241a2381b7a374c62e1
MD5 660bfe2f4834d6f1064dc28f24c66103
BLAKE2b-256 b3949cc0322a2d6cf1308c7ba9574b0e74f7745fae45196e3d80a69c361b150c

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