Klarda Chain API Quickstart

This guide will help new developers understand how to use the Chain API to retrieve metadata, market, and blockchain data. You can query chain data using popular HTTP clients such as fetch or axios.

Chain API Definition

The Klarda Chain API provides developers with endpoints to access critical blockchain data and metadata. This includes information on different blockchain networks, their growth metrics, and market capitalization. The Chain API is essential for applications that require detailed blockchain analytics, offering insights into network performance, user activity, and economic trends. This API supports a wide range of blockchain networks, ensuring comprehensive coverage and valuable insights.

Chain API Endpoint

With the Chain API, you can easily request information on different blockchain networks, DeFi growth, market capitalization, and daily active addresses. Klarda currently supports the following Chain API Endpoints:

Metadata API Endpoint

  • Get List Chains:
    Retrieves a list of all supported blockchain networks, including their metadata.

    Endpoint: GET /api/v1/chain/metadata

    Parameters:

    • None

Market API Endpoint

  • Get DeFi Growth Chart:
    Retrieves data on the growth of decentralized finance (DeFi) within a specified blockchain network over a certain duration.

    Endpoint: GET /api/v1/market/defi-growth

    Parameters:

    • chain_id (int): The ID of the blockchain.
    • duration (int): The time duration for the growth chart data.
  • Get Market Capitalization Chart:
    Fetches market capitalization data for a specified blockchain network over a certain duration.

    Endpoint: GET /api/v1/market/market-cap

    Parameters:

    • chain_id (int): The ID of the blockchain.
    • duration (int): The time duration for the market cap chart data.

Blockchain API Endpoint

  • Get Daily Active Address:
    Retrieves data on the number of daily active addresses within a specified blockchain network over a certain duration.

    Endpoint: GET /api/v1/blockchain/daily-active-address

    Parameters:

    • chain_id (int): The ID of the blockchain.
    • duration (int): The time duration for the daily active address data.

Example Use Cases

1. Blockchain Network Overview:
You can use the Metadata API Endpoint to get a list of all supported blockchain networks, which can be helpful for applications that support multiple blockchains.

2. DeFi and Market Analytics:
By using the Market API Endpoints, you can track the growth of DeFi and market capitalization on different blockchain networks. This data is valuable for financial analytics, research, and reporting.

3. User Activity Tracking:
The Blockchain API Endpoint allows you to monitor daily active addresses on a blockchain, providing insights into user activity and network engagement. This can be useful for developing applications that require user activity data, such as decentralized applications (dApps) and blockchain explorers.

We hope this quickstart guide helps you get started with the Klarda Chain API. For more detailed information, please refer to the full API documentation.