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

refactor(experimental): add getTokenAccountsByOwner method #1525

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

mcintyre94
Copy link
Collaborator

This PR adds the getTokenAccountsByOwner RPC function

The structure and behaviour is exactly the same as getTokenAccountsByDelegate, it just queries for token accounts owned by instead of delegated to a particular address

In this PR I've also refactored out the common aspects of the output data in getAccountInfo, getMultipleAccounts, getProgramAccounts, getTokenAccountsByDelegate and getTokenAccountsByOwner, which removes a lot of repetition!

Ref #1449

@buffalojoec buffalojoec merged commit b787f32 into solana-labs:master Aug 16, 2023
6 checks passed
Readonly<{
encoding: 'jsonParsed';
}>
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.78.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants