GraphQL Client
You can use any GraphQL client. Here is an example with Apollo Client:
import { ApolloClient, InMemoryCache, gql } from '@apollo/client';
const client = new ApolloClient({
uri: 'https://api.sismo.io',
cache: new InMemoryCache(),
});
const query = gql`
query {
mintedBadges {
balance
tokenId
badge {
name
}
}
}`
const result = await client.query({ query });