wallet balance #9
Closed
jac18281828
started this conversation in
Ideas and Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To support monitoring of the gateway wallet balance it will be important to support simple transparency for the available funds on the gateway wallet. This request is to implement a JSON RPC method
balance
which will return the current wallet balance.Documentation for JSON RPC Endpoint:
balance
Endpoint Name:
balance
Description:
The
balance
endpoint retrieves the current balance of the internal wallet managed by the server. This endpoint is essential for applications that need to display or monitor the wallet's balance, especially in the context of cryptocurrency transactions or account management.Request:
POST
/rpc/v1/balance
Content-Type: application/json
jsonrpc
:"2.0"
method
:"balance"
params
: Array (optional parameters as required)id
: Request identifier (integer or string)Example Request Body:
Response:
200 OK
400 Bad Request
- Invalid request format or parameters.500 Internal Server Error
- Server or wallet-related error.Success Response Body:
Error Response Body:
Error Handling:
Security Considerations:
Usage Example:
Beta Was this translation helpful? Give feedback.
All reactions