Request Formatting Guide
Public Servers
wss://xahau.network or https://xahau.network (Mainnet)
wss://xahau-test.net or https://xahau-test.net (Testnet)
Sample Requests
To send a sample request to the API, use the following commands.
Websocket
WebSocket Request Structure
Once you establish a WebSocket connection to the xahaud
server, you can send commands as JSON objects with these fields:
Field
Type
Description
command
String
The name of the API method
id
(Multiple)
(Optional) Unique identifier for the request.
api_version
Number
(Optional) Specifies the API version.
JSON-RPC
JSON-RPC Request Structure
Field
Type
Description
method
String
The name of the API method
params
Array
(Optional) A one-item array containing a JSON object with the parameters of the method.
Comandline
Commandline Request Structure
Field
Description
xahaud
Start calling the service xahaud
method
The name of the API method
params
(Optional)
Last updated