Metacore
Query Blockchain Tables
Query a blockchain with SQL
POST
/
blockchain
/
query
Query quick start
Pass SQL payload to the SQL body parameter.
Available tables:
- “PairTick”: tick-level price data for all DeFi pairs (pair_id, date, price, price_usd, volume, is_mev)
- “Pair”: all pairs curated on Mobula (id, address, blockchain, base, quote)
- “Trade”: all trades curated on Mobula (id, pair_id, date, token_in, token_out, token_in_amount, token_out_amount, hash, blockchain, amount_usd)
- “EVMEvent_topic0”: Decoded events from a given topic
Example
How to generate topic hash
If the topic is not found, it will throw an error. Use the blockchain/decode POST endpoint to decode the topic.
Body
application/json
sql
string
Response
200 - application/json
data
object[]