qan_syncing
API details
Returns an object with the sync status of the node if the node is out-of-sync and is syncing. Returns null when the node is already in sync.
HTTP response status codes for "qan_syncing"
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
422 | Unprocessable Entity |
500 | Internal Server Error |
Code samples for "qan_syncing"
Request examples
get/syncing/
cURLJavaScriptGoPython
curl --request GET \
--url https://rpc-testnet.qanplatform.com/syncing/ \
--header 'Accept: application/json, , application/problem+json'
const options = {
method: 'GET',
headers: {Accept: 'application/json, , application/problem+json'}
};
fetch('https://rpc-testnet.qanplatform.com/syncing/', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rpc-testnet.qanplatform.com/syncing/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "application/json, , application/problem+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
import requests
url = "https://rpc-testnet.qanplatform.com/syncing/"
headers = {"Accept": "application/json, , application/problem+json"}
response = requests.get(url, headers=headers)
print(response.text)
Response examples
200400404422500
Content type: application/json
{"SyncStatus":""}
Content type: application/problem+json
{}
Content type: application/problem+json
{}
Content type: application/problem+json
{}
Content type: application/problem+json
{}