Crypto.com On-Chain Developer Platform
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
andCronos zkEVM
.Simple and intuitive API for interacting with Cronos blockchain networks.
Supports token balances (native & CRC20), token transfers, wrapping, and swapping.
Transaction queries by address or hash, and fetching transaction statuses.
Smart contract ABI fetching by contract address.
Wallet creation and balance management.
Installation
To install the package, run the following command in your project directory:
Usage
Configuring the Client
Here’s how you can use the Crypto.com Client for Developer Platform in your project:
First, configure the client with your API key and desired blockchain network (Cronos EVM or Cronos ZK EVM):
Example Operations
Wallet Operations
Create a Wallet:
Get Wallet Balance:
Token Operations
Fetch Native Token Balance:
Fetch ERC20 Token Balance:
Transfer Tokens:
Wrap Tokens:
Swap Tokens:
Transaction Operations
Fetch Transactions by Address:
Fetch Transaction by Hash:
Get Transaction Status:
Contract Operations
Fetch Contract ABI by Address:
Block Operations
Fetch Block by Tag or Block Number:
Last updated