Blockchain explorer tools for Crypto.com Developer Platform
Project description
cryptocom-tools-explorer
Blockchain explorer tools for the Crypto.com Developer Platform.
Installation
pip install cryptocom-tools-explorer
Features
Read-only blockchain explorer tools:
GetBlockByTagTool- Get block by tag (latest, earliest, pending) or block numberGetTransactionByHashTool- Get transaction details by hashGetTransactionStatusTool- Get transaction confirmation status
Usage
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
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
File details
Details for the file cryptocom_tools_explorer-2.0.0.tar.gz.
File metadata
- Download URL: cryptocom_tools_explorer-2.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb5579b938f314e17e811344e71dc3fddc6e7b63e5fcfe4225cb5bb94c8fb7be
|
|
| MD5 |
97bd1436b5f1fb102d1a343777e8f7c7
|
|
| BLAKE2b-256 |
8e4e70dcda4c62b31bde3095aee31d9b6828625e7c625052c2cd52ba2345c54d
|