Get your AI agent making stablecoin payments on-chain in under two minutes. Modexia abstracts away private key management, gas tokens, and RPC nodes.
Modexia provides a lightweight, synchronous Python client designed specifically for AI agents and LLM tool loops.
pip install modexiaagentpayGrab your API key from the API Keys tab in the dashboard. Keys start with mx_test_ (sandbox) or mx_live_ (production).
from modexia import ModexiaClient
# The client automatically validates your key on initialization
client = ModexiaClient(api_key="mx_test_...")Once initialized, your agent can instantly send USDC to any compatible blockchain address.
# 1. Check your balance
balance = client.retrieve_balance()
print(f"Balance: {balance} USDC")
# 2. Send an on-chain payment
receipt = client.transfer(
recipient="0xabc...",
amount=5.0,
wait=True # polls until confirmed on-chain
)
print(receipt)
# {"success": True, "status": "COMPLETE", "txHash": "0x..."}Activating your wallet