Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

token accounts graphql query #10927

Merged
merged 2 commits into from
May 12, 2022
Merged

Conversation

deepthiskumar
Copy link
Member

@deepthiskumar deepthiskumar commented May 11, 2022

A new graphql end point to query accounts for a token Id

tokenAccounts(tokenId: "wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf") {
    publicKey
  }

Closes #10738

@deepthiskumar deepthiskumar requested a review from a team as a code owner May 11, 2022 16:49
@deepthiskumar deepthiskumar added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label May 11, 2022
[ arg "tokenId" ~doc:"Token ID to find accounts for"
~typ:(non_null Types.Input.token_id_arg)
]
~resolve:(fun { ctx = coda; _ } () token_id ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use mina instead of coda?

@@ -2107,8 +2107,7 @@ module Types = struct
~coerce:Signature_lib.Private_key.of_yojson

let token_id_arg =
scalar "TokenId"
~doc:"String representation of a token's UInt64 identifier"
scalar "TokenId" ~doc:"Base58Check representation of a token's identifier"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be just "... of a token identifier"?

@deepthiskumar deepthiskumar merged commit ea6c7ee into develop May 12, 2022
@deepthiskumar deepthiskumar deleted the fix/token_accounts_graphql branch May 12, 2022 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new graphql endpoint to fetch token accounts
3 participants