Rosud Python SDK - AI 에이전트 자율 USDC 결제 인프라
Project description
rosud · Python SDK
AI agent USDC payment infrastructure — Official Python SDK
pip install rosud
Quick Start
import rosud
client = rosud.Rosud(api_key="rosud_live_xxx")
# or set ROSUD_API_KEY environment variable
# Create a payment
payment = client.payments.create(
amount=5.00,
to="0x742d35Cc6634C0532925a3b8D4C9E3Ff9C4A6bB",
memo="api_call_fee",
)
print(payment.status) # "confirmed"
print(payment.tx_hash) # "0x..."
# Check balance
balance = client.wallets.balance()
print(f"Balance: {balance.usdc} USDC")
Async
import asyncio
import rosud
async def main():
client = rosud.AsyncRosud(api_key="rosud_live_xxx")
payment = await client.payments.create(amount=1.00, to="0x...")
await client.close()
asyncio.run(main())
Resources
- Payments —
client.payments.create(),.list(),.get() - Agents —
client.agents.create(),.list(),.get(),.delete() - Wallets —
client.wallets.balance() - Webhooks —
client.webhooks.create(),.list(),.delete()
Error Handling
from rosud.exceptions import RosudAPIError, RosudAuthError
try:
payment = client.payments.create(amount=5.00, to="0x...")
except RosudAuthError:
print("Invalid API key")
except RosudAPIError as e:
print(e.status_code, e.message)
Links
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
rosud-0.1.0.tar.gz
(15.9 kB
view details)
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
rosud-0.1.0-py3-none-any.whl
(14.3 kB
view details)
File details
Details for the file rosud-0.1.0.tar.gz.
File metadata
- Download URL: rosud-0.1.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91238b5e12a81aeb890b2827cfb74b4c3e81bf399e12bca5da00c213b90359ce
|
|
| MD5 |
d8de85ee2751a585c0e2d8bc643abd2d
|
|
| BLAKE2b-256 |
7b67f021ed2dd5ff372d444b39f93d35533f2d0f3f50edd155408c468dda56e0
|
File details
Details for the file rosud-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rosud-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc2cffac34fe5d3da787739f59a13773c29aba84fa64104971468f172370f45
|
|
| MD5 |
eb2e7b196bdaafa5dae4bb11dff7eb2f
|
|
| BLAKE2b-256 |
fa5b0a6377f5ba3d9c81de0eda513d2b48adde5a3ccc72d5a51b6e389fa9d16e
|