Skip to content

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

Open
alchemy-bot wants to merge 2 commits into
mainfrom
docs/solana-account-archive
Open

[docs-agent] Add Solana Account Archive guide, OpenRPC entry, CU pricing row#1492
alchemy-bot wants to merge 2 commits into
mainfrom
docs/solana-account-archive

Conversation

@alchemy-bot

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 8 FAQ entries.
  • New OpenRPC spec at src/openrpc/alchemy/solana-account-archive/solana-account-archive.yaml with three worked Try It 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 + a 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 to confirm

Filed as a fast turnaround on Canaan's ask — flagged here for reviewer input before merge:

  1. Endpoint host: uses the standard solana-mainnet.g.alchemy.com/v2/{apiKey} (matches the doc's "drop-in superset" framing). Easy to swap to a distinct archive host if that's the actual routing.
  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 1, 2026, 12:05 AM

@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".


`jsonParsed` encoding works on historical state: the same decoders a
standard RPC node uses are applied to the historical bytes.
x-compute-units: 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove the hard-coded archive CU price

When this OpenRPC spec is published, x-compute-units: 10 makes the Account Archive endpoint advertise a definitive 10-CU cost for getAccountInfo, but the pricing page added in the same commit says archive lookups with slot, lastUpdateBeforeSlot, or firstUpdateAfterSlot are still TBD. For users reading the generated endpoint reference instead of the pricing page, historical archive calls will appear priced as standard getAccountInfo; drop this field or make both places agree until pricing is finalized.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair catch. Dropped the hardcoded x-compute-units: 10 from the archive getAccountInfo in commit a6d6405 so the spec no longer advertises a definitive CU cost while the pricing page still shows TBD. Once real per-method CU values land in topconfig.yml, we can add the field back with the correct value (and refresh the pricing table in the same PR).

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
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.

1 participant