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
address
string
The wallet address for which to retrieve the balance.
Headers
Authorization
Bearer <token>
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
401
Unauthorized. Invalid or missing token.
404
Not Found. The wallet address does not exist.
500
Internal Server Error. An error occurred on the server.
Node.js - Axios Example
Status Codes
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