Skip to content

Instantly share code, notes, and snippets.

@bumblefudge
Created December 22, 2021 18:59
Embed
What would you like to do?
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