Skip to content

feat(types): Expose withContext Support For getProgramAccountsV2#193

Merged
0xIchigo merged 7 commits intodevfrom
feat/expose-with-context
Apr 9, 2026
Merged

feat(types): Expose withContext Support For getProgramAccountsV2#193
0xIchigo merged 7 commits intodevfrom
feat/expose-with-context

Conversation

@0xIchigo
Copy link
Copy Markdown
Collaborator

@0xIchigo 0xIchigo commented Apr 9, 2026

This PR adds context: Option<RpcContext> field to GetProgramAccountsV2Response so that slot metadata is properly deserialized when with_context: true is set in the request config. The config already had with_context: Option<bool>, but the API response was silently dropping the context. We also add new tests for getProgramAccountsV2

Copy link
Copy Markdown

@nathanliow nathanliow left a comment

Choose a reason for hiding this comment

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

LGTM

@0xIchigo 0xIchigo merged commit 334d0c4 into dev Apr 9, 2026
1 check passed
@0xIchigo 0xIchigo deleted the feat/expose-with-context branch April 9, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants