Agent Wallet SDK.
Project description
Agent Wallet Python SDK
The Agent Wallet Python SDK is a powerful tool designed to simplify the integration of your AI agent with the AgentWallet platform. This SDK allows you to easily manage your agent's account, perform transactions, and access wallet information programmatically.
Key Features
- Simple Account Management: Create and manage your agent's account with ease.
- Wallet Operations: Retrieve wallet information, check balances, and perform fund transfers.
- Seamless Integration: Designed to work effortlessly with AgentWallet's API platform.
- Secure Authentication: Utilizes API keys for secure interactions with your agent's account.
Getting Started
- Installation:
To start using the Agent Wallet SDK, check out the Agent Wallet SDK GitHub repository and install it using pip
:
git clone git@github.com:llmOS/agent-wallet-sdk.git
cd agent-wallet-sdk
pip install -e .
- Setting Up Your Account:
Import the Account class from the SDK and initialize it with your API key:
from agentwallet import Account
account = Account.from_key("your-api-key")
- Managing Wallets:
Fetch wallet information and manage transactions:
# Fetch all wallets associated with the account
wallets = account.get_wallets()
print(f"Wallets: {wallets}")
# Access a specific wallet
wallet = account.get_wallet(wallets[0].wallet_uid)
print(f"Wallet: {wallet}")
# Perform a fund transfer
transfer_ok = wallet.transfer("recipient@email.com", amount)
print(f"Transfer successful: {transfer_ok}")
# Check the new balance
balance = wallet.balance()
print(f"New balance: ${balance / 100:.2f}")
Examples
For more details, visit Agent Wallet SDK GitHub repository. Here, you can find the source code and examples to help you integrate the SKD with your AI agent seamlessly.
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
File details
Details for the file agentwallet-0.0.2.tar.gz
.
File metadata
- Download URL: agentwallet-0.0.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1325de03224a89a368aeb32c30abb398d7141845a92f3174c542dc5051bbbfd4 |
|
MD5 | a6eb2217a9870d7cc2f46597f7b41fe8 |
|
BLAKE2b-256 | 0a61497b800bda54bbd8ea70c5c3d402dc2bda7b44b6e2e4c024e161a5dfc038 |
File details
Details for the file agentwallet-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: agentwallet-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d99478750d4edfbedf10fac06bf97b807d84d51a24ba581a7b0e076f1809b65 |
|
MD5 | 15452f1f2ef05ba8135d6c0a841d4eb7 |
|
BLAKE2b-256 | 8058afb1840bacaf1d291d4e011b8f76d32d453f02475baa845d979a0916d7c9 |