On-Chain Developer Platform Client SDK

Introduction

The Crypto.com On-Chain Developer Platform Client SDK is designed to interact seamlessly with the Crypto.com Developer Platform Service API. This client library simplifies interactions with the Cronos blockchain, supporting native tokens, ERC20 tokens, smart contracts, transactions, blocks, and wallets.

Features

Currently in beta: Expect frequent updates and potential changes in future releases.

  • Supports Cronos EVM and Cronos zkEVM.

  • Simple and intuitive API for interacting with Cronos blockchain networks.

  • Native and ERC20/ERC721 token operations

  • Token transfers, wrapping, and swapping.

  • Transaction queries by address or hash, and fetching transaction statuses.

  • Smart contract ABI and bytecode fetching by contract address.

  • Wallet creation and balance management.

  • Cronos ID forward/reverse resolution.

  • DeFi protocols and features, including yield farming and token utilities.

  • Crypto.com exchange data

Installation

To install the package, run the following command:

pip install crypto-com-developer-platform-client

Usage

Here’s how you can use the Crypto.com Client for Developer Platform in your project:

Initialize the Client

First, initialize the client with your API key. To obtain an API key, please refer to the following page:

Developer Platform Dashboard
from crypto_com_developer_platform_client import Client

Client.init(
    api_key="YOUR_API_KEY",
    provider="https://your-provider.com"  # Optional
)

Supported Chains

The SDK supports both Cronos EVM and Cronos ZK EVM networks.

from crypto_com_developer_platform_client.interfaces.chain_interfaces import CronosEvm, CronosZkEvm

CronosEvm.MAINNET     # Chain ID: 25
CronosEvm.TESTNET     # Chain ID: 338
CronosZkEvm.MAINNET   # Chain ID: 388
CronosZkEvm.TESTNET   # Chain ID: 240

Modules and Examples

Below section provides detailed information on these blockchain functions and example interactions, guiding developers on how to effectively interact with Cronos Chains using the Developer Platform Client SDK.

Wallet ModuleToken ModuleTransaction ModuleBlock ModuleContract ModuleCronosID ModuleDefi ModuleExchange ModuleEvent ModuleNetwork Module

Last updated

Was this helpful?