Klarda Wallet API Quickstart

This guide will help new developers understand how to use the Wallet API to retrieve balance and transaction information for various blockchain wallets. You can query wallet data using popular HTTP clients such as fetch or axios.

Wallet API Definition

The Klarda Wallet API offers a set of powerful endpoints that allow developers to manage and analyze wallet-related data. This includes retrieving balances of native tokens and various other tokens held in a wallet, as well as accessing transaction histories. The Wallet API is crucial for applications that need to track wallet activities, perform balance checks, and analyze transaction patterns. By integrating the Wallet API, developers can provide users with detailed and accurate wallet information, enhancing the overall functionality and user experience of their applications.

Wallet API Endpoint

With the Wallet API, you can easily request wallet balance and transaction information. Klarda currently supports the following Wallet API Endpoints:

Balance API Endpoint

  • Get Wallet Native Balance:
    Retrieves the native cryptocurrency balance for a specified wallet address on a particular blockchain.

    Endpoint: GET /api/v1/wallet/balance/native

    Parameters:

    • chain_id (string): The ID of the blockchain.
    • address (string): The wallet address.
  • Get Wallet Token Balance:
    Fetches the balance of various tokens held by a specified wallet address on a particular blockchain.

    Endpoint: GET /api/v1/wallet/balance/token

    Parameters:

    • chain_id (string): The ID of the blockchain.
    • address (string): The wallet address.

Transaction API Endpoint

  • Get Wallet Native Transaction:
    Retrieves a list of native cryptocurrency transactions for a specified wallet address on a particular blockchain.

    Endpoint: GET /api/v1/wallet/transaction/native

    Parameters:

    • chain_id (string): The ID of the blockchain.
    • address (string): The wallet address.
    • page (int): The page number for pagination (default is 1).
    • limit (int): The number of transactions per page (default is 10).
  • Get Wallet Transfer Transaction:
    Fetches a list of token transfer transactions for a specified wallet address on a particular blockchain.

    Endpoint: GET /api/v1/wallet/transaction/transfer

    Parameters:

    • chain_id (string): The ID of the blockchain.
    • address (string): The wallet address.
    • page (int): The page number for pagination (default is 1).
    • limit (int): The number of transactions per page (default is 10).

Example Use Cases

1. Checking Wallet Balance:
You can use the Wallet Balance API Endpoints to check the current balance of a wallet in terms of native cryptocurrency and tokens. This can be useful for developing portfolio tracking applications.

2. Tracking Transactions:
By using the Transaction API Endpoints, you can track all the transactions associated with a wallet address. This can be beneficial for developing applications that require transaction history, such as financial analytics tools or personal finance management apps.

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