The Universal Payment Standard for AI Agents (EVM + Solana)
Project description
🤖 iAgentPay SDK v2.1 (Beta)
The Universal Payment Standard for AI Agents. Build autonomous agents that can Buy, Sell, Swap, and Tip across any blockchain.
🚀 Why iAgentPay?
Most crypto SDKs are too complex for AI. iAgentPay abstracts 1000s of lines of blockchain code into simple English commands.
- ✅ Multi-Chain: Ethereum, Base, Polygon, Solana.
- ✅ Universal Tokens: Pay in ETH, SOL, USDC, USDT, BONK, PEPE.
- ✅ Social Tipping:
agent.pay("vitalik.eth", 10) - ✅ Auto-Swap:
agent.swap("SOL", "BONK")(DeFi Integration). - ✅ Gas Guardrails: Protect your agent from high fees.
📦 Installation
pip install iagent-pay
⚡ Quick Start
1. Initialize (Dual-Core Engine)
from iagent_pay import AgentPay, WalletManager
# Create Wallet (Auto-Saved securely)
wm = WalletManager()
wallet = wm.get_or_create_wallet(password="MySecurePassword")
# 🟢 Connect to Base (L2 - Fast & Cheap)
agent_evm = AgentPay(wallet, chain_name="BASE")
# 🟣 Connect to Solana (High Frequency)
agent_sol = AgentPay(wallet, chain_name="SOL_MAINNET")
2. Simple Payments (The "Hello World")
# Pay 0.01 ETH on Base
agent_evm.pay_agent("0x123...", 0.01)
# Pay 0.1 SOL on Solana
agent_sol.pay_agent("4jjCQ...", 0.1)
3. Retail & Memecoins (New in v2.1!) 🐕
Don't worry about contract addresses. We handle them.
# Send USDC (Stablecoin)
agent_evm.pay_token("CLIENT_ADDRESS", 100.0, token="USDC")
# Send BONK (Meme - Solana)
agent_sol.pay_token("FRIEND_ADDRESS", 1000.0, token="BONK")
# Send PEPE (Meme - Ethereum)
agent_evm.pay_token("DEGEN_ADDRESS", 5000.0, token="PEPE")
4. Social Tipping 🎁
Human-readable names auto-resolve to addresses.
# Resolves .eth (ENS) or .sol (SNS)
agent_evm.pay_agent("vitalik.eth", 0.05)
agent_sol.pay_token("tobby.sol", 50.0, token="USDC")
5. Auto-Swap (DeFi) 🔄
Agent earning in SOL but wants to hold BONK?
# Buys BONK with 1 SOL instantly
result = agent_sol.swap(input="SOL", output="BONK", amount=1.0)
print(f"Swapped! Hash: {result['tx_hash']}")
🛡️ Business Features
Dynamic Pricing
Update your agent's service fees remotely without redeploying code.
from iagent_pay import PricingManager
pm = PricingManager("https://api.myagent.com/pricing.json")
fee = pm.get_price()
Gas Guardrails ⛽
Prevent your agent from burning money when the network is congested.
# Aborts if Gas > 20 Gwei
try:
agent_evm.pay_agent("Bob", 0.1, max_gas_gwei=20)
except ValueError:
print("Gas too high, sleeping...")
🛠️ Configuration
Dual-Treasury support for collecting fees in both ecosystems.
pricing_config.json:
{
"treasury": {
"EVM": "0xYourEthWallet...",
"SOLANA": "YourSolanaWallet..."
},
"trial_days": 60,
"subscription_price_usd": 26.00
}
📄 License
MIT License. Built for the Agent Economy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iagent_pay-2.1.0.tar.gz.
File metadata
- Download URL: iagent_pay-2.1.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
229f32260a9ef89a3b2a2c781252895fab2b184d23062b67decf579ed09f85eb
|
|
| MD5 |
9fd9032bda97c137d8806025e90c073f
|
|
| BLAKE2b-256 |
30f6e2be271cd4523c2cb6f1c98f40bd8b4cbfda73ac5fcdbf52eefebdb51e42
|
File details
Details for the file iagent_pay-2.1.0-py3-none-any.whl.
File metadata
- Download URL: iagent_pay-2.1.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d7d2ae9f202c4d017a5041863c0ad1323b8637a6f68ef300c9d10c795731632
|
|
| MD5 |
d4fbb34df71e93ffe4f214d1fe82ecaa
|
|
| BLAKE2b-256 |
f792b88524702d60448613cda88d14605190a55b2cd3e49d9c2581fdff07d0b8
|