Skip to content

Feat: fetch historical-idls using anchor cli#3992

Open
Otter-0x4ka5h wants to merge 8 commits intosolana-foundation:masterfrom
Otter-0x4ka5h:pr-3962
Open

Feat: fetch historical-idls using anchor cli#3992
Otter-0x4ka5h wants to merge 8 commits intosolana-foundation:masterfrom
Otter-0x4ka5h:pr-3962

Conversation

@Otter-0x4ka5h
Copy link
Copy Markdown
Contributor

Added multiples options to anchor idl fetch command which uses to fetch historical idls of the program id.

--slot : Get IDL version that existed at or before slot X
--before : Get all IDL version that before DATE
--after : Get all IDL versions from DATE onwards
--out-dir : Save IDL versions at give directory.

Closes #3941

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 16, 2025

Someone is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@jamie-osec jamie-osec added enhancement New feature or request cli labels Oct 29, 2025
@0x4ka5h 0x4ka5h requested a review from jamie-osec October 30, 2025 12:50
@nutafrost nutafrost moved this to In Progress in Anchor 1.0 Oct 30, 2025
@jamie-osec
Copy link
Copy Markdown
Collaborator

How long does this take to run in practice on mainnet? Maybe some kind of progress indicator would be good if it's more than a couple seconds

@0x4ka5h
Copy link
Copy Markdown
Collaborator

0x4ka5h commented Oct 30, 2025

@jamie-osec thanks for the quick review.

Currently it didnt take much time on devnet, but yeah we can add that one. will update and lyk

Copy link
Copy Markdown
Collaborator

@jamie-osec jamie-osec left a comment

Choose a reason for hiding this comment

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

LGTM

@nutafrost nutafrost moved this from In Progress to Security Review Required in Anchor 1.0 Nov 4, 2025
@jamie-osec jamie-osec moved this from Security Review Required to Security Review Done in Anchor 1.0 Nov 12, 2025
@jamie-osec jamie-osec removed the Merge label Dec 4, 2025
@jamie-osec
Copy link
Copy Markdown
Collaborator

@Otter-0x4ka5h Can you please fix the conflicts?

@0x4ka5h 0x4ka5h added the Merge label Dec 7, 2025
@Otter-0x4ka5h Otter-0x4ka5h force-pushed the pr-3962 branch 2 times, most recently from 6283309 to 3095b8b Compare February 24, 2026 12:38
its-bash33r-here and others added 8 commits February 24, 2026 18:21
… IDL versions

- Implement complete CLI command with all filtering options
- Add advanced transaction parsing for Solana transaction types
- Support slot-based and date-based filtering
- Add comprehensive error handling and user feedback
- Include detailed logging for debugging
- Support multiple output formats (stdout, files, directories)
- Test with real Jupiter program transactions

Fixes solana-foundation#3941
@nutafrost nutafrost removed this from Anchor 1.0 Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli enhancement New feature or request Merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add anchor idl fetch-historical command for fetching historical IDL versions

6 participants