Get my balances
Retrieves all asset balances for the currently authenticated user.
This endpoint returns the balances of all assets (tokens) associated with the user's wallets.
β οΈ API key authentication is not supported
π Learn more about natural units of measure and Sparks.
Request Endpoint:
GET /odata/v1.0/Balances/My
Parametersβ
This method does not require parameters in the path or body.
You can optionally use OData query options to filter or paginate the results.
| Parameter | Type | Description |
|---|---|---|
| $filter | string | Optional. Filters the balances using supported operators (eq, in). |
| $skip | integer | Optional. Skips a specified number of records (useful for pagination). |
Example Request:β
GET /Balances/My?$filter=UniqueAssetId eq '0x7bc575105b40df19721a0001'&$skip=10
Response Bodyβ
application/json β Returns a list of balances for the userβs addresses and assets.
| Parameter | Description |
|---|---|
| Address | The wallet address associated with the balance. |
| UniqueAssetId | The unique identifier of the asset (token). |
| Amount | The amount of the specified asset held in the address. |
Example Response Body:β
In EVM-compatible networks (e.g., Sparknet, Ethereum, and Polygon), the "Address" and is 42 characters long. In non-EVM networks, the address length may differ. For example, on Internet Computer, it is 63 characters.
[
{
"Address": "0xc873ba6a2b45f7b2cd733c3983bd53ec6e2a05df",
"UniqueAssetId": "0x7bc575105b40df19721a0001",
"Amount": "25000"
}
]
Response Codesβ
| Code | Description |
|---|---|
| 200 | Balances successfully retrieved. |
| 401 | Unauthorized β user authentication required. |