Skip to main content

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 number
  • GetTransactionByHashTool - Get transaction details by hash
  • GetTransactionStatusTool - 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


Download files

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

Source Distribution

cryptocom_tools_explorer-2.0.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file cryptocom_tools_explorer-2.0.0.tar.gz.

File metadata

File hashes

Hashes for cryptocom_tools_explorer-2.0.0.tar.gz
Algorithm Hash digest
SHA256 eb5579b938f314e17e811344e71dc3fddc6e7b63e5fcfe4225cb5bb94c8fb7be
MD5 97bd1436b5f1fb102d1a343777e8f7c7
BLAKE2b-256 8e4e70dcda4c62b31bde3095aee31d9b6828625e7c625052c2cd52ba2345c54d

See more details on using hashes here.

Supported by

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