Metadata-Version: 2.4
Name: cryptocom-tools-explorer
Version: 2.0.0
Summary: Blockchain explorer tools for Crypto.com Developer Platform
Author-email: "Crypto.com" <support@crypto.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/crypto-com/agent-client-py
Project-URL: Documentation, https://github.com/crypto-com/agent-client-py
Project-URL: Repository, https://github.com/crypto-com/agent-client-py
Project-URL: Bug Tracker, https://github.com/crypto-com/agent-client-py/issues
Keywords: blockchain,crypto,cronos,explorer,tools,web3
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Office/Business :: Financial :: Accounting
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptocom-tools-core>=2.0.0
Requires-Dist: crypto-com-developer-platform-client>=1.0.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: basedpyright>=1.13.0; extra == "dev"
Dynamic: license-file

# cryptocom-tools-explorer

Blockchain explorer tools for the Crypto.com Developer Platform.

## Installation

```bash
pip install cryptocom-tools-explorer
```

## Features

Read-only blockchain explorer tools:
- `GetBlockByTagTool` - Get block by tag (latest, earliest, pending) or block number
- `GetTransactionByHashTool` - Get transaction details by hash
- `GetTransactionStatusTool` - Get transaction confirmation status

## Usage

```python
import os
from cryptocom_tools_explorer import (
    GetBlockByTagTool,
    GetTransactionByHashTool,
    GetTransactionStatusTool,
)

# Tools auto-read API key from CRYPTOCOM_DEVELOPER_PLATFORM_API_KEY env var
tool = GetBlockByTagTool()
result = tool.invoke({"tag": "latest"})
print(result)

# Or pass API key explicitly
tool = GetTransactionByHashTool(api_key=os.getenv("CRYPTOCOM_DEVELOPER_PLATFORM_API_KEY"))
result = tool.invoke({"hash": "0x..."})
print(result)
```

## License

MIT
