Get Balance
Get the balance of any address in MINA protocol.
Description
This endpoint retrieves the current balance of a specified wallet address in both native currency (MINA) and fiat currency (USD).
URL
https://api.zelf.world/api/mina/balance/:address
Method
GET
Parameters
Parameter | Type | Description |
---|---|---|
| string | The wallet address for which to retrieve the balance. |
Headers
Key | Value | Required | Description |
---|---|---|---|
Authorization |
| Yes | The authorization token for access. |
Example Request
Example Response
Response Details
balance: The balance of the specified wallet address in MINA.
fiatBalance: The equivalent value of the balance in USD.
currency: The fiat currency used for conversion (in this case, USD).
Error Responses
Status Code | Description |
---|---|
| Unauthorized. Invalid or missing token. |
| Not Found. The wallet address does not exist. |
| Internal Server Error. An error occurred on the server. |
Node.js - Axios Example
Status Codes
Code | Description |
---|---|
200 | Success. The balance data is returned. |
400 | Bad Request. Invalid address format. |
401 | Unauthorized. Invalid authorization token. |
500 | Internal Server Error. |
Notes
Ensure that the
address
provided is valid and in the correct format.The API requires an Authorization token for access.
Last updated