On-chain Data SQL Query
Last updated
Last updated
If you want to leverage LLM to generate sql queries, you can refer to below schemas as prompt to the LLM:
This endpoint allows you to send SQL queries to the CARV backend to fetch on-chain data.
sql_content
Body
string
Yes
The SQL query to be executed.
200 OK Response
400 Bad Request Response
200
OK
Inline
400
Bad Request
Inline
200 OK
code
integer
Yes
None
Status code.
msg
string
Yes
None
Response message.
data
object
Yes
None
Data from the query.
column_infos
array
Yes
None
Column headers of data.
rows
array
Yes
None
Query result rows.
400 Bad Request
error
string
Yes
None
Error message.