Page cover

Wallet Aggregator: Managing Multiple Wallets

1.1 Wallet Aggregator Overview

Wallet Aggregator module provides functionality for managing multiple cryptocurrency wallets in one unified interface. It allows users to track, monitor, and manage various wallet accounts across multiple blockchain networks, streamlining the process of handling diverse assets. This guide provides API examples to assist developers in integrating and utilizing wallet management capabilities through the Wallet Aggregator’s REST API.


1.2 GET /wallets

Parameters:

  • user_id (string, required): Unique identifier of the user.

  • limit (integer, optional): The maximum number of wallets to return.

Request

curl -X GET "https://api.capsurelabs.com/wallets?user_id=12345&limit=10" -H "Authorization: Bearer <token>"

Response

{
  "status": "success",
  "wallets": [
    {
      "wallet_id": "1",
      "name": "Main Wallet",
      "balance": "3.5 ETH",
      "network": "Ethereum"
    },
    {
      "wallet_id": "2",
      "name": "Savings Wallet",
      "balance": "1.2 BTC",
      "network": "Bitcoin"
    }
  ]
}

1.3 POST /wallets/add

Parameters:

  • user_id (string, required): User's unique identifier.

  • wallet_address (string, required): Public address of the wallet.

  • network (string, required): Blockchain network (e.g., Ethereum, Bitcoin, Polygon).

Request

Response


1.4 GET /wallets/{wallet_id}/balance

Parameters:

  • wallet_id (string, required): Unique identifier of the wallet.

Request

Response


1.5 POST /wallets/{wallet_id}/transfer

Parameters:

  • wallet_id (string, required): ID of the source wallet.

  • recipient_address (string, required): Public address of the recipient.

  • amount (string, required): Amount to transfer.

  • currency (string, required): Type of cryptocurrency (e.g., ETH, BTC).

Request

Response


1.6 GET /wallets/sync

Parameters:

  • user_id (string, required): Unique identifier of the user.

Request

Response


1.7 Aggregating Balances with JavaScript (Node.js)

Postman Collection

Last updated