Skip to content

Instantly share code, notes, and snippets.

@bumblefudge
Created December 22, 2021 18:59
Show Gist options
  • Save bumblefudge/3ef406d42576b5c19123a91c7344d25a to your computer and use it in GitHub Desktop.
Save bumblefudge/3ef406d42576b5c19123a91c7344d25a to your computer and use it in GitHub Desktop.
curl 'https://indexer.tzprofiles.com/v1/graphql' -X POST -H 'x-hasura-admin-secret: dEaDbEEF' --data-raw '{"query":"query MyQuery {\n tzprofiles(distinct_on: account, limit: 100000) {\n valid_claims\n account\n }\n}\n","variables":null,"operationName":"MyQuery"}' > /tmp/hasura.json
cat /tmp/hasura.json | jq '.data.tzprofiles[] | .account as $account | select(.valid_claims[][1] | contains($account) | not)'
cat /tmp/hasura.json | jq '.data.tzprofiles[] | .account as $account | select(.valid_claims[][1] | contains("did:web:tzprofiles.com") or contains("BasicProfile") or contains("EthereumAddressControl") or contains("EthereumControl") | not)'
@bumblefudge
Copy link
Author

As designed by @sbihel as part of review of TZP, December 2021. See Spruce blog post for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment