Bitquery Builder

The Bitquery Builder

The ‘Builder’ makes the whole process of querying data from the blockchain network pretty easy. As long as you are sure about what information you need to extract, writing queries is a hassle-free task.

Getting Started

The first step is to select the blockchain whose information you require. We provide support for blockchains like Bitcoin, Binance, Ethereum, Cardano, Tron, Diem, Hedera among many others.

Once you select the blockchain network, you’ll be presented with a number of options like the address, blocks, coinpath, transactions, transfers, smartContractCalls, DEX etc. depending on the blockchain network you use. All these options are written in blue and their sub-options are written in purple for distinction and clarity.

Remember, the options written in purple are used for filtering your GraphQL query while the blue ones are the values that can be obtained and queried.

Let’s start by taking an example. Let try to create a query to

Get the token pairs when liquidity is added (in PancakeSwap)

Check this video where the BITQUERY BUILDER has been put into use in order to obtain the block height and argument value of a MINT smart contract event on a given smart contract address. Here, the smart contract address is 0x1b96b92314c44b159149f7e0303511fb2fc4774f.

As visible in the video, all you need to do is select the desired parameters regarding which you want the information and then simply run the query by clicking on the green arrow in the middle of the screen as shown here.

The GraphQL query used in the above example.

Let’s take another example, but this time to

Find out the monthly trade volume of Uniswap V3

In this video, the monthly trade volume of the Uniswap V3 protocol has been shown made using the BITQUERY BUILDER.

Here also we’ve simply selected the fields regarding which we wanted to make a query and ran it in the builder. If you notice that the monthly trade amount of Uniswap v3 since the month of July 2021 is over 26 billion and increasing as shown in the below bar graph.

While on contrary to the monthly trade amount of One Inch Liquidity Pool since the month of July 2021 is just 400 million with a sharp decrease in the upcoming months as shown in the bar graph below.

The GraphQL query used in the above example is as follows.

In the next query, we’ll see

The Latest DEX trades of Uniswap v2

Check out this video, where using the BITQUERY BUILDER the latest DEX trades of the Uniswap v2 protocol has been made in the Bitquery GraphQL IDE. The buyCurrency data along with the sellCurrency data is queried for Uniswap v2 protocol.

Notice, that some fields like buyCurrency and sellCurrency require additional details in order to function as shown below. You will be able to see the available fields which can be queried.

buyCurrency { 
    symbol 
    address 
} 

The GraphQL query used in this example is