Created
December 22, 2021 18:59
-
-
Save bumblefudge/3ef406d42576b5c19123a91c7344d25a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As designed by @sbihel as part of review of TZP, December 2021. See Spruce blog post for more details.