Skip to content

[docs-agent] Add Solana Account Archive guide, OpenRPC entry, CU pricing row - #1492

Merged
deepakbnsl merged 8 commits into
mainfrom
docs/solana-account-archive
Aug 3, 2026
Merged

[docs-agent] Add Solana Account Archive guide, OpenRPC entry, CU pricing row#1492
deepakbnsl merged 8 commits into
mainfrom
docs/solana-account-archive

Conversation

@alchemy-bot

@alchemy-bot alchemy-bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the initial docs for Solana Account Archive, Alchemy's historical account state service. Answers getAccountInfo for any Solana account at any historical slot from July 2025 onward, using the same request and response shapes as standard Solana RPC.

The archive extends getAccountInfo with three mutually-exclusive parameters, also mutually exclusive with minContextSlot:

Parameter Semantics
slot State as of slot S (inclusive: latest write with slot ≤ S)
lastUpdateBeforeSlot Most recent write strictly before S
firstUpdateAfterSlot First write strictly after S

Omit all three for a normal latest-state read: the archive is a drop-in superset.

Changes

  • New guide + FAQ page at content/api-reference/solana/account-archive.mdx, sourced from the internal Notion doc. Covers the API surface, cursor iteration pattern, backfill-via-replay architecture, trust model, and FAQ entries.
  • Standard getAccountInfo reference extended in src/openrpc/chains/_components/solana/{methods,account}.yaml: the three archive parameters are documented on the original endpoint page (the archive is served on the standard endpoint, so no separate spec/endpoint page), with a worked historical Try It example at slot 400,000,000.
  • historical-account-state.mdx removed: the page taught workarounds for the absence of a historical getAccountInfo primitive, which the archive now provides directly. Its slug 301-redirects to the archive guide, and the still-unique guidance (program-wide capture via Yellowstone, pre-coverage balance reconstruction) moved into the archive guide FAQ.
  • docs.yml: Solana Account Archive guide page added under the Solana section (plain page, no endpoint sub-section).
  • compute-unit-costs.mdx: new Solana: Account Archive block with TBD rows and a note that final per-method pricing is pending.

Semantics verified against prod

All examples are real responses from the live endpoint, and the documented behavior was tested against it:

  • Cursor walks terminate only with error -32020; a null value mid-walk is a deletion write (the account did not exist as of context.slot), and the walk continues from that slot.
  • Slot 310M (used in earlier drafts) is below the coverage floor (~353.9M); examples use slot 400M.
  • Example account is the top USDC token account (3emsAVdmGKERbHjmGfQ6oZ1e35dkf5iYcS6U4CPKFVaa), with real jsonParsed/base64 payloads, real context.slot cursor values, and the real rentEpoch sentinel.

Assumptions to confirm

  1. Endpoint host: uses the standard solana-mainnet.g.alchemy.com/v2/{apiKey} (matches the doc's "drop-in superset" framing and verified working).
  2. Chain scope: mainnet only for v1 (no solana-devnet server entry). Add if the archive is available on devnet/testnet.
  3. Access model: no preview / private-beta callout on the guide. Add one if this ships behind an allowlist.
  4. CU pricing: left as TBD per Canaan's original message ("temporary for now if you dont have per method CU pricing"). Will fill in once topconfig.yml values land.

Validation

  • pnpm run generate:rpc → ✅
  • pnpm run validate:rpc → ✅ Successfully validated json-rpc OpenRPC specs
  • pnpm run lint → 0 errors (6 pre-existing baseline warnings unrelated to this diff)

Linear

DOCS-168

Requested by

@clinder777 (via Slack thread)

…ing row

Adds the initial docs for Solana Account Archive: an extension of `getAccountInfo` with three new mutually-exclusive parameters (`slot`, `lastUpdateBeforeSlot`, `firstUpdateAfterSlot`) for point-in-time and cursor-based historical reads. Coverage extends back to July 2025 with no pruning.

Changes:

* New guide + FAQ page at content/api-reference/solana/account-archive.mdx sourced from the internal Notion doc.

* New OpenRPC spec at src/openrpc/alchemy/solana-account-archive/solana-account-archive.yaml with three worked examples (point-in-time, walk-backward, walk-forward) and error -32020 documented for cursor-past-coverage.

* docs.yml: new 'Solana Account Archive' section under Solana with the guide page + flattened endpoints entry.

* compute-unit-costs.mdx: new 'Solana: Account Archive' block with TBD rows and a note that final per-method pricing is pending.

Assumptions flagged for reviewer confirmation:

* Endpoint host uses the standard `solana-mainnet.g.alchemy.com/v2/{apiKey}` (drop-in with normal Solana calls). Easy to switch to a distinct archive host if that's the actual routing.

* Chain scope: mainnet only for v1 (no devnet/testnet server entries). Add a devnet server if the archive is available there.

* No preview / private-beta callout on the guide. Add one if this ships behind an allowlist.

* CU pricing left as TBD per the original ask ("temporary for now if you dont have per method CU pricing").

Refs DOCS-168

Requested-by: @clinder777
@alchemy-bot
alchemy-bot requested a review from a team as a code owner July 31, 2026 22:09
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Aug 3, 2026, 1:36 PM

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf6f434e94

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/openrpc/alchemy/solana-account-archive/solana-account-archive.yaml Outdated
alchemy-bot and others added 7 commits August 1, 2026 00:04
Codex flagged the inconsistency between the OpenRPC spec advertising x-compute-units: 10 and the pricing page showing TBD for the three archive params. Since Canaan's original ask was to leave pricing as TBD until topconfig.yml values land, remove the hardcoded CU value from the spec so both surfaces agree.

Refs DOCS-168

Requested-by: @clinder777
… against prod

Verified against the live endpoint: cursor walks terminate only with -32020
(a null value mid-walk is a deletion write, not end-of-history), slot 310M is
below the coverage floor (~353.9M) so examples move to slot 400M, and all
example responses are now real output for the top USDC token account. Also
drops the excluded-accounts sentence (kept in FAQ) and the unfinalized-tier
parenthetical, matching the internal Notion doc.

Co-authored-by: Cursor <cursoragent@cursor.com>
…erence

Drops the separate solana-account-archive OpenRPC spec and nav section: the
archive is served on the standard endpoint, so the slot /
lastUpdateBeforeSlot / firstUpdateAfterSlot params now live on the original
getAccountInfo reference page, with the guide kept as a plain page. Also
repositions the historical-account-state guide to lead with the Account
Archive as the direct primitive, keeping Yellowstone capture and transaction
replay for program-wide sets and pre-coverage history.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ount Archive

The page taught workarounds for the absence of a historical getAccountInfo
primitive, which the Account Archive now provides directly. Its slug
redirects to the archive guide, and the still-unique guidance (program-wide
capture via Yellowstone, pre-coverage balance reconstruction) moves into the
archive guide's FAQ.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@deepakbnsl
deepakbnsl merged commit 5aa38a6 into main Aug 3, 2026
10 of 11 checks passed
@deepakbnsl
deepakbnsl deleted the docs/solana-account-archive branch August 3, 2026 16:46
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.

3 participants