List Asset (Personal Account)

Get the list of your assets

Note: if you want list assets in personal account, use this article.

This endpoint allows you to retrieve the total asset of all your wallets in a specified fiat currency (e.g., USD). You will also get detailed information about each individual wallet, including the cryptocurrency balance and its equivalent in fiat currency.

GET https://api.payhubix.com/v1/wallet/personal/assets/USD/

Note: you must insert Fiat symbol in end of URL (e.g USD).

Request Header:

Name
Type
Description

X-Api-Key*

string

Your API key for authentication and authorization.

Response:

Name

Type

Description

total_fiat_balance

float

The total balance of all wallets converted into fiat (e.g., 1439.828 USD).

fiat_symbol

string

The symbol of the fiat currency used to represent the total balance (e.g., "USD").

symbol

string

The symbol of the cryptocurrency (e.g., "USDT" for Tether, "TRX" for Tron).

name

string

The name of the cryptocurrency (e.g., "Tether", "Tron").

icon

string

URL of the cryptocurrency's icon (e.g., "https://payhubixstorage.darkube.app/.../USDT_logo.jpg").

balance

float

The balance of the cryptocurrency in its own unit (e.g., 9665 TRX).

fiat_balance

float

The equivalent balance of the cryptocurrency in fiat currency (e.g., 1439.828 USD).

fiat_symbol

string

The symbol of the fiat currency (e.g., "USD").

An example of response:

{
    "error": false,
    "number": 0,
    "message": {
        "total_fiat_balance": 1439.828,
        "fiat_symbol": "USD",
        "assets": [
            {
                "symbol": "USDT",
                "name": "Tether",
                "icon": "https://payhubixstorage.darkube.app/payhubix/coins_icons/USDT_logo.jpg",
                "balance": 0,
                "fiat_balance": 0,
                "fiat_symbol": "USD"
            },
            {
                "symbol": "TRX",
                "name": "Tron",
                "icon": "https://payhubixstorage.darkube.app/payhubix/coins_icons/TRX_logo.jpg",
                "balance": 9665,
                "fiat_balance": 1439.828,
                "fiat_symbol": "USD"
            }
        ]
    }
}

Example codes:

curl --location 'https://api.payhubix.com/v1/wallet/personal/assets/USD/' \
--header 'X-Api-Key: YOUR_API_KEY'

Note: Please make sure to replace YOUR_API_KEY in the code snippets with your actual merchant API key

Last updated