Balances are updated with a long delay

Hi BitQuery community.

After the token swap I checked the balances in the blockchain explorer, but the data sent by Bitquery GraphQL API v1 is still not updated. They take a very long time to update, approximately 3-5 minutes.
But if I use GraphQL API v2 with the dataset: realtime parameter, the data immediately comes back correct.
It seems to me that by default GraphQL API v1 sends archived data.
How can I force it to ignore the cache and take only actual data from the blockchain or something like dataset parameter in v2

P.S. I can’t use v2, because there are not enough supported networks

For v1 i use the query:

ethereum(network: $network) {
            address(address: {is: $address}) {
                  address
                  balances {
                        currency {
                              address
                              symbol
                              name
                              decimals
                        }
                        value
                  }
                  balance(in: USDT)
            }
        }

Please share the parameters as well. As for delay in v1 APIs, check Bitquery - System Status for any delays for all chains.

ethereum(network: bsc) {
            address(address: {is: "0xbc29B0935C71865Aa859D9f3cBbA76892298b237"}) {
                  address
                  balances {
                        currency {
                              address
                              symbol
                              name
                              decimals
                        }
                        value
                  }
                  balance(in: USDT)
            }
        }

Is it possible to avoid delay in API v1?

Use V2 for 0 delays. V1 does have delays. We will move all chains from v1 to v2 soon.

Divya, thanks for answering!

2 Likes