Table of Contents
/Wallet/GetBalance
Allows the client to retrieve information about the current state of its wallet.
JSON
- Request
{ }
- Response (if successful)
{ "amount":Required(Double(PAmount)), "reserved":Required(Double(PReserved)), "currency":Required(Str(PCurrency)), "timestamp":Required(DateTime(PTimestamp)) }
XML
- Request
<GetBalance xmlns="https://waher.se/Schema/BrokerAgent.xsd" />
- Response (if successful)
<Balance xmlns="https://waher.se/Schema/BrokerAgent.xsd" amount=(Required(Double(PAmount))) reserved=(Required(Double(PReserved))) currency=(Required(Str(PCurrency))) timestamp=(Required(DateTime(PTimestamp)))/>
Response Parameters
Parameter | Description |
---|---|
PAmount |
Current amount of eDaler that can be used. |
PReserved |
Current amount of eDaler that has been reserved. |
PCurrency |
Currency of wallet. |
PTimestamp |
Timestamp of balance statement. |
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Wallet.GetBalance();