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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iagent_pay-1.0.3.tar.gz
  • Upload date:
  • Size: 10.6 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.3.tar.gz
Algorithm Hash digest
SHA256 a6ade6d4f50a2667009b11bab55c6a45c7a68184d12a657420516ec7a7ad8d09
MD5 9753c09a3075281960a74e1fb3092202
BLAKE2b-256 94632e34c2e9f09fe3e2520f0b94475dfa034e16e90e9dde30730ac4a0750496

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iagent_pay-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed1aad082ef1384560ce814f08824bae4035b409dbb86884ec9dde27fe811fd
MD5 13600e9b40ec2097d4147e127c1a808e
BLAKE2b-256 b145458d7515e165070f7e60122b30669f020e983665ac3affe2b98b1d57b6da

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