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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iagent_pay-1.1.0.tar.gz
  • Upload date:
  • Size: 12.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4c4eaf8513ad2c27dc6841d3b2ba2e4c6ae663db0d335a1eba1b42eaad57a284
MD5 62ccd05221ea8c0fd48367c874b0e9e7
BLAKE2b-256 192bd297859ac3e14261119e5fea183ee74ed349e12de995ef10e18fa44cda9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iagent_pay-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44cd79d66298ff0faeefbebc307fe4fa7011f31198e9e51e78e28751110ae3dd
MD5 0f5945da537b4c8ff554197bfe5c4485
BLAKE2b-256 a9ca1a7fdd2163c51b3958a57e0638e68f7ec04cd70bc30e08c0dc9f1175629b

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