cryptocom-tools-wallet
Wallet management tools for Crypto.com blockchain operations. Part of the Crypto.com tools ecosystem.
Overview
This package provides framework-agnostic wallet management tools for blockchain operations. It handles wallet creation, storage, and state management without any dependencies on specific AI frameworks like LangChain or LangGraph.
Features
- Create new wallets
- Manage multiple wallets
- Switch between active wallets
- Delete wallets from session
- Get wallet balances
- Wallet state management
Installation
pip install cryptocom-tools-wallet
For development:
pip install -e .
Usage
Basic Wallet Operations
from cryptocom_tools_wallet import CreateWalletTool, WalletState
# Initialize wallet state
state = WalletState()
# Create wallet tool with explicit dependency injection
create_tool = CreateWalletTool()
# Create a new wallet (returns WalletCredentials)
result = create_tool.execute(state=state)
print(f"Created wallet: {result.address}")
Wallet State Management
from cryptocom_tools_wallet import WalletState, WalletRegistry
# Initialize state
state = WalletState()
# Register a wallet
state.register_wallet("0x123...")
# Set active wallet
state.set_active_wallet("0x123...")
# Get active wallet
active = state.get_active_wallet()
# List all wallets
wallets = state.list_wallets()
Framework Adapters
This package is designed to work with framework adapters from cryptocom-tool-adapters:
# With LangGraph adapter
from cryptocom_tool_adapters import to_langgraph_tool
create_wallet_lg = to_langgraph_tool(
create_tool,
state_extractor=lambda s: {"state": s.get("wallet_state")}
)
# With OpenAI SDK adapter
from cryptocom_tool_adapters import to_openai_function
create_wallet_openai = to_openai_function(
create_tool,
context={"state": wallet_state}
)
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Type checking
basedpyright
# Linting
ruff check .
# Formatting
black .
License
MIT
Metadata
Release files for cryptocom-tools-wallet 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cryptocom_tools_wallet-2.0.0.tar.gz | 17.4 kB | Without provenance | Details |
Release files / cryptocom_tools_wallet-2.0.0.tar.gz
| Download URL | cryptocom_tools_wallet-2.0.0.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cad0a4af8424830de148beeb359a6cbce74518ad83c70a21f46a813d77fc5c6
|
|
BLAKE2b-256 checksum How to use checksums |
894d1d0f6e2c5b96306303ee70645fa8750d06c77dbf431dea0334a39e98e321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for cryptocom-tools-wallet 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.