Bitcoin GraphQL queries
530 public GraphQL queries on Bitcoin, saved by 216 authors and ready to run in the Bitquery IDE: outputs (182), inputs (166), transactions (134), money flows (111) and blocks (61).
Outputs on Bitcoin
- Bitcoin balance using input outputs – Returns inputs and outputs on Bitcoin, where input address is bc1ppu…ehcq and output address is bc1ppu…ehcq: count, value, minimum of date and maximum of date.
- Bitcoin balance – Returns inputs and outputs on Bitcoin, where input address is 18cBEM…L5PX and output address is 18cBEM…L5PX: count, value, minimum of date and maximum of date.
- Details of Bitcoin Transaction – Returns 10 transactions and outputs on Bitcoin, where tx hash is d073b9…dcc5, sorted by input index: block height, timestamp time, index, input count, output count, input value, output value and 15 more fields.
- btc price in 2016 – Returns outputs on Bitcoin, where date is 2016-01-01: value and expression.
- Track Bitcoin Transaction – The provided query retrieves information about the inputs and outputs of a specific Bitcoin transaction, including addresses, values in Bitcoin and USD, and transaction directions.
Inputs on Bitcoin
- Bitcoin balance using input outputs – Returns inputs and outputs on Bitcoin, where input address is bc1ppu…ehcq and output address is bc1ppu…ehcq: count, value, minimum of date and maximum of date.
- Bitcoin balance – Returns inputs and outputs on Bitcoin, where input address is 18cBEM…L5PX and output address is 18cBEM…L5PX: count, value, minimum of date and maximum of date.
- Details of Bitcoin Transaction – Returns 10 transactions and outputs on Bitcoin, where tx hash is d073b9…dcc5, sorted by input index: block height, timestamp time, index, input count, output count, input value, output value and 15 more fields.
- query_genesis_bug – Returns inputs on Bitcoin, where input address is 1Dtsdb…THLF: value, date date, block height and transaction hash.
- Track Bitcoin Transaction – The provided query retrieves information about the inputs and outputs of a specific Bitcoin transaction, including addresses, values in Bitcoin and USD, and transaction directions.
Transactions on Bitcoin
- Details of Bitcoin Transaction – Returns 10 transactions and outputs on Bitcoin, where tx hash is d073b9…dcc5, sorted by input index: block height, timestamp time, index, input count, output count, input value, output value and 15 more fields.
- Example of query. BTC txs list – Returns the latest 100 transactions on Bitcoin, where date is 2021-01-14: hash and block height.
- All bitcoin transctions for a bitcoin address – Returns the latest 10 transactions on Bitcoin, where date since 2023-11-07 and date till 2023-11-14: timestamp time, block height, input count big int, output count big int, mined value, fee value and hash.
- Bitcoin BTC transaction aggregates – Bitcoin BTC transaction aggregates. Gets: block info Block time Number of input addresses into hash Number of output addresses into hash Value of inputs & outputs in BTC.
- bitcoin daily transactions – This query retrieves the count of transactions per day on the Solana blockchain for the last 10 days, with the results sorted in descending order. By adjusting the limit parameter, you can retrieve more or fewer days of transaction data. The query fetches the date and corresponding count of transact
Money flows on Bitcoin
- BTC money flow – Returns money flows on Bitcoin, where initial address is 1CDvcR…gD4s, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth and count.
- coinpath two address relationship – Returns money flows on Bitcoin, where initial address is 36sTQq…XCjg, receiver is 36sTQq…XCjg and date since 2021-10-22, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth and count.
- api_query_ – Returns 25000 money flows on Bitcoin, where initial address is 1GHAQW…XU7v, date since 2015-01-01 and date till 2024-04-19, sorted by depth: receiver address, annotation, receivers count, senders count, first tx at time, last tx at time, receiver type and 9 more fields.
- All transactions between two Bitcoin addresses – The query returns all outbound transactions between two Bitcoin addresses.
- coinpath error – Returns money flows on Bitcoin, where initial address is bc1qaa…he9m, date since 2025-01-01 and date till 2027-01-01, sorted by amount, highest first: sender address, receiver address, amount, depth, currency address, currency name, decimals and 5 more fields.
Blocks on Bitcoin
- Bitcoin Difficulty – Returns blocks on Bitcoin, where date after 2016-01-01: date date and difficulty.
- get_latest_btc_blk – Returns blocks on Bitcoin: count big int.
- Bitcoin Blocks By Height – Returns 5 blocks on Bitcoin, sorted by height, highest first: height, block hash, transaction count and date date.
- bitcoin blocks with txn count – Returns blocks on Bitcoin, where date since 2024-07-01: height, block hash and transaction count.
- bitcoin_blocks – Returns blocks on Bitcoin, where date is 2026-01-13: block hash, block size, block size big int, block stripped size, block version, block weight, chainwork and 5 more fields.