You can try the examples by going to bitdb explorer and copy and pasting the example JSON below
Just basic queries with no processing step
- Exact match: Exact match query
- Exact match + Full text search: Combine exact match and full text search
- Hex query: Filter push data as hex value
- Multisig TX: Find multisig transactions
- OP_RETURN TX: Find only OP_RETURN transactions
- Projection: Use MongoDB's
project
operator to narrow down attributes - Query by address: Query transactions by address
- Query by address without input: Query transactions by address that don't contain an input to address
- Query by address reverse order: Query transactions by address, but get them in reverse order
- Query by multiple addresses: Query transactions by both incoming and outgoing addresses
- Full text search: Perform full text search
- Match multiple values inside input: Finds transactions which require multiple items to be matched within an input at same time.
- Count Transaction Per Block in Time Range: Counts number of transactions in blocks between two timestamps.
Query + processing to transform the query result.
- Conditional: if-then-else-then to filter out attributes
- Filter:
select
method to filter - Local variable: Local variable usage within the processing function
- map: Regular mapping function
- Construct String: String construction
- String interpolation: Build strings with string interpolation
- Unique: Output only unique (non-duplicate) strings
Let's add bitquery for some bitcoin apps here (Please feel free to add your own as well):
- Memo.cash: All the protocol implementations of Memo.cash, written in Bitquery
- Bookchain.cash: Get content from bookchain.cash