Comment on page
Balance
The
/wallet/balance
endpoint allows you to retrieve the balance of a specific wallet. This endpoint is protected with Bearer Token authentication and accepts a GET request with the following parameters:- walletID: A query parameter specifying the ID of the wallet for which you want to retrieve the balance.
- X-Neucron-App-ID: A header parameter for specifying the app ID.
- X-Neucron-Key-ID: A header parameter for specifying the key ID.
- X-Neucron-Key-Secret: A header parameter for specifying the key secret.
- X-Neucron-User-ID: A header parameter for specifying the user ID.
- URL:
https://dev.neucron.io/wallet/balance
- Method: GET
- Consumes:
application/json
- Produces:
application/json
- Tags: Wallet
- Summary: Get balance
Here's an example CURL request to retrieve the balance of a specific wallet:
curl -X 'GET' \
'https://dev.neucron.io/wallet/balance?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
Replace
<Wallet_ID>
with the ID of the wallet for which you want to retrieve the balance, and <Your_Bearer_Token>
with your actual Bearer Token.The API responds with a JSON object containing the balance of the specified wallet. Here's the response structure:
{
"data": {
"balance": "string"
},
"status_code": "integer"
}
data.balance
: A string representing the balance of the wallet.status_code
: An integer representing the HTTP status code.
200
: OK - The balance was successfully retrieved.400
: Bad Request - If there's an issue with the request, you'll receive an error response.500
: Internal Server Error - If there's a problem with the server, you'll receive an error response.
Here's the CURL example to retrieve the balance of a specific wallet (replace
<Wallet_ID>
and <Your_Bearer_Token>
as mentioned above):curl -X 'GET' \
'https://dev.neucron.io/wallet/balance?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
This CURL request will retrieve the balance associated with the specified wallet and return it in the response.
get
https://dev.neucron.io
/wallet/balance
Retrieve the balance of a wallet
Last modified 3mo ago