I got issue in running graphql: ClientError: Cannot query field "Solana" on type "RootQuery".:

const query = gql`
  query {
    Solana {
      BalanceUpdates(
        orderBy: { descendingByField: "BalanceUpdate_balance_maximum" }
        limit: { count: 4 }
        where: {
          BalanceUpdate: {
            Currency: {
              MintAddress: { is: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB" }
            }
          }
          Block: { Time: { after: "2024-12-31T03:33:33Z" } }
        }
      ) {
        BalanceUpdate {
          Account {
            Owner
          }
          balance: PostBalance(maximum: Block_Slot)
        }
      }
    }
  }
`;

I run the sample query the above, but got the following error.
Error fetching data: ClientError: Cannot query field "Solana" on type "RootQuery".:

Can anyone know how to fix it?

1 Like

Wrong url. It has to be https://streaming.bitquery.io/eap instead of
https://streaming.bitquery.io/graphql

2 Likes