Skip to content

Request Formatting Guide

To send a sample request to the API, use the following commands.

{
"id": 3,
"command": "account_info",
"account": "rhBDFMmr3jSjgsWMqBAYaATLy3PuXy395y",
"strict": true,
"ledger_index": "validated",
"api_version": 1
}

Once you establish a WebSocket connection to the xahaud server, you can send commands as JSON objects with these fields:

FieldTypeDescription
commandStringThe name of the API method
id(Multiple)(Optional) Unique identifier for the request.
api_versionNumber(Optional) Specifies the API version.
POST https://xahau.network/
Content-Type: application/json
{
"method": "account_info",
"params": [
{
"account": "rhBDFMmr3jSjgsWMqBAYaATLy3PuXy395y",
"strict": true,
"ledger_index": "validated",
"api_version": 1
}
]
}
FieldTypeDescription
methodStringThe name of the API method
paramsArray(Optional) A one-item array containing a JSON object with the parameters of the method.
xahaud account_info rhBDFMmr3jSjgsWMqBAYaATLy3PuXy395y validated strict
FieldDescription
xahaudStart calling the service xahaud
methodThe name of the API method
params(Optional)