cURL
curl --request POST \ --url https://api.ask.surf/gateway/v1/onchain/sql \ --header 'Content-Type: application/json' \ --data ' { "sql": "<string>", "max_rows": 1000 } '
{ "data": [ {} ], "meta": { "cached": true, "credits_used": 123, "limit": 123, "offset": 123, "total": 123 }, "$schema": "<string>" }
SQL query to execute against the blockchain data warehouse
"SELECT transaction_hash, from_address, value FROM agent.ethereum_transactions LIMIT 5"
Maximum number of rows to return
1 <= x <= 10000
1000
OK
Show child attributes
A URL to the JSON Schema for this object.
"https://example.com/schemas/DataResponseOnchainRow.json"