Sample audits · Earlier documentation audits

Helius Gatekeeper documentation

Summary card for this audit: 13 findings after review, 0 High, 6 Medium, 4 Low, 3 Info
Auditedhelius.dev Gatekeeper documentation and its two announcement posts (English), pages fetched 11 October 2026
Date11 October 2026 (audited again; first audit 11 June 2026)
How it ranlocal run on our workstation, full audit, Standard review
Verdict after reviewPass with notes (Fail if a High finding remains after review, otherwise Pass with notes)

Related: Helius docs: pages changed or added since May

0
High after review
6
Medium after review
4
Low after review
3
Info after review
0
excluded on review

Compared with the first audit

The pages were fetched again on 11 October 2026 and audited in full; our first audit used the copy of 11 June 2026 and an earlier method, so its severities are shown as first rated. Translated pages were not fetched this time. Each finding of the first audit (11 June 2026) was checked again against the pages audited now. 12 findings in the first audit; 7 still open (2 found again, 5 not reported again but still present); 1 fixed upstream since; 4 could not be compared. This audit has 13 findings after review, 11 of them new.

First auditFindingRating then (as first rated, earlier method)NowIn this audit
#F-1Malformed JavaScript code recipe in the Enhanced WebSockets announcement blogHighStill open#5
#F-2Internal links in documentation pages return 404 when followed from the published raw-markdown formHighFixed upstream sincenot reported again
#F-3Trailing-slash convention inconsistency across the canonical Gatekeeper endpoint URLMediumStill opennot reported again
#F-4Acronym gTFA used as canonical example but never expandedMediumStill opennot reported again
#F-5Performance benchmark provenance via personal gistMediumStill opennot reported again
#F-6Chinese-language pages link to English-only destinationsMediumCould not be comparednot reported again
#F-7Chinese localization covers documentation pages but not announcement blogsMediumCould not be comparednot reported again
#F-8Announcement blogs excluded from the sitemap and from llms.txtMediumCould not be comparednot reported again
#F-9Documentation-index banner directs to an index that does not enumerate the page itselfMediumCould not be comparednot reported again
#F-10Cross-document supported-endpoints list wording varianceLowStill opennot reported again
#F-11Rollout-plan relative-temporal anchor decays silentlyLowStill open#4
#F-12WebSocket recipe in the canonical reference document lacks production-grade event handlersLowStill opennot reported again
How to read this page

Each finding keeps the number it has in the audit report. The rating shown first is the one after review; the first automated rating is listed with it. 11 findings were first rated Medium or High; 6 of them are Medium or High after review. Text marked "From the report" is quoted from the audit report; fixes are suggestions and were not tested. Locations are paths inside the fetched copy of the documentation.

Medium after review (6)

5. Medium Quickstart WebSocket script does not parse
First rating: Medium · Reviewed rating: Medium · Review: could not be settled · also in the first audit (#F-1)
Location: blog/introducing-next-generation-enhanced-websockets.md:152
From the report
Evidence
const
RAYDIUM_LAUNCHPAD_PROG
= '
Why it matters

The single-quoted string that holds the program address is split across several lines. JavaScript does not allow a line break inside a quoted string, so the script stops with a SyntaxError before it runs. This is the only runnable example on the page, and anyone who copies it gets a script that doesn't work.

Suggested fix, not tested

Write the declaration on one line: const RAYDIUM_LAUNCHPAD_PROG = 'LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj';. Lines 169–171 are split the same way; that part still parses, but tidy it too. Copy the sample from the rendered page and run it once before publishing.

Review: Lines 152-156 are const / RAYDIUM_LAUNCHPAD_PROG / = ' / LanMV9s... / ';. A single-quoted string cannot span lines, so this is a SyntaxError. Lines 169-171 are split too, but that part parses. A copied script fails at once and plainly, so no loss follows.

6. Medium Pool creator and mint read from guessed positions in the account list
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: blog/introducing-next-generation-enhanced-websockets.md:204
From the report
Evidence
Creator: keys[1],  // From IDL: accounts[1] is creator
BaseMint: keys[7], // From IDL: base_mint is around index 7 in initialize accounts
Why it matters

The sample reads accounts by fixed positions in the transaction's full account list, but positions in an instruction's account list are not the same as positions in that list. The comment even says the index is a guess ("around index 7"). The filter at line 198, log.includes('Instruction: Initialize'), also matches unrelated token-program logs such as InitializeAccount and InitializeMint. As a result, the script can print the wrong creator and mint, with no error to show it.

Suggested fix, not tested

Find the launchpad program's own instruction in the parsed transaction and resolve the creator and mint through that instruction's account indexes. Identify the instruction by its program and instruction type, not by a substring of the log text.

Review: keys is the transaction's full account list (201). The comment on 205 says "around index 7", which admits a guess. The substring filter at 198 (Instruction: Initialize) also matches other token-program logs such as InitializeAccount. The output can be wrong with no error. I could not check the on-chain layout.

7. Medium Example promises gapless delivery that the page itself says the product does not give
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: blog/introducing-next-generation-enhanced-websockets.md:228
From the report
Evidence
The following script will stream a table of newly launched pools to the console, ensuring gapless delivery, even under high load.
Why it matters

The same page says Enhanced WebSockets are for non-critical streams (lines 76 and 117) and lists "gapless delivery with automatic replay" as a reason to use LaserStream instead (line 91). The script also has no reconnect or replay. A reader who builds a trading flow on this promise can miss events without noticing.

Suggested fix, not tested

Remove the gapless-delivery claim or state the real guarantee, and point readers who need continuity to the product that provides it.

Review: Line 228 says "ensuring gapless delivery, even under high load". Line 91 lists "gapless delivery with automatic replay" as a reason to use LaserStream instead. Lines 76 and 117 call Enhanced WebSockets non-critical. The script has no replay.

8. Medium Headline latency figures contradict the published measurements
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: blog/introducing-gatekeeper.md:69
From the report
Evidence
...may see response times of \~26 ms with a new connection and \~0.5 ms with a reused connection.

(line 6 claims "sub-millisecond responses"; line 91: | Total Time | 0.004533s | 0.035328s | −30.80ms (7.8×) |)

Why it matters

The page's own table shows about 4.5 ms for a reused connection, not 0.5 ms, and nothing on the page supports the sub-millisecond claim. The table rows are also cumulative curl timestamps, not separate durations for each phase, but they are labelled as phases. Readers who compare providers on these numbers are misled.

Suggested fix, not tested

Make the prose match the table (about 27 ms cold, about 4.5 ms warm), or publish a measurement that supports 0.5 ms. Say that the figures come from a single getSlot sample, and label the timings as cumulative.

Review: Line 69 says "~0.5 ms with a reused connection". The table's own warm total (line 91) is 0.004533s, about 4.5 ms. Line 6 says "sub-millisecond", which the table does not support. I checked the 4.6× and 7.8× ratios and the differences, and they are arithmetically consistent.

10. Medium WebSocket sample uses an event API the standard WebSocket object does not have
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: docs/gatekeeper/overview.md:131
From the report
Evidence
const ws = new WebSocket(`wss://beta.helius-rpc.com?api-key=${YOUR_API_KEY}`);

ws.on('open', () => {
Why it matters

.on(...) comes from the Node ws package, but the sample never imports it. Browsers and Node's built-in WebSocket have no .on method, so the sample throws a TypeError at that line. YOUR_API_KEY is also never defined.

Suggested fix, not tested

Add import WebSocket from 'ws'; and say the sample is for Node, or use ws.addEventListener('open', …) for browsers. Read the key from an environment variable, as the WebSocket blog post does.

Review: Line 131 does new WebSocket(...) and line 133 calls ws.on('open', ...) with no import and no note that it is for Node's ws package. The built-in WebSocket has no .on, so it throws a TypeError. The YOUR_API_KEY point is weak, because every sample on the page uses the same placeholder.

12. Medium Rollout flag treats any non-empty value, including "false", as on
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: docs/gatekeeper/migration-guide.md:123
From the report
Evidence
const endpoint = process.env.USE_GATEKEEPER
  ? "https://beta.helius-rpc.com"
  : "https://mainnet.helius-rpc.com";
Why it matters

Environment variables are always strings, so USE_GATEKEEPER=false or USE_GATEKEEPER=0 still selects the beta endpoint. The page offers this as the "safer migration" switch, but setting it to off does not turn it off. The percentage-rollout sample at line 135 picks again on every evaluation, so a given user or process is not consistently on one endpoint.

Suggested fix, not tested

Compare against an explicit value, for example process.env.USE_GATEKEEPER === 'true'. For the percentage rollout, either assign by a stable key, such as a user ID, so each user stays on one endpoint, or say that the choice is made again on every evaluation.

Review: Line 123 is process.env.USE_GATEKEEPER ? beta : mainnet. Any non-empty string, including "false" or "0", is true. The page offers this as the "safer migration" switch, so switching it off does not work. The percentage rollout at 135 is a secondary point and only an inference.

Low after review (4)

3. Low Heartbeat timer is never cleared when the socket closes
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: blog/introducing-next-generation-enhanced-websockets.md:183
From the report
Evidence
setInterval(() => {
  if (ws.readyState === WebSocket.OPEN) {
    ws.send(JSON.stringify({ jsonrpc: '2.0', id: Date.now(), method: 'ping' }));
Why it matters

The page presents this script as an example "in a production setting", and line 24 says reconnection logic is required. However, the ping interval is created on open, and nothing ever clears it. Once someone adds the reconnect loop the page recommends, every reconnection adds another timer. The script also has no reconnect logic, even though the page says it is needed.

Suggested fix, not tested

Keep the interval handle and call clearInterval in the close handler. Create one timer per connection. Either add the reconnect logic or drop the "production setting" wording.

Review: setInterval is created inside the open handler (183-187) and no handle is kept. The close handler (215-217) only logs. After a close the timer keeps running, which also keeps the Node process alive. Line 145 says "in a production setting". Line 24 says reconnection logic is needed, and the script has none.

9. Low "Single entry point for all requests" contradicts the supported-features list
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: blog/introducing-gatekeeper.md:117
From the report
Evidence
- A single entry point for all RPC methods, webhooks, and APIs
Why it matters

Webhooks don't appear in any supported-features list. LaserStream is explicitly not supported (line 133), and neither are Devnet or Testnet. The overview makes similar blanket claims: "a single, unified entry-point for all requests" (line 11) and "All existing RPC methods work identically" (line 166). Integrators who rely on these claims will point traffic at an endpoint that does not serve it.

Suggested fix, not tested

Word the scope claims to match the actual support list, and put the exclusions next to the claim instead of only in a later note.

Review: Line 117 does say "all RPC methods, webhooks, and APIs", and no list mentions webhooks, so that part stands. But the exclusions are on the same pages: LaserStream at introducing-gatekeeper.md:133 and overview.md:46-48, and Devnet and Testnet at overview.md:270. Line 166 ("All existing RPC methods work identically") is not contradicted, because LaserStream is gRPC and not an RPC method. This is a wording problem, with no wrong result shown.

11. Low Enhanced subscription sample omits the plan requirement
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: docs/gatekeeper/overview.md:31
From the report
Evidence
Your existing API key works without any additional changes.

(the WebSocket sample at line 137 uses method: 'transactionSubscribe'; the WebSocket blog post, line 134, says "Enhanced WebSockets are available for Business plans and above")

Why it matters

The overview's WebSocket sample uses an enhanced subscription method that, according to the blog, needs a Business plan or higher. The overview does not mention this. Users on lower plans who copy the sample get authorization errors, and the migration guide's troubleshooting section does not explain them.

Suggested fix, not tested

State the plan requirement next to the transactionSubscribe sample and add the resulting error to the troubleshooting section.

Review: The omission is real: the sample at 137 uses transactionSubscribe, ...enhanced-websockets.md:134 says Business plans and above, and the overview never says so. But the "authorization errors" are inferred, and the vendor's plan check could not be checked from the pages. The cited line 31 is context; the sample is at 137.

13. Low API key in the URL recommended for browser and mobile use without a warning
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: blog/introducing-next-generation-enhanced-websockets.md:66
From the report
Evidence
empower frontend developers to integrate high-fidelity streams directly into browsers, React apps, and mobile clients.

(line 139: wss://atlas-mainnet.helius-rpc.com/?api-key=<YOUR_API_KEY>)

Why it matters

The key is passed in the URL, and the page encourages connecting directly from browsers and mobile apps. Any key shipped to a client is visible to every end user and can leak through logs, proxies and history. Anyone who copies it can then use up the customer's paid quota.

Suggested fix, not tested

Warn that a key in client-side code is public. For frontends, recommend a server-side relay or a key restricted by origin and method. Apply the same note to the WebSocket samples in the migration guide (line 91) and the overview (line 131).

Review: Line 66 does say "directly into browsers, React apps, and mobile clients", and lines 139 and 91 and overview 131 put the key in the URL. No page tells a reader to ship the key in client code. The missing warning is a hardening gap.

Info after review (3)

1. Info Instruction to automated readers embedded in the Gatekeeper overview page
First rating: High · Reviewed rating: Info · Review: rated too high · new in this audit
Location: docs/gatekeeper/overview.md:1
From the report
Evidence
> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
Why it matters

The page opens with a directive aimed at AI agents and other automated readers. It tells them to fetch an external resource and change how they explore. Any tool that processes these pages with an AI model, such as a code assistant, a retrieval pipeline or an auditor, may follow it. That moves control of the tool's behaviour to a remote file the reader never chose to trust. This looks like the standard notice the documentation platform generates, so it is probably benign, but it is still an instruction inside content. We did not follow it.

Suggested fix, not tested

Remove the banner from content that is meant to be processed as data, or mark it clearly as generated boilerplate. If you want to offer the index, put a plain link in the page navigation instead of an imperative sentence addressed to the reader.

Review: The 3 banner lines are at overview.md:1-3 as quoted. It is a link to the vendor's own llms.txt, and the report itself says it is "probably benign" and the platform's standard notice. It makes nobody lose money or data and ships no exploitable integration. A HIGH needs a defect in what the docs teach, and this is not one.

2. Info Instruction to automated readers embedded in the migration guide
First rating: High · Reviewed rating: Info · Review: rated too high · new in this audit
Location: docs/gatekeeper/migration-guide.md:1
From the report
Evidence
> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
Why it matters

This is the same directive as in finding 1, repeated on this page, with the same risk. We did not follow it.

Suggested fix, not tested

The same as finding 1. Strip it once in the page template so it disappears from every page.

Review: Lines 1-3 are the same banner. It is a duplicate of finding 1, and the report's own fix says to strip it once in the template.

4. Info Default switch announced without a retirement date for the old endpoint that rollback depends on
First rating: Low · Reviewed rating: Info · Review: rated too high · also in the first audit (#F-11)
Location: docs/gatekeeper/overview.md:232
From the report
Evidence
* **Coming Months**: Gradual migration of all traffic to Gatekeeper as the default

(rollback at line 205: const url = "https://mainnet.helius-rpc.com?api-key=YOUR_API_KEY";)

Why it matters

The page promises two things: that customers can roll back to the current endpoint, and that all traffic will eventually move to Gatekeeper. It never says whether the current endpoint will be retired, when, or how long rollback stays available. Customers who build a rollback plan on it don't know how long the plan is valid.

Suggested fix, not tested

Say in what order things happen: the gateway ships alongside the current endpoint, clients move over, and then the old path is retired. Give dates or other criteria customers can check for each step, and say how long rollback to mainnet.helius-rpc.com stays available.

Review: Line 232 ("Coming Months") has no date, which is true. The page never says the old endpoint will be retired, so that part is inferred. FAQ line 266 says "We'll notify all users before making any changes to the default Helius endpoints", which the report does not mention.

Want this for your code?

Upload a ZIP or link a public GitHub repo, pick the areas and the depth, and get findings by severity with fixes.