{"id":37775959,"url":"https://github.com/crypto-com/developer-platform-client-py","last_synced_at":"2026-01-20T16:53:50.366Z","repository":{"id":268535737,"uuid":"874055988","full_name":"crypto-com/developer-platform-client-py","owner":"crypto-com","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-10T10:45:43.000Z","size":120,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-10T14:15:53.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crypto-com.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-17T07:18:09.000Z","updated_at":"2025-08-12T08:33:16.000Z","dependencies_parsed_at":"2025-03-24T07:32:14.334Z","dependency_job_id":"3918b23c-0ffd-4a83-ac54-485ee560aa14","html_url":"https://github.com/crypto-com/developer-platform-client-py","commit_stats":null,"previous_names":["crypto-com/developer-platform-client-py"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/crypto-com/developer-platform-client-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypto-com%2Fdeveloper-platform-client-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypto-com%2Fdeveloper-platform-client-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypto-com%2Fdeveloper-platform-client-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypto-com%2Fdeveloper-platform-client-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crypto-com","download_url":"https://codeload.github.com/crypto-com/developer-platform-client-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypto-com%2Fdeveloper-platform-client-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T15:00:15.600Z","updated_at":"2026-01-20T16:53:50.360Z","avatar_url":"https://github.com/crypto-com.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto.com Developer Platform Client.py\n\nThe **Crypto.com Developer Platform Client.py** is a Python SDK for integrating with the Crypto.com Developer Platform Service API. It simplifies access to blockchain features across the Cronos ecosystem (Cronos EVM \u0026 Cronos ZK EVM), covering native \u0026 ERC20 tokens, smart contracts, DeFi, wallets, transactions, and more.\n\n![PyPI](https://img.shields.io/pypi/v/crypto-com-developer-platform-client)\n\n## Features\n\n- Blockchain interaction for Cronos EVM \u0026 ZK EVM chains\n- Native and ERC20/ERC721 token operations\n- Smart contract ABI \u0026 bytecode querying\n- Cronos ID forward/reverse resolution\n- Transactions, blocks, and fee utilities\n- DeFi protocols: farms, tokens\n- Exchange ticker data\n\n## Installation\n\n```bash\npip install crypto-com-developer-platform-client\n```\n\n### Initialize the Client\n\nFirst, initialize the client with your API key. To get an API Key, please create an account and a project at https://developer.crypto.com.\n\n```py\nfrom crypto_com_developer_platform_client import Client\nfrom crypto_com_developer_platform_client.interfaces.chain_interfaces import CronosZkEvm\n\nClient.init(\n    api_key=\"YOUR_EXPLORER_API_KEY\",\n    provider=\"https://your-provider.com\"  # Optional\n)\n```\n\n## Wallet\n\n```py\nfrom crypto_com_developer_platform_client import Wallet\n\nwallet = Wallet.create()\nprint(wallet)\n```\n\n```py\nbalance = Wallet.get_balance(\"0xYourWalletAddress\")\nprint(balance)\n```\n\n## Token\n\n```py\nfrom crypto_com_developer_platform_client import Token\n\nnative_balance = Token.get_native_balance(\"0xYourWalletAddress\")\nprint(native_balance)\n```\n\n```py\nerc20_balance = Token.get_erc20_balance(\"0xYourWallet\", \"0xTokenContract\")\nprint(erc20_balance)\n```\n\n```py\nresult = Token.transfer_token(\"0xRecipient\", 10)\nprint(result)\n```\n\n```py\nwrap = Token.wrap_token(\"0xFromContract\", \"0xToContract\", \"0xReceiver\", 5)\nprint(wrap)\n```\n\n```py\nswap = Token.swap_token(\"0xFrom\", \"0xTo\", \"0xReceiver\", 3)\nprint(swap)\n```\n\n## Transaction\n\n```py\nfrom crypto_com_developer_platform_client import Transaction\n\ntx = Transaction.get_transaction_by_hash(\"0xTxHash\")\nprint(tx)\n```\n\n```py\nstatus = Transaction.get_transaction_status(\"0xTxHash\")\nprint(status)\n```\n\n```py\ncount = Transaction.get_transaction_count(\"0xWallet\")\nprint(count)\n```\n\n```py\ngas_price = Transaction.get_gas_price()\nprint(gas_price)\n```\n\n```py\nfee = Transaction.get_fee_data()\nprint(fee)\n```\n\n```py\nestimate = Transaction.estimate_gas({\n    \"from\": \"0xFromAddress\",\n    \"to\": \"0xToAddress\",\n    \"value\": \"0xAmountInHex\"\n})\nprint(estimate)\n```\n\n## Contract\n\n```py\nfrom crypto_com_developer_platform_client import Contract\n\nbytecode = Contract.get_contract_code(\"0xContractAddress\")\nprint(bytecode)\n```\n\n## Block\n\n```py\nfrom crypto_com_developer_platform_client import Block\n\ncurrent = Block.get_current_block()\nprint(current)\n```\n\n```py\nblock = Block.get_by_tag(\"latest\", tx_detail=\"true\")\nprint(block)\n```\n\n## Cronos ID\n\n```py\nfrom crypto_com_developer_platform_client import CronosId\n\nresolved = CronosId.forward_resolve(\"alice.cro\")\nprint(resolved)\n```\n\n```py\nreverse = CronosId.reverse_resolve(\"0xAddress\")\nprint(reverse)\n```\n\n## DeFi\n\n```py\nfrom crypto_com_developer_platform_client import Defi\nfrom crypto_com_developer_platform_client.interfaces.defi_interfaces import DefiProtocol\n\ntokens = Defi.get_whitelisted_tokens(DefiProtocol.H2)\nprint(tokens)\n```\n\n```py\nfarms = Defi.get_all_farms(DefiProtocol.VVS)\nprint(farms)\n```\n\n```py\nfarm = Defi.get_farm_by_symbol(DefiProtocol.H2, \"zkCRO-MOON\")\nprint(farm)\n```\n\n## Exchange\n\n```py\nfrom crypto_com_developer_platform_client import Exchange\n\ntickers = Exchange.get_all_tickers()\nprint(tickers)\n```\n\n```py\nticker = Exchange.get_ticker_by_instrument(\"BTC_USDT\")\nprint(ticker)\n```\n\n## API\n\n### Client\n\n- `Client.init(api_key, chain_id, provider=None)`: Initialize the SDK with API key, chain, and optional provider.\n\n### Wallet\n\n- `Wallet.create()`: Creates a new wallet.\n- `Wallet.get_balance(address)`: Returns the native token balance for a given wallet address.\n\n### Token\n\n- `Token.get_native_balance(address)`: Fetches native token balance.\n- `Token.get_erc20_balance(address, contract_address, block_height='latest')`: Fetches ERC20 token balance.\n- `Token.transfer_token(to, amount)`: Transfers tokens.\n- `Token.wrap_token(from_contract_address, to_contract_address, to, amount)`: Wraps tokens.\n- `Token.swap_token(from_contract_address, to_contract_address, to, amount)`: Swaps tokens.\n\n### Transaction\n\n- `Transaction.get_transaction_by_hash(tx_hash)`: Returns a transaction by hash.\n- `Transaction.get_transaction_status(tx_hash)`: Returns the status of a transaction.\n- `Transaction.get_transaction_count(address)`: Returns nonce for a wallet.\n- `Transaction.get_gas_price()`: Returns current gas price.\n- `Transaction.get_fee_data()`: Returns fee-related data.\n- `Transaction.estimate_gas(payload)`: Estimates gas for a given transaction payload.\n\n### Contract\n\n- `Contract.get_contract_code(contract_address)`: Fetches contract bytecode.\n\n### Block\n\n- `Block.get_current_block()`: Returns the latest block.\n- `Block.get_by_tag(tag, tx_detail=False)`: Returns a block by tag or number.\n\n### CronosId\n\n- `CronosId.forward_resolve(cronos_id)`: Resolves CronosId to address.\n- `CronosId.reverse_resolve(address)`: Resolves address to CronosId.\n\n### DeFi\n\n- `Defi.get_whitelisted_tokens(protocol)`: Returns list of whitelisted tokens.\n- `Defi.get_all_farms(protocol)`: Returns all farms.\n- `Defi.get_farm_by_symbol(protocol, symbol)`: Returns specific farm by symbol.\n\n### Exchange\n\n- `Exchange.get_all_tickers()`: Returns all tickers.\n- `Exchange.get_ticker_by_instrument(instrument_name)`: Returns specific ticker info.\n\n## Supported Chains\n\nThe SDK supports both **Cronos EVM** and **Cronos ZK EVM** networks.\n\n```py\nfrom crypto_com_developer_platform_client.interfaces.chain_interfaces import CronosEvm, CronosZkEvm\n\nCronosEvm.MAINNET     # Chain ID: 25\nCronosEvm.TESTNET     # Chain ID: 338\nCronosZkEvm.MAINNET   # Chain ID: 388\nCronosZkEvm.TESTNET   # Chain ID: 240\n```\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contact\n\nIf you have any questions or comments about the library, please feel free to open an issue or a pull request on our GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrypto-com%2Fdeveloper-platform-client-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrypto-com%2Fdeveloper-platform-client-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrypto-com%2Fdeveloper-platform-client-py/lists"}