Wallets
Get Single Wallet

Knit API Documentation

Overview

Knit API is designed to facilitate the interaction with cryptocurrency wallets, providing a secure and efficient way to manage digital assets. This particular endpoint focuses on retrieving detailed information for a single wallet, making it invaluable for operations that require specific wallet data.

Get Single Wallet

Endpoint

GET

 {{baseUrl}}/api/wallets/:id

Access detailed information for a specific wallet by specifying its unique identifier. This endpoint is crucial for applications needing to display or manipulate the data of a particular wallet, including transaction history, balance checks, and asset management.

Headers
  • X-API-KEY: Your API key, which authorizes the request.
  • Accept: Set to application/json to receive the response in JSON format.
Path Variables
  • id: The unique identifier of the wallet you wish to retrieve information for. This should be replaced with the actual wallet ID in your request.
Sample Request

Below is an example of how to retrieve a single wallet using curl:

curl --location -g '{{baseUrl}}/api/wallets/bf81f144-efca-422a-aed7-bf7bf52da26b' \
--header 'X-API-KEY: {{apiKey}}' \
--header 'Accept: application/json'
Sample Response

The response provides a JSON object containing detailed information about the wallet, such as its ID, associated user ID, network, address, active status, and creation/update timestamps:

Sample Response
{
    "success": true,
    "message": "Wallet fetched successfully",
    "status": 200,
    "data": {
        "id": "d95143d2-c076-49da-b121-b3beed054bf3",
        "userId": "a2667393-2c6c-43c9-a288-6167e2b2b591",
        "network": "ETHEREUM_MAINNET",
        "networkId": "ETHEREUM_MAINNET",
        "address": "0x1adb0a39bde00fa0957e519584cb5c51fefcb37f",
        "isActive": true,
        "createdAt": "2024-02-26T13:59:19.000000Z",
        "updatedAt": "2024-02-26T13:59:19.000000Z"
    }
}

Description

The "Get Single Wallet" endpoint is a targeted API call that allows for the retrieval of comprehensive details regarding a specific wallet. This capability is essential for applications requiring precise information to facilitate user interactions, such as transferring assets, querying transaction histories, or simply displaying wallet details within a user interface.

By leveraging this API, developers can ensure their applications are equipped to handle user requests accurately and efficiently, thereby enhancing the overall user experience. This endpoint underscores the flexibility and power of the Wallets API in supporting a wide range of cryptocurrency management functionalities.