You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
/// ### Documentation for JSON RPC Endpoint: `xps_walletAddress`
521
+
/// ---
522
+
/// #### Endpoint Name: `xps_walletAddress`
523
+
/// #### Description:
524
+
/// The `xps_walletAddress` endpoint retrieves the current Wallet Address of the internal wallet managed by the server. This endpoint is essential for applications that need to display or monitor the wallet, especially in the context of cryptocurrency transactions or account management.
525
+
/// #### Request:
526
+
/// - **Method:** `POST`
527
+
/// - **URL:** `/rpc/v1/walletAddress`
528
+
/// - **Headers:**
529
+
/// - `Content-Type: application/json`
530
+
/// - **Body:**
531
+
/// - **JSON Object:**
532
+
/// - `jsonrpc`: `"2.0"`
533
+
/// - `method`: `"xps_walletAddress"`
534
+
/// - `params`: Array (optional parameters as required)
535
+
/// - `id`: Request identifier (integer or string)
536
+
/// **Example Request Body:**
537
+
/// ```json
538
+
/// {
539
+
/// "jsonrpc": "2.0",
540
+
/// "method": "xps_walletAddress",
541
+
/// "params": [],
542
+
/// "id": 1
543
+
/// }
544
+
/// ```
545
+
/// #### Response:
546
+
/// - **Success Status Code:** `200 OK`
547
+
/// - **Error Status Codes:**
548
+
/// - `400 Bad Request` - Invalid request format or parameters.
549
+
/// - `500 Internal Server Error` - Server or wallet-related error.
/// - **Invalid Parameters:** Check if the request body is properly formatted and includes valid parameters.
571
+
/// - **Wallet or Server Errors:** Ensure that the server and wallet are operational. Consult server logs for detailed error information.
572
+
/// #### Security Considerations:
573
+
/// - **Authentication and Authorization:** Implement robust authentication and authorization checks to ensure only authorized users can access wallet balance information.
574
+
/// - **Secure Communication:** Utilize HTTPS to encrypt data in transit and prevent eavesdropping.
/// ### Documentation for JSON RPC Endpoint: `balance`
599
+
/// ### Documentation for JSON RPC Endpoint: `xps_balance`
524
600
/// ---
525
-
/// #### Endpoint Name: `balance`
601
+
/// #### Endpoint Name: `xps_balance`
526
602
/// #### Description:
527
-
/// 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.
603
+
/// The `xps_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.
528
604
/// #### Request:
529
605
/// - **Method:** `POST`
530
606
/// - **URL:** `/rpc/v1/balance`
@@ -533,14 +609,14 @@ pub trait Xps {
533
609
/// - **Body:**
534
610
/// - **JSON Object:**
535
611
/// - `jsonrpc`: `"2.0"`
536
-
/// - `method`: `"balance"`
612
+
/// - `method`: `"xps_balance"`
537
613
/// - `params`: Array (optional parameters as required)
538
614
/// - `id`: Request identifier (integer or string)
/// - `400 Bad Request` - Invalid request format or parameters.
712
+
/// - `500 Internal Server Error` - Server or wallet-related error.
713
+
/// **Success Response Body:**
714
+
/// ```json
715
+
/// {
716
+
/// "jsonrpc": "2.0",
717
+
/// "result": {
718
+
/// "nonce": 0
719
+
/// },
720
+
/// "id": 1
721
+
/// }
722
+
/// ```
723
+
/// **Error Response Body:**
724
+
/// ```json
725
+
/// {
726
+
/// "jsonrpc": "2.0",
727
+
/// "error": {
728
+
/// "code": -32602,
729
+
/// "message": "Invalid parameters"
730
+
/// },
731
+
/// "id": 1
732
+
/// }
733
+
/// ```
734
+
/// #### Error Handling:
735
+
/// - **Invalid Parameters:** Check if the request body is properly formatted and includes valid parameters.
736
+
/// - **Wallet or Server Errors:** Ensure that the server and wallet are operational. Consult server logs for detailed error information.
737
+
/// #### Security Considerations:
738
+
/// - **Authentication and Authorization:** Implement robust authentication and authorization checks to ensure only authorized users can access wallet balance information.
739
+
/// - **Secure Communication:** Utilize HTTPS to encrypt data in transit and prevent eavesdropping.
0 commit comments