{"uid":"cap_eJxG8HCl5Ex1eHBM4j2oc","slug":"quicknode-sql-rest-query-f3662da9","name":"QuickNode SQL REST Query","description":"Paid REST pass-through to `https://api.quicknode.com/sql/rest/v1/query`. Variable cost: the upstream response body's `credits` field is debited 1:1 from the caller's SIWX-authenticated drawdown balance (one SQL credit = one drawdown credit). Per-request `PAYMENT-SIGNATURE` is NOT accepted — callers must authenticate via SIWX and pre-fund credits.","url":"https://x402.quicknode.com/sql/rest/v1/query","method":"POST","headers":{},"bodySchema":{"type":"object","description":"Pass the SQL query and any parameters as JSON; consult QuickNode SQL docs for the body shape (`{ \"query\": \"...\", \"params\": {...} }`).","additionalProperties":true},"responseSchema":{"type":"object","properties":{"credits":{"type":"number","description":"SQL credits consumed by this query (debited 1:1 from drawdown balance)."}}},"example":null,"exampleRequest":null,"tags":["x402","compute"],"displayCostAmount":"10","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ad4ui11HyYYZYOGUJk83b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x036CbD53842c5426634e7929541eC2318f3dCF7e","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a SQL query against QuickNode's SQL API via a paid SIWX-authenticated REST pass-through, debiting credits from a pre-funded balance","exampleAgentPrompt":"Run this SQL query against QuickNode's SQL API and return the results: SELECT block_number, transaction_hash, value FROM ethereum.transactions WHERE from_address = '0xABC123' ORDER BY block_number DESC LIMIT 10","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the query result rows and a 'credits' field indicating how many SQL credits were consumed (debited 1:1 from the caller's pre-funded drawdown balance).","failureModes":["Insufficient drawdown balance — query rejected if SIWX-authenticated account lacks sufficient pre-funded SQL credits","Authentication failure — missing or invalid SIWX credentials result in 401/403","Malformed SQL query — syntax errors return a 400 with error details","Query timeout — complex or expensive queries may time out","Per-request PAYMENT-SIGNATURE not accepted — using wrong auth method results in rejection","Rate limiting — excessive requests may be throttled"],"whenToPreferThis":"Choose this endpoint when you need to run structured SQL queries against QuickNode's blockchain data via a pay-as-you-go credit model authenticated with SIWX. Ideal for on-chain analytics, blockchain data extraction, and querying indexed blockchain datasets without managing your own infrastructure. Prefer this over raw RPC endpoints when you need relational/SQL-style access to blockchain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:41:07.752Z","isFirstParty":false}