stats_service
post/api/v1/services/stats/query/estimate

Request

  • Base URL
    http://localhost:8888
  • Auth
    none declared

Query parameters

chain'mainnet' | 'testnet'

chain

Request body

project_idinteger required
namestring
querystring
gpt_messagestring
repeat_intervalinteger

cyclic execution of requests

Example request

{
  "project_id": 1647024163,
  "name": "test query",
  "query": "select id from test",
  "gpt_message": "give me random id from accounts table",
  "repeat_interval": 10
}

Response

Estimate query

approximate_timeinteger required
approximate_usd_costnumber required
explainstring

Changes

    • breaking

      removed the required property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the new optional request property