Skip to main content

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

  1. 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 .
  1. 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")
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentwallet-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

agentwallet-0.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file agentwallet-0.0.1.tar.gz.

File metadata

  • Download URL: agentwallet-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for agentwallet-0.0.1.tar.gz
Algorithm Hash digest
SHA256 257e9d69ce64385d3ecd1e0780a8ffa88becba5d61c6307eb1a8e27d9bdf329e
MD5 fb75a1ce83f0c5a24cc13c743dd0af5f
BLAKE2b-256 aa9e59e622f121961d206d5c909837d04fe8f74aabcf5752f6d9dc392b44ed83

See more details on using hashes here.

File details

Details for the file agentwallet-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: agentwallet-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for agentwallet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96432679eac623a8286c673a609d69c7faedb0d42a23c8d453dd56f6487b8a8c
MD5 3ac10a4c777525c6217d8eadcf556b24
BLAKE2b-256 b833d356cbe1d8b06dafc82a717b2b8e6a681a5f2cec01158e72e46e21ea8590

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page