GET
/v3-node-0/smartaccount/{address}/queryIDGet the next query ID
Returns the next available query ID for a smart account
Base URL
https://api.storm.tgExamples
curl --request GET 'https://api.storm.tg/v3-node-0/smartaccount/{address}/queryID' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/v3-node-0/smartaccount/{address}/queryID", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/v3-node-0/smartaccount/{address}/queryID",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200OKapplication/json
executor_query_idintegeroptionalExecutorQueryID is the current executor query-id counter for the SA — the next bundle leases at or above it (reconciled against the on-chain used set).
Example:
0max_live_query_idintegeroptionalMaxLiveQueryID is the highest query-id among the SA's live bundles, omitted when it has none.
Example:
0query_idintegeroptionalExample:
0{
"executor_query_id": 0,
"max_live_query_id": 0,
"query_id": 0
}400Bad Requestapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}404Not Foundapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}500Internal Server Errorapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}