
| Audited | helius.dev documentation (English pages and API specifications), pages fetched 11 October 2026 |
|---|---|
| Date | 11 October 2026 (audited again; first audit 31 May 2026) |
| How it ran | local run on our workstation, full audit, Standard review |
| Verdict after review | Fail (Fail if a High finding remains after review, otherwise Pass with notes) |
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 28 May 2026 and an earlier method, so its severities are shown as first rated. Each finding of the first audit (31 May 2026) was checked again against the pages audited now. 21 findings in the first audit; 16 still open (4 found again, 12 not reported again but still present); 1 fixed upstream since; 1 not in the pages, so the first audit was wrong there; 3 could not be compared. This audit has 154 findings after review, 150 of them new.
| First audit | Finding | Rating then (as first rated, earlier method) | Now | In this audit |
|---|---|---|---|---|
| #F-1 | Sender API regional endpoints transmit signed transactions over plaintext HTTP, no security-tradeoff note | Medium | Still open | #88 |
| #F-2 | AWS API Gateway internal metadata leaked into the public Webhooks OpenAPI spec | High | Still open | #109 |
| #F-3 | Merged OpenAPI catalog scope ambiguous, and Enhanced API has no standalone spec | Medium | Still open | not reported again |
| #F-4 | info.title: 8 distinct naming patterns across 8 standalone specs | Medium | Still open | not reported again |
| #F-5 | info.version inconsistency across OpenAPI specs | Medium | Still open | not reported again |
| #F-6 | OpenAPI standard-version inconsistency: 7 at 3.1.0, 2 at 3.0.3 | Medium | Still open | not reported again |
| #F-7 | Three different hosts cited for the Webhooks API across documentation channels | High | Still open | #70 |
| #F-8 | Path versioning inconsistency across REST surfaces (v0 vs v1) | Medium | Still open | not reported again |
| #F-9 | Top-level security declaration inconsistent across specs | Medium | Still open | not reported again |
| #F-10 | DAS spec uses zero components.schemas; all response schemas inlined | Medium | Still open | not reported again |
| #F-11 | Top-level llms.txt enumerates about 24 URLs against 659 pages | Medium | Fixed upstream since | not reported again |
| #F-12 | Section-level llms.txt files advertised in sitemap.xml (14 entries) but not all reachable in the mirror | Medium | Not in the code: the first audit was wrong here | not reported again |
| #F-13 | Enhanced API is billable and in the merged catalog, but has no standalone OpenAPI spec | Medium | Could not be compared | not reported again |
| #F-14 | Documentation-index banner positioned before page H1 across 658 of 659 documents | Medium | Still open | #1 |
| #F-15 | Two Chinese-language pages return 404 while English equivalents are present | Medium | Could not be compared | not reported again |
| #F-16 | Onboarding table, linkset and OpenAPI info.title disagree on surface naming | Medium | Still open | not reported again |
| #F-17 | Admin API is a single-endpoint surface vs agent-doc framing of "project usage, billing" | Medium | Still open | not reported again |
| #F-18 | JSON-RPC method discrimination via URL fragments in OpenAPI paths | Medium | Still open | not reported again |
| #F-19 | Pervasive Mintlify JSX wrappers across documentation content | Low | Still open | not reported again |
| #F-20 | _llms.txt and _llms_v2.txt are byte-identical | Low | Could not be compared | not reported again |
| #F-21 | Three-format OpenAPI source-of-truth ambiguity (GitHub YAML, helius.dev JSON, inline YAML) | Low | Still open | not reported again |
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. 123 findings were first rated Medium or High; 68 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.
High after review (4)
api-reference/webhooks/llms.txt:44From the report
Evidence: - 24-hour retry with exponential backoff, versus faqs/webhooks.md:62-64: "retry up to 3 times with a 1-second gap … the event is permanently lost".
integrators who size their outage handling on 24 hours will permanently lose every event that arrives during a downtime longer than a few seconds.
make one policy authoritative and regenerate the summary from it. Tell readers to persist each event before acknowledging it, and document how to reconcile gaps.
Review: llms.txt:44 "24-hour retry with exponential backoff" versus faqs/webhooks.md:62-64 "up to 3 times with a 1-second gap ... permanently lost". Following the summary loses events.
api-reference/authentication.md:190From the report
RUN --mount=type=secret,id=helius_key \
cat /run/secrets/helius_key > /app/api_key.txt
the key stays in an image layer that anyone who can pull the image can read.
inject the key at runtime, and never write a mounted secret to disk.
Review: RUN --mount=type=secret,id=helius_key then cat … > /app/api_key.txt (190-191), offered as the "Docker secrets" safe option. The file persists in the layer.
wallet-api/transfers.md:369From the report
const match = recentTransfers.find(t =>
Math.abs(t.amount - expected.amount) < 0.01 &&
t.counterparty === expected.from
matched transfers are never consumed, so two same-amount orders from one payer are both marked "Received" after a single payment, and goods ship unpaid. The tolerance also accepts short payments, only one page of 50 transfers is checked, and finality is ignored.
consume each matched signature, compare exact integer amounts, require finality, and page back to the order date.
Review: find (369-371) never consumes a match, so two same-amount orders from one payer both read "Received" (377). The < 0.01 tolerance accepts short payments, and finality is not checked. Page size 50 not checked.
sending-transactions/guides/land-trades-with-sender.md:115From the report
Evidence: for (let i = 0; i < 30; i++) { … } throw new Error('Not confirmed within 30s: rebuild with a fresh blockhash and resend');
the original blockhash stays valid for about 60–90 seconds, so the first trade can still land after the replacement is sent.
wait until the block height passes the original's lastValidBlockHeight before rebuilding, or resend the same signed bytes.
Review: The loop at 115-124 throws "rebuild with a fresh blockhash and resend". Line 147 says rebuild instead of resending stale. optimizing-transactions.md:318 says a blockhash lasts about a minute, and :310 warns both transactions can land.
Medium after review (64)
das/get-tokens.md:65From the report
Evidence: programId: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', under the heading "List all token accounts owned by a wallet". The page says it covers "SPL and Token-2022".
the call returns only original-program accounts, so Token-2022 holdings are silently missing.
query both token programs, or point to getAssetsByOwner. State that a single-program query misses the other program's accounts.
Review: The heading "List all token accounts owned by a wallet" at line 52 is followed by programId: 'TokenkegQ...' at line 65, while line 13 says the page covers "SPL and Token-2022".
laserstream/guides/decoding-transaction-data.md:691From the report
// Extract user (first account is typically the fee payer/user)
const user = accountKeys[0];
const inputChange = tokenChanges.find(change => change.change < 0);
with relayers or sponsored fees the fee payer is not the trader. find takes the first changed account of any owner, which can be a pool vault. The loop at line 734 iterates only the post balances, so a swap whose input account was closed (typical for wrapped SOL) is dropped.
derive the user from the token-balance owner whose balance went down and up. Iterate the union of pre and post entries keyed by owner and mint, and use BigInt for amounts.
Review: const user = accountKeys[0] at line 691, .find(change => change.change < 0) at line 699. The loop runs over postBalances only, so a closed wrapped-SOL account is dropped.
staking/how-to-stake-with-helius-programmatically.md:134From the report
Evidence: await helius.connection.confirmTransaction(signature, 'confirmed'); return { signature, ...
confirmation resolves even when the transaction failed on-chain. The quick start prints "Staked!" right after sending. The batch version (line 402) turns errors into null, which Promise.allSettled counts as success.
check value.err after confirming, return explicit success or failure per wallet, and count only real signatures.
Review: Line 134 confirmTransaction(...) with no err check, and line 101 prints "Staked!". The batch path returns null on error (about line 402), which allSettled counts as fulfilled.
rpc/websocket.md:408From the report
Evidence: resubscribeAll() { … for (const [id, sub] of this.subscriptions) { this.sendSubscription(id, sub.method, sub.params); }
updates sent while the client was disconnected are lost, and local copies stay stale. The same happens in rpc/websocket/quickstart.md:366 and rpc/websocket/stream-pump-amm-data.md:96.
on every reconnect, re-read the current state (account reads, or signatures since the last one seen) before trusting new notifications.
Review: resubscribeAll() at websocket.md:408-413 only re-sends. The same pattern is at quickstart.md:366, which sits under "Production-Ready Implementation" (line 301).
rpc/websocket/quickstart.md:493From the report
Evidence: this.balances = new Map(); … this.balances.set(\${walletAddress}:SOL\, solBalance);
the portfolio value is wrong from start-up until every asset has changed once, and again after each reconnect.
seed the balances from RPC at start and after each reconnect.
Review: this.balances = new Map() at line 494. There is no getBalance or getTokenAccounts call in the file.
rpc/websocket/quickstart.md:713From the report
Evidence: return () => { if (manager) manager.disconnect(); };
WebSocketManager has no disconnect, so unmounting throws and the socket leaks. Every remount, including StrictMode's double effect, adds another connection.
implement disconnect() (unsubscribe, clear timers, close the socket) and keep the manager in a ref.
Review: Line 714 manager.disconnect(). class WebSocketManager (line 306) has no disconnect; grep finds only this one use.
api-reference/authentication.md:220From the report
const retryAfter = response.headers.get('Retry-After');
await new Promise(resolve => setTimeout(resolve, retryAfter * 1000));
return makeRequest(url, data); // Retry
without the header the delay is 0, so the client retries forever against a throttled API. The Python tab and rpc/optimization-techniques.md:416 (while (true)) have the same problem.
cap the attempts, default the delay, and use jittered exponential backoff.
Review: Lines 221-224. A missing header gives null * 1000 = 0 and the function recurses without limit. The loop at optimization-techniques.md:416 is while (true) (it does back off).
parsed-streams/quickstart.md:200From the report
Evidence: "rawTokenAmount": 183985, … "amount": 1000000. Line 251 itself says u64 values "do not fit in JavaScript numbers".
JavaScript consumers silently lose precision above 2^53. parsed-events/parsed-response.md:59 types rawTokenAmount as number.
send every u64 amount as a decimal string, as the instruction arguments already are.
Review: "rawTokenAmount": 183985 at line 200. parsed-response.md:59 types it number. Line 251 itself says u64 "do not fit in JavaScript numbers".
_openapi/enhanced-api.json:2500From the report
Evidence: "tokenAmount": { "type": "number" }; elsewhere "amount": { "type": "string" } and "amount": { "type": "integer" }.
use one lossless encoding (a decimal string) for every u64 amount, and keep the float as a separate display field.
Review: Token amounts are number (line 2501), string (line 3255) and number (line 3295). Lamport amounts are integer.
rpc/websocket/quickstart.md:350From the report
Evidence: const requestId = Date.now(); … this.subscriptions.set(requestId, subscription);
back-to-back subscribe() calls share one id, so Map entries overwrite each other and callbacks bind wrongly. Line 801 also passes the local id to unsubscribe instead of the server's id.
use a monotonic counter, store both ids, and send only the server-issued id.
Review: const requestId = Date.now() at line 350 as the Map key. Line 801 calls this.unsubscribe(sub.requestId), and no unsubscribe method is defined in the file.
quickstart/portfolio-tracker.md:395From the report
Evidence: const load = async () => { setError(null); setLive([]); setStreamAddress(address); try {
there is no in-flight guard, so a slower earlier response can overwrite the newer one. After an error, the previous wallet's portfolio stays on screen under the new address while the live feed follows the new address.
clear the portfolio and history at the start, disable the button while loading, and ignore stale responses (AbortController or a request counter).
Review: load at lines 395-398 sets setStreamAddress(address) and clears live but not the portfolio, and has no in-flight guard.
api-reference/laserstream/grpc/llms.txt:38From the report
Evidence: - 24-hour historical replay (216,000 slots), versus laserstream/historical-replay.md:19: "up to ~48 hours (~691,200 slots)". The stale figure also appears in dedicated-nodes/llms.txt, shred-delivery/llms.txt, data-streaming.md, rpc/websocket.md and rpc/how-to-index-solana-data.md.
regenerate the summaries from one fact table and verify the composed set.
Review: grpc/llms.txt:38,46,301 say 24 hours / 216,000 slots, and historical-replay.md:19 says about 48 hours / 691,200. The stale figure also appears in dedicated-nodes/llms.txt:17, shred-delivery/llms.txt:76, data-streaming.md:39, rpc/websocket.md:763 and how-to-index-solana-data.md:319.
api-reference/laserstream/grpc/llms.txt:13From the report
Evidence: 2. Choose your plan (Devnet: Developer/Business, Mainnet: Professional), while the table at line 53 and laserstream.md:41 include Business for mainnet. The samples at lines 98, 237 and 251 use accounts: { client: "my-app", account: [...] }, which is not a valid filter map. Line 221 uses an undefined class, and line 312 links a missing page.
correct the plan line and the sample shapes, and fix the link.
Review: Line 13 "Mainnet: Professional" versus the table at line 53 and laserstream.md:41 (Business too). The accounts: { client: "my-app", account: [...] } shape is at lines 99-102 and 236-239. Line 312 links the missing shred-delivery/preprocessed-transactions.md. The "undefined class" at line 221 is a "Before" example of the reader's existing code, so that part is weak.
api-reference/priority-fee/llms.txt:131From the report
Evidence: "low (20-40th percentile) … veryHigh (80-95th percentile)", versus priority-fee-api.md:65-89: 25th / 50th / 75th / 95th percentile.
pick the true definition and align the summary, the guide and the spec.
Review: llms.txt:131-135 (min 0-20th, low 20-40th ... veryHigh 80-95th) versus priority-fee-api.md:65-89 (25th / 50th / 75th / 95th).
api-reference/rpc/http/llms.txt:101From the report
Evidence: | 10 | getBlock, getBlocks, … getTransaction, …, versus billing/credits.md (1 credit) and rpc/guides/overview.md:149 ("All archival methods cost 1 credit").
the migration guide's savings figures depend on this number.
verify the metering and correct the wrong files.
Review: rpc/http/llms.txt:101 puts getBlock and getTransaction at 10 credits, versus rpc/guides/overview.md:149 "All archival methods cost 1 credit" and credits.md:145 "1 credit".
api-reference/rpc/http/llms.txt:99From the report
Evidence: lists getStakeActivation, which has no page or spec operation. getAgGenesisCert has a page but is missing from rpc-http.json, and simulateBundle is missing from the credit table.
generate the spec, the index and the summaries from one method list.
Review: getStakeActivation is listed at llms.txt:99 and has no page or spec entry. getAgGenesisCert has a page (getaggenesiscert.md) but no rpc-http.json entry. simulateBundle is in credits.md:106 but not in the llms credit table.
api-reference/rpc/http/llms.txt:1164From the report
Evidence: "Set maxSupportedTransactionVersion: Always set to 0", versus rpc/transaction-v1.md:58: requests that omit it or send 0 fail with -32015 once a v1 transaction is touched. The value 0 also appears at lines 118, 619, 634, 737 and 750, in _openapi/rpc-http.json examples, in rpc/guides/getblock.md:173, and as an omitted parameter in rpc/gettransactionsforaddress.md.
use 1 everywhere and note the SDK upgrade prerequisite.
Review: llms.txt:1164 "Always set to 0" versus transaction-v1.md:58 "omits the parameter, or sets it to 0, fails with -32015". Lines 118, 619, 634, 737 and 750 repeat the 0. rust-sdk/best-practices.md:207 already says to use 1.
api-reference/sender/llms.txt:76From the report
Evidence: - Auth: No API key required … - 50 requests per second (all plans), versus sending-transactions/sender.md:496-497: keyless traffic gets 1 request per second per IP, and 50/s requires the key.
clients built from the summary are throttled.
reconcile the summary, the pages and the spec.
Review: sender/llms.txt:76-77 "No API key required ... 50 TPS default" versus sender.md:496-497 (keyless 1 request/s per IP, 50/s with a key).
api-reference/das/llms.txt:31From the report
Evidence: displayOptions: { showFungible: true, showNativeBalance: true }, while _openapi/das-api.json and das/get-tokens.md define options. The same field is at lines 158, 180, 514, 543, 567, 583 and 603, and in quickstart/portfolio-tracker.md and rpc/websocket/transaction-subscribe.md.
use one documented field name everywhere.
Review: displayOptions at das/llms.txt:31 (and 158, 180, 514, 543, 567, 583, 603), versus options at das-api.json:91, get-tokens.md:243. It also appears at portfolio-tracker.md:59,405 and transaction-subscribe.md:253.
_openapi/webhooks.json:17From the report
Evidence: "url": "https://api-mainnet.helius-rpc.com", while api-reference/webhooks/llms.txt uses mainnet.helius-rpc.com/v0/webhooks and _openapi/index.json uses api.helius.xyz. data-streaming/quickstart.md:152-157 sends Authorization: Bearer and "transactionTypes": ["Any"], while the spec defines a query-parameter key and ANY.
settle one host, auth scheme and enum casing, and apply them everywhere.
Review: webhooks.json:17 https://api-mainnet.helius-rpc.com, webhooks/llms.txt:48 https://mainnet.helius-rpc.com/v0/webhooks, index.json:32 https://api.helius.xyz. data-streaming/quickstart.md:153,157 use Authorization: Bearer and ["Any"], while the spec uses ApiKeyQuery (line 22) and "ANY" (line 794).
_openapi/admin-api.json:97From the report
Evidence: "usage": { … "description": "Request counts broken down by service type …", while api-reference/admin/get-project-usage.md and api-reference/admin.md document creditCycle, credits, requests, dataTransfer and a nullable billingCycle.
publish one definition and generate both from it.
Review: admin-api.json:97-99 usage with api/archival, versus admin.md:75,86 (requests, dataTransfer) and get-project-usage.md (creditCycle, nullable billingCycle). The spec has no creditCycle.
_openapi/rpc-http.json:15685From the report
Evidence: the filters object ends with "additionalProperties": false and has no tokenTransfer, which rpc/gettransactionsforaddress.md:189-213 documents and uses.
regenerate the spec from the same source as the pages.
Review: The filters object ends with "additionalProperties": false (line 15685). tokenTransfer is absent from rpc-http.json but documented at gettransactionsforaddress.md:189-213.
billing/llms.txt:164From the report
Evidence: | Sender | 15/s | 15/s | 15/s | 15/s |, versus billing/rate-limits.md (50/s). Lines 240 and 276 also conflict with pay-with-crypto.md, and Parsed Events is missing from the credit table.
regenerate the summary and add a check that compares its numeric facts with the pages.
Review: Line 240 "Some users: Autoscaling available" versus pay-with-crypto.md:126 "isn't available on crypto plans". The Parsed Events row claim was not checked.
api-reference/enhanced-transactions/llms.txt:8From the report
Evidence: "Transform raw Solana transactions into human-readable, structured data … ### Fastest Setup", with no maintenance-mode notice, while enhanced-transactions/overview.md:9-11 says the API is legacy.
add the legacy banner and the successor pointer, and replace the stale SDK samples.
Review: enhanced-transactions/llms.txt:8,17 ("Fastest Setup"), with no legacy or maintenance text anywhere in the file. overview.md:7-11 says "legacy product in maintenance mode, succeeded by Parsed Events".
agents/llms.txt:113From the report
Evidence: helius signup --email … --json followed by a success response with "apiKey". The default mode prints a payment link, and the key only comes after --resume or --pay.
an agent that follows this file waits for a key that never arrives. Line 49 also maps priority fees to the wrong tool.
regenerate the file from the CLI and MCP pages and run the quick start once end to end.
Review: cli.md:62-66 says the default prints a hosted payment link and the key comes after --resume. Line 49 puts priority fees under heliusTransaction, but mcp/tools.md:103,112 puts them under the chain tool.
agents/rust-sdk/best-practices.md:203From the report
Evidence: "Minimum 0.0002 SOL (Dual mode) or 0.000005 SOL (SWQOS-only)", versus 0.001 SOL for Sender Max in sending-transactions/sender.md, faqs/sender.md and _openapi/sender-api.json.
update the figure and the mode naming, and source tip figures from one snippet.
Review: best-practices.md:203 "Minimum 0.0002 SOL (Dual mode) or 0.000005 SOL (SWQOS-only)". sender.md:12,48 and faqs/sender.md:24 give 0.001 SOL for Sender Max.
faqs/enhanced-transactions.md:28From the report
Evidence: "The Enhanced Transactions API is deprecated … new integrations should use getTransactionsForAddress". Other pages say "legacy", "no forced cutoff", or name Parsed Events as the successor, while sdks/rust.md, a guide and a skill still teach it for new work.
choose one status and one successor per use case and apply them everywhere.
Review: faqs/enhanced-transactions.md:28 "deprecated ... use getTransactionsForAddress" versus overview.md:7-10 "legacy ... succeeded by Parsed Events". sdks/rust.md:7,41 still teaches it.
parsed-events/guides/migrate-from-enhanced-transactions.md:92From the report
Evidence: "Every query parameter becomes a JSON body field:". The table omits token-accounts and source.
callers who relied on those parameters get different results with no error.
list every legacy parameter as mapped, dropped or client-side, and show a before/after comparison.
Review: The old API has token-accounts (enhanced-transactions/transaction-history.md:99) and source (api-reference/enhanced-transactions/gettransactionsbyaddress.md:62,113). type is covered in prose at 119.
sending-transactions/sender.md:520From the report
Evidence: http://slc-sender.helius-rpc.com/fast?api-key=YOUR_API_KEY. The same pattern is in AGENTS.md:30, land-trades-with-sender.md, jupiter-swap-api-via-sender.md:79, trade-on-preconfirmations.md:102 and _openapi/sender-api.json.
anyone on the network path can read the project API key in cleartext and spend its credits.
serve every region over HTTPS and update all URLs. Until then, warn against putting the key in these URLs.
Review: Key-bearing HTTP URLs at sender.md:520-526 (7 hits, all in that file). land-trades-with-sender.md:32 SENDER='http://ewr-…' is used at 128 as ${SENDER}/fast?api-key=…. "Spend its credits" is loose: sender.md:498 says Sender uses no credits, though the project key works elsewhere.
dedicated-nodes/getting-started.md:95From the report
Evidence: a UUID-format API key starting 4659… in the connection URL, repeated at line 110.
if this key is live, anyone can use it.
rotate the key and replace it with a placeholder.
Review: A UUID-format key starting 4659… is in the node URL at 95 and 110. No "replace with your own" note for it.
dedicated-nodes/getting-started.md:147From the report
Evidence: an --x-token value starting 42f0….
rotate the token and use a placeholder.
Review: --x-token 42f0… at 147. Line 150 tells the reader to replace URL and token, so it is probably demo text, but it looks real.
pre-confirmations/guides/trade-on-preconfirmations.md:80From the report
Evidence: onScheduledTransaction({ slot, status, tx }); is called for every frame, but preconf-subscribe.md:290 says the same signature can arrive twice.
each duplicate builds and sends a new paid transaction, so both can land.
keep a bounded seen-set of signatures and an in-flight registry before reacting.
Review: onScheduledTransaction is called per frame (80) with no dedupe. preconf-subscribe.md:290-292 says the same signature can arrive twice and to deduplicate. includeBam defaults to on (384). The strategy code is a black box and duplicates are a "small share".
pre-confirmations/guides/trade-on-preconfirmations.md:78From the report
Evidence: const tx = VersionedTransaction.deserialize(buf.subarray(18));, with no try/catch, while the reference says older deserializers cannot read v1.
the throw inside the message handler ends the process. preprocessed-transactions/guides/trade-on-preprocessed.md:100 has the same call.
use a v1-capable decoder and wrap decoding in try/catch.
Review: Line 78 VersionedTransaction.deserialize is not in try/catch, inside ws.on('message'). preconf-subscribe.md:272 says older deserializers handle only legacy and v0. preprocessed-transactions/guides/trade-on-preprocessed.md:100 has the same call, inside the async drain loop.
parsed-streams/guides/handling-reconnects.md:56From the report
Evidence: const ws = new WebSocket(URL); with listeners for open, message and close, but no error.
an error event with no listener throws and kills the process, which is exactly the failure the guide exists to survive. The same applies to track-jupiter-swaps.md and parsed-streams/quickstart.md.
attach an error listener first, and let close drive the reconnect.
Review: import WebSocket from "ws" (45), new WebSocket(URL) (56), handlers open, message and close only (58-87). The same holds in track-jupiter-swaps.md:58-92 and parsed-streams/quickstart.md:361-383. track-pumpfun-mints.md:89 does have an error handler.
quickstart/portfolio-tracker.md:316From the report
Evidence: const ws = new WebSocket(wss://mainnet.helius-rpc.com/?api-key=${process.env.HELIUS_API_KEY});, with handlers only for open and message.
any upstream failure throws an uncaught exception and takes down the Next.js server. Anonymous callers can trigger it.
add error and close handlers that close the SSE stream once, and guard JSON.parse.
Review: Only open, message and abort handlers (316-351), no error. An upstream error is uncaught. "Anonymous callers can trigger it" is unsupported: the caller only supplies address.
quickstart/portfolio-tracker.md:272From the report
Evidence: export async function POST(req: NextRequest) { const { method, params } = await req.json(); … await helius.getAssetsByOwner(params)
the proxy and the stream route have no authentication, no rate limit and no parameter validation. Anyone can run paid calls and open upstream sockets billed to the owner, with unlimited autoscaling by default.
require a session or token, rate-limit per client, validate and clamp parameters, and cap concurrent streams.
Review: "Unlimited autoscaling by default" holds only for Professional (billing/additional-credits.md:69-71: Developer off, Business 50M).
api-reference/webhooks/llms.txt:341From the report
Evidence: app.post('/webhook', (req, res) => { const transactions = req.body; transactions.forEach(tx => {
anyone who finds the URL can inject forged swap or sale events. The "validate … signature field" advice refers to a value an attacker can forge.
compare the Authorization header with the configured secret in constant time and reject mismatches with 401.
Review: Listener at 341-359 has no check, while authHeader is documented at 90 and 105. The only advice is line 385 "Validate payload structure and signature field".
privacy/integration/wallet.md:350From the report
Evidence: "Zero-knowledge proof generation requires plaintext inputs of the complete user transaction data and nullifier keys. Currently, server proof generation is available through the standard Helius RPC URL." Meanwhile privacy/concepts/encryption.md:33 says the RPC does not see the asset or amount, and line 110 says "Never send key material".
state the trust model wherever privacy is claimed, and correct the tables.
Review: wallet.md:350-352 needs plaintext inputs and nullifier keys via the standard RPC URL. encryption.md:33 says RPC sees no asset or amount, and wallet.md:110 says "Never send key material". Line 355 says E2E-encrypted proving is planned.
_openapi/webhooks.json:2454From the report
Evidence: "maxItems": "100_000" (also "maximum": "10_000"). _openapi/enhanced-api.json references #/components/parameters/apiKeyParam 16 times, but it is never defined.
use integer limits, define or drop the reference, and lint the specs in CI.
Review: "maxItems": "100_000" at webhooks.json:2454 and enhanced-api.json:3406. "maximum": "10_000" at webhooks.json:2673 and enhanced-api.json:3625. apiKeyParam has 15 refs in enhanced-api.json and 6 in webhooks.json, and is never defined ("apiKeyParam": has 0 hits).
rpc/websocket.md:341From the report
Evidence: connect() { if (this.isReconnecting) return;, while scheduleReconnect() sets isReconnecting = true and then calls connect().
the client never reconnects. The heartbeat at line 225 waits for a "pong" message the server never sends and closes healthy sockets. The circuit breaker at line 476 never schedules a reconnect.
clear the flag before retrying, use protocol-level ping frames, schedule reconnects from onclose, and test each sample by dropping the connection twice.
Review: connect() returns if isReconnecting (341), scheduleReconnect sets it true (378) then calls connect() (392-394), and only onopen clears it (356). The circuit breaker onclose only records failure (476-478). The pong claim (225) cannot be checked.
rpc/websocket/quickstart.md:342From the report
Evidence: this.ws.onclose = () => { … // Implement reconnection logic here };
SolanaWebSocketManager (line 750) is never defined. The pool monitor subscribes to mint accounts but reads tokenAmount (line 419) and throws. The rate-limit handler uses an undefined reconnectAttempts (line 859) and re-sends every subscription on a live socket.
publish one complete, tested class and build the other examples on it.
Review: Placeholder comment at 345. SolanaWebSocketManager is used at 750, 768 and 820 and never defined. A mint is subscribed with jsonParsed (419-423) and .tokenAmount is read at 453. reconnectAttempts is undefined at 859. Section "Production-Ready Implementation" is at 301.
rpc/optimization-techniques.md:72From the report
Evidence: const { priorityFeeEstimate } = await response.json().result;, and line 67 uses '11111111111111111111111111111112', // System Program.
await the JSON before reading it, add jsonrpc and id, and use the correct System Program address.
Review: await response.json().result (72) destructures undefined. The body lacks jsonrpc and id (64-70). '11111111111111111111111111111112' (67) is not the 32-ones System Program.
rpc/how-to-index-solana-data.md:346From the report
Evidence: accountsInclude: [ followed by an address with two zero-width characters (U+200B) at line 347. The same characters appear at line 394.
an unknown field leaves the filter empty, which can stream the whole chain, and the pasted address is invalid.
rename the field to accountInclude and strip the invisible characters.
Review: accountsInclude at 346 versus accountInclude at 393. U+200B appears on 2 lines (347, 394). "Streams the whole chain" cannot be checked.
rpc/how-to-index-solana-data.md:181From the report
Evidence: signature BYTEA NOT NULL UNIQUE, on token_transfers.
transactions with several transfers lose rows.
key on signature plus instruction indexes and write idempotently.
Review: signature BYTEA NOT NULL UNIQUE on token_transfers (181), one row per transfer.
rpc/how-to-index-solana-data.md:251From the report
Evidence: WHERE token_mint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' against a FixedString(32) column.
store base58 text, or decode the literal to bytes.
Review: token_mint FixedString(32) (230) versus the base58 literal (251).
rpc/gettransactionsforaddress.md:577From the report
Evidence: if (change > 0) { console.log(\Received ${change} lamports from ${…accountKeys[index]}\);
report the account with the matching negative change.
Review: Prints Received … lamports from ${accountKeys[index]} where change > 0 (579-580). That account is the recipient.
enhanced-transactions/transaction-history.md:320From the report
Evidence: const endTime = Math.floor(new Date('2024-01-31').getTime() / 1000); used with lte-time. The same at lines 448-449.
use the end of the day, or less-than the next midnight.
Review: endTime = new Date('2024-01-31') (320) with lte-time (322), under the comment "January 1 … January 31". Same at 448-449.
enhanced-transactions/transaction-history.md:407From the report
Evidence: no limit is passed, so each page holds 10 transactions at 100 credits per call.
pass limit=100 and throttle to the plan's rate.
Review: No limit in the crawl (407-441). Default limit is 10 (transaction-history.md:94). billing/credits.md:125 says 100 credits per call.
wallet-api/funded-by.md:347From the report
Evidence: else if (funding.funderType === 'flagged') {. "flagged" is not a documented category, and the branch sits after !funderName.
named scammers and hackers fall through to score 0. api-reference/wallet-api/llms.txt:283 lowers risk for any identified address and treats API errors as "no data".
check the documented malicious categories first and treat errors as unavailable data.
Review: 'flagged' (347) is not a documented category. identity.md:339-342 lists Exploiter, Hacker, Rugger and Scammer. A named malicious funder falls through to score 0. wallet-api/llms.txt:283 lowers risk for any known identity, and a 404 becomes null.
staking/how-to-stake-with-helius-programmatically.md:315From the report
Evidence: console.log( Status: ${info.meta.lockup.unixTimestamp === 0 ? 'Active' : 'Locked'});
derive the status from the activation and deactivation epochs.
Review: info.meta.lockup.unixTimestamp === 0 ? 'Active' : 'Locked' (315).
billing/plans.md:204From the report
Evidence: <td>\$400</td> for 5 TB, versus line 472: "ranging from \$500/month for 5 TB".
correct the figure and generate price tables from one source.
Review: $400 for 5 TB (plans.md:204, and billing/llms.txt:41) versus "$500/month for 5 TB" (plans.md:472).
sending-transactions/backrun-rebates.md:77From the report
Evidence: transaction.serialize().toString('base64') with options { skipPreflight: true, preflightCommitment: 'processed' }.
the method defaults to base58, so every call fails. The Python sample decodes binary data as UTF-8.
add encoding: 'base64' and fix the Python encoding.
Review: toString('base64') (77) with options lacking encoding (Grep encoding in the file: 0 hits for options). Python serialize().decode('utf-8') (111) and true in Python (123) are further defects.
priority-fee-api.md:159From the report
Evidence: const serializedTx = bs58.encode(transaction.serialize()); on an unsigned transaction. The same in estimating-fees-using-serialized-transaction.md at lines 118, 239, 336, 407, 574 and 749.
pass { requireAllSignatures: false, verifySignatures: false }.
Review: Legacy Transaction with no signature, bs58.encode(transaction.serialize()) (159). The same call is at 118, 239, 336, 407, 574, 749 and 762 of estimating-fees-using-serialized-transaction.md. Line 793 is a VersionedTransaction and fine. The throw rests on web3.js behaviour.
sending-transactions/optimizing-transactions.md:271From the report
Evidence: transaction: bs58.encode(versionedTransaction),. At line 141, let transfer_amount = 100_000; // 0.01 SOL is actually 0.0001 SOL, and line 146 uses the undefined instructions.
encode the serialized bytes, correct the amount, and use the defined variable.
Review: bs58.encode(versionedTransaction) (271) encodes an object, not bytes. 100_000 // 0.01 SOL (141) is 0.0001 SOL. instructions (146) is undefined (the variable is instruction).
sending-transactions/jupiter-swap-api-via-sender.md:220From the report
Evidence: const result = await connection.confirmTransaction({ … }, 'confirmed'); followed by console.log("Confirmed");
failed swaps are reported as confirmed. send-manually.md:213 and optimizing-transactions.md:373 have the same flaw, and the latter never resolves on "finalized".
check the error field, accept finalized, and use the transaction's own expiry.
Review: confirmTransaction result unused, then "Confirmed" (jupiter-swap-api-via-sender.md:220-225). send-manually.md:213-214 prints "confirmed" without checking status.err. optimizing-transactions.md:373 only matches "confirmed", never "finalized".
priority-fee-api.md:106From the report
Evidence: "Total priority fee = Price per compute unit × Compute units consumed"
say "compute unit limit" and recommend setting the limit from simulation.
Review: "Price per compute unit × Compute units consumed" (106). The real fee scales with the requested limit (outside knowledge).
sending-transactions/guides/land-trades-with-sender.md:84From the report
Evidence: ComputeBudgetProgram.setComputeUnitLimit({ units: 100_000 }), with a dynamic price.
an estimate below 50,000 micro-lamports gives less than the 5,000-lamport minimum, so the transaction is rejected.
simulate for the limit, clamp the total fee to the minimum, and round the price.
Review: units: 100_000 (84) with a dynamic price. sender-max.md:72,83 requires at least 5,000 lamports, so the price needs to be at least 50,000 µ-lamports. priority-fee-api.md:108 itself cites ~40,000 as Medium.
laserstream/guides/slot-and-block-monitoring.md:431From the report
Evidence: if (data.slot && data.slot.status === 'finalized') {
compare with the numeric value.
Review: status === 'finalized' (431) while the page says status is numeric (145, 309).
laserstream/guides/transaction-monitoring.md:230From the report
Evidence: tx.meta.preTokenBalances.forEach((preBalance, index) => { const postBalance = tx.meta.postTokenBalances[index];
key both arrays by accountIndex.
Review: preTokenBalances.forEach((pre, index) => … postTokenBalances[index] (229-230).
laserstream/grpc.md:252From the report
Evidence: the ping parameter docs say to "set this to true", while line 788 says a ping field "causes LaserStream to silently ignore all subscription filters".
document sending pings separately, after subscribing.
Review: "set this to true" (253) versus "a ping field … silently ignore all subscription filters" (788).
api-reference/laserstream/grpc/subscribe.md:447From the report
Evidence: "blocks": { "account_include": [...], "include_transactions": 1,
nest each filter under a label (also at lines 474 and 501).
Review: "blocks": {"account_include": …} (447), accounts: {account: …} (474, 501). Also unlabelled and missed by the report: 388 (transactions) and 434 (transactions_status).
laserstream.md:59From the report
Evidence: "Understand at-least-once delivery…", versus laserstream/delivery-guarantees.md:17: "exactly-once delivery".
state one guarantee and the de-duplication key.
Review: laserstream.md:59 "at-least-once delivery" versus delivery-guarantees.md:17 "exactly-once delivery".
laserstream/clients.md:115From the report
Evidence: helius-laserstream = "0.2", under "Use helius-laserstream 0.6.3 or later". The same pin is in cuckoo-filters.md:48.
pin the stated minimum version.
Review: helius-laserstream = "0.2" (115) under "0.6.3 or later" (111). Same pin at cuckoo-filters.md:48.
api-reference/wallet-api/llms.txt:345From the report
Evidence: import Helius from 'helius-sdk'; const helius = new Helius('YOUR_API_KEY');, while the current SDK uses createHelius({ apiKey }). The same appears in staking/how-to-stake-with-helius-programmatically.md:54, api-reference/das/llms.txt, api-reference/enhanced-transactions/llms.txt, api-reference/webhooks/llms.txt and optimizing-transactions.md:96.
update to the 2.x API, or label the samples with their version.
Review: import Helius … new Helius('YOUR_API_KEY') at wallet-api/llms.txt:345. Also staking/…:54, optimizing-transactions.md:96 and 6 more llms.txt files.
Low after review (76)
rpc/websocket/quickstart.md:513From the report
Evidence: the subscription is on 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', and line 127 tests program === "spl-token".
Token-2022 accounts report spl-token-2022 and are never matched. priority-fee/estimating-fees-using-serialized-transaction.md:323 also hard-codes TOKEN_PROGRAM_ID for address derivation and the transfer.
read the token program from the mint's owner and handle both program ids. Prefer createTransferCheckedInstruction.
Review: programSubscribe on Tokenkeg... at line 513 and program === "spl-token" at line 127. The priority-fee page uses TOKEN_PROGRAM_ID at lines 329, 384 and 391.
privacy/guides/deposit.md:427From the report
Evidence: tokenProgram: TOKEN_PROGRAM_ADDRESS, while the text says SPL and Token-2022 are both supported.
a Token-2022 mint would be handled with the wrong program.
derive the program from the mint owner and assert it before creating the interface.
Review: tokenProgram: TOKEN_PROGRAM_ADDRESS at lines 427 and 443, while line 365 says the SPL variant takes the token program for SPL and Token 2022 assets.
privacy/guides/deposit.md:132From the report
Evidence: pnpm add @heliuslabs/zolana@^0.3.1-alpha, while line 475 checks out v0.3.0-alpha.
alpha signing libraries can change behaviour under a caret range, and the install and the examples disagree on the version.
pin exact versions and use one version throughout the page.
Review: Line 132 @heliuslabs/zolana@^0.3.1-alpha, while lines 168 and 475 use v0.3.0-alpha.
privacy/integration/wallet.md:262From the report
Evidence: "The fixed message payload is "TSPP/derive/v1"". The page also warns: "Whoever holds it can derive the nullifier and viewing keys".
any site connected to the wallet can ask it to sign this known message and obtain keys that decrypt the user's history. The only defence is a wallet-side instruction to "reject" third-party requests.
bind derivation to a per-installation secret salt, or use a derivation path that dApps cannot request. Document a concrete refusal policy for wallets.
Review: Line 262 states the fixed message. But lines 267-270 carry a Warning saying whoever holds the signature can derive the keys and "Reject any sign request for the message from a third party". The design and its mitigation are documented, so this is a design critique, not a doc defect.
api-reference/endpoints.md:54From the report
Evidence: "The staked endpoint (staked.helius-rpc.com) is deprecated." Line 60 still advertises "Guaranteed access…".
consumers cannot plan the move or confirm they are off the old host. The same applies to notifyOn ("removed at a later date") and to the v1 transaction change.
publish removal dates, tell users to confirm from their request logs that no traffic hits the old host, and drop the present-tense benefit claims.
Review: The deprecation text is at line 55 and line 60 still says "Guaranteed access to staked connections". notifyOn "will be removed at a later date" is at accountsubscribe.md:45.
parsed-events/guides/migrate-from-enhanced-transactions.md:183From the report
Evidence: "Enhanced Transactions keeps working while you migrate — there is no forced cutoff." Line 114 adds that commitment now defaults to confirmed instead of finalized.
payment and accounting pipelines can switch to weaker finality without noticing.
publish a dated retirement plan, flag the finality change prominently, and show commitment: "finalized" in the migration example.
Review: Line 114 "commitment defaults to confirmed instead of finalized". Line 183 "there is no forced cutoff".
quickstart/portfolio-tracker.md:124From the report
Evidence: ws.onclose = () => { if (wsRef.current === ws) setLiveStatus('idle'); };
your FAQ says idle sockets drop after 10 minutes. Neither the browser demo nor the relay route recovers, and the relay never ends the SSE stream, so users watch a dead feed.
ping about every 60 seconds, reconnect with backoff, and backfill history from the resume point.
Review: ws.onclose at line 124 only sets 'idle', and the relay has no close handler (only an abort handler, lines 348-351). The "10 minutes" rule is in a Parsed Streams guide, not a FAQ. This is a demo page, and the user can press "Go live" again.
laserstream/historical-replay.md:177From the report
let lastProcessedSlot = Number(process.env.LAST_PROCESSED_SLOT ?? 0);
… lastProcessedSlot = Number(data.transaction.slot);
// persist `lastProcessedSlot` here
after a restart the cursor falls back to a stale value. The cursor advances only for transaction updates, and resuming at the saved slot re-delivers that slot without de-duplication.
write the cursor through one function that updates memory and durable storage together, advance it for every update type, and de-duplicate on resume.
Review: Lines 156 and 179 are explicit placeholders ("Load the last slot you processed from wherever you store it", "persist ... here"). Not advancing on other update types is true.
quickstart/portfolio-tracker.md:105From the report
Evidence: accountInclude: [ownerAddress],, where ownerAddress is the editable input.
after the user loads wallet A and edits the field, "Go live" streams B under A's dashboard.
store the loaded address at load time, as the Next.js version does.
Review: Line 105 accountInclude: [ownerAddress], and ownerAddress is bound to the input at line 139. The Next.js variant stores streamAddress at line 398.
rpc/websocket/stream-pump-amm-data.md:86From the report
Evidence: function startPing(ws) { setInterval(() => { … ws.ping(); … is called on every open.
each reconnect adds another interval that pins a dead socket. The same pattern is in transaction-subscribe.md, account-subscribe.md and token-account-filtering.md.
keep the handle and clear it in the close handler.
Review: startPing at lines 86-93 is called on every open with no clearInterval. But the ping is guarded by readyState === OPEN, so it is a leak, not a failure. The same pattern holds in the other three pages.
data-streaming/quickstart.md:130From the report
Evidence: setInterval(() => ws.ping(), 30000);
after a disconnect, ws.ping() on a closed socket throws from the timer and can crash the process. dedicated-nodes/getting-started.md:202 keeps a process alive after its stream has ended.
clear the timer on close or error, and ping only when the socket is open.
Review: The unguarded setInterval(() => ws.ping(), 30000) at line 130 is real, and the interval is never cleared. The "throws and can crash the process" claim does not hold on ws 8.x (it silently does nothing). The page names no version.
laserstream/guides/stream-pump-amm-data.md:52From the report
Evidence: uniquePayers: new Set<string>(), … stats.uniquePayers.add(payer);
reset the set per reporting window, or use a bounded counter.
Review: uniquePayers: new Set<string>() at line 52 and .add at line 73.
laserstream/guides/measuring-latency.md:248From the report
Evidence: let mut timings: HashMap<u64, SlotTimings> = HashMap::new(); … Error(e) => { error!(...); break; }
evict old slots, and stop or reconnect when either stream task exits.
Review: timings is a HashMap (line 248) and entries are removed only on a match (line 272). Task error branches break at lines 224 and 240.
rpc/gettransactionsforaddress.md:888From the report
Evidence: await Promise.all([ fetchAllSignatures(address, …), ...historicalAccounts.map((addr) => fetchAllSignatures(addr)),
thousands of paginated loops start at once, hit 429s, and one rejection discards all the work.
use a small worker pool and retry per request.
Review: Promise.all([...historicalAccounts.map(...)]) at lines 888-891 is real. "Thousands" is speculation, since the count depends on the wallet.
wallet-api/funded-by.md:194From the report
Evidence: await Promise.all( walletAddresses.map(async address => { try { … } catch { return { address, funder: null }; }
each call costs 100 credits. Rate-limit failures are counted as "no funder", which skews the Sybil statistics.
bound the concurrency, retry with backoff, and report failures separately from genuine 404s.
Review: Promise.all at line 194 and catch { return { address, funder: null } } at lines 199-200 are real. It is a sample with an unbounded wallet list, and the 100-credit cost is not on this page.
preprocessed-transactions/guides/trade-on-preprocessed.md:99From the report
Evidence: while (true) { const item = queue.shift(); if (!item) { await new Promise(r => setTimeout(r, 1)); continue; }
the process wakes about 1,000 times a second while idle, although the data arrives as events.
wake the consumer from the message handler, and use a ring buffer instead of shift().
Review: setTimeout(r, 1) at line 99 is real. It is an idle-CPU inefficiency in a sample, not a wrong result.
sending-transactions/sender.md:419From the report
Evidence: setInterval(() => { warmConnection("https://sender.helius-rpc.com"); }, 5000);
ping only after 5 seconds of idleness, keep the handle, and pick one endpoint.
Review: Line 419 pings every 5 seconds without end. The page's own Note (lines 430-431) says warm only when gaps exceed 5 seconds.
rpc/optimization-techniques.md:273From the report
Evidence: await Promise.all( signatures.map(…) ); // ~1s + (200ms * 100 txs) = ~21s
the arithmetic assumes sequential calls for concurrent code. das/pagination.md:199 ("far faster") has the same issue.
measure (N workers × M calls, with p50/p99/p99.9) or remove the numbers.
Review: Line 273 // ~1s + (200ms * 100 txs) = ~21s under a "Promise.all" snippet that is labelled sequential. das/pagination.md:199 says "far faster".
laserstream/guides/measuring-latency.md:324From the report
Evidence: eprintln!(" P25: {}, P75: {}, P95: {}", p25, p75, p95);
add p99 and p99.9, which the page's own advice asks for.
Review: Line 324 prints P25, P75 and P95 only. Line 532 advises looking at P95 and P99.
wallet-api/history.md:400From the report
Evidence: const getHistoricalBalance = async (address, targetTimestamp) => { const transactions = await getAllTransactionHistory(address);
each helper re-pages the entire history at 100 credits per page. The balance-at endpoint answers the same question in one call (line 432).
use balance-at for point-in-time balances, and cache pages by cursor.
Review: Line 400 getAllTransactionHistory is a real inefficiency. But line 432 points straight to the Historical Balance endpoint as the direct route.
wallet-api/balances.md:238From the report
Evidence: "This endpoint does not expose a raw amountRaw field; … derive it as Math.round(balance * 10 ** decimals)."
re-deriving the integer from a float loses precision for large balances.
return a string amountRaw on every wallet endpoint, as balance-at already does.
Review: Line 238 documents the absence of amountRaw and the derivation. Precision loss only occurs for very large balances.
wallet-api/funded-by.md:448From the report
Evidence: "A wallet's funding source never changes. Cache this data permanently".
404s for unfunded wallets and identity labels do change, so a stale answer is served forever. wallet-api/balance-at.md:241 gives the same advice for time-based queries that can drift.
cache only successful responses, refresh labels on a TTL, and cache only finalized slots.
Review: Line 448 "never changes. Cache this data permanently" refers to a successful funding source. The 404 handling is a separate bullet (line 446). Line 241 on balance-at is arguable, since time can drift but slot is exact.
agents/cli.md:185From the report
~/.helius/
├── config.json # JWT token, API key, …
└── keypair.json # Solana keypair
helius config clear # Reset everything
keygen and the MCP generateKeypair both create the funded payment key. No page says whether keygen refuses to overwrite it or whether config clear deletes it, so a funded key can be lost silently. No file permissions are documented.
refuse to overwrite without --force, keep the key out of "clear", prompt for a backup, and create the files with mode 0600.
Review: The file tree is at lines 184-188 and helius config clear # Reset everything at line 197. No page says what clear does to keypair.json, which is a real gap. That a funded key "can be lost silently" is inference only.
das/get-tokens.md:263From the report
Evidence: "supply": 8881594973561640000, and const marketCap = (supply / Math.pow(10, decimals)) * price_per_token;
serialise the supply as a string and compute with BigInt or a decimal library.
Review: "supply": 8881594973561640000 at line 263 and the market-cap formula at line 281 are real. But a float market cap is not harmed by the rounding.
_openapi/rpc-http.json:3690From the report
Evidence: "totalStake": { "type": "integer", … "example": 384962848972206900 }
generated JavaScript clients corrupt the low digits. _openapi/zk-compression.json:92 shares one unbounded integer schema for lamports, balances and discriminators.
declare these values as strings (or int64/uint64 with string transport) and use realistic examples.
Review: rpc-http.json:3688-3690 has "type": "integer" with an example of 384962848972206900. zk-compression.json:92 refs UnsignedInteger (defined at line 170). It is an example/typing issue only.
wallet-api/overview.md:132From the report
Evidence: amount = parseInt(amountRaw) / 10**decimals. The same formula is in wallet-api/transfers.md:200, and parseInt on raw amounts appears in laserstream/guides/decoding-transaction-data.md:621.
the field is a string precisely to avoid precision loss, and the advice reintroduces it.
show BigInt division with the remainder formatted as a string.
Review: amount = parseInt(amountRaw) / 10**decimals is at overview.md:132 and transfers.md:200, and parseInt at decoding-transaction-data.md:621. The result is a display float anyway.
wallet-api/balance-at.md:256From the report
Evidence: "For SOL balances beyond ~9,007,199 SOL (2⁵³ lamports), precision may be lost upstream."
balanceRaw is described as exact (line 182), but it is not for large holders.
carry lamports as u64 or strings end to end. Until then, flag the limit on the field itself.
Review: Line 256 limits the loss to about 9M SOL or more. Line 182 calls balanceRaw exact. The conflict is real but the case is narrow.
_openapi/wallet-api.json:680From the report
Evidence: "balance": { "type": "number" … }, and in wallet-api/history.md:413: balances[change.mint] += change.amount;
the tax, volume and historical-balance samples accumulate rounding error. The history can also be incomplete before slot 111,491,819 (line 26), and null timestamps are dropped silently.
add string raw amounts, sum integers with BigInt, handle null timestamps, and warn that the history may be incomplete.
Review: wallet-api.json:680-681 has balance typed number, and history.md:413 sums floats. The slot-111,491,819 warning (line 26) applies to the tokenAccounts filter.
laserstream/historical-replay.md:162From the report
const maxReplaySlot = currentSlot - 691_200;
console.warn('Disconnection too long, some data may be lost');
the window depends on slot time, which the server exposes through subscribeReplayInfo. A start slot at the exact edge is rejected, and the missed range is never backfilled.
clamp to the server-reported first available slot, and record and backfill the missed range or alert.
Review: Lines 162 and 165 are as quoted. But line 160 says "recompute if network slot time changes", and subscribeReplayInfo is documented at grpc.md:700.
priority-fee/estimating-fees-using-serialized-transaction.md:682From the report
Evidence: const fallbacks = { "Low": 1000, "Medium": 5000, "High": 15000, "VeryHigh": 50000 };
after an estimator failure, these values are far below the live levels, so transactions fail to land without any signal.
fail loudly or retry instead. If a floor is needed, load it from a versioned config.
Review: fallbacks = { "Low": 1000, ... "VeryHigh": 50000 } at lines 682-687.
sending-transactions/sender.md:102From the report
Evidence: const TIP_ACCOUNTS = [ "4ACfpUFoaSD9bfPdeu6DBt89gB6ENTeHBXCAi87NhDEE", … ]
these values have already changed once (the 0.001 SOL update), and about eight samples carry different subsets.
publish the accounts and minimums through a discovery endpoint or config file, and have the samples read it.
Review: TIP_ACCOUNTS at line 102 holds 3 accounts plus "more available". Grep finds 14 occurrences across 5 pages.
laserstream/historical-replay.md:192From the report
Evidence: const startSlot = currentSlot - 2400; // ~10 minutes ago at current ~250ms slot time. Other pages assume 400 ms.
define the slot time once and derive every slot count from it.
Review: Line 192 and line 160 say about 250ms, while glossary.md:253 says 400ms. 691,200 slots at 400ms is about 77 hours, not 48.
rpc/websocket/stream-pump-amm-data.md:67From the report
Evidence: new WebSocket(wss://mainnet.helius-rpc.com/?api-key=${process.env.HELIUS_API_KEY})
an unset key becomes api-key=undefined, and the failure is reported as a connection problem. The same applies to quickstart/portfolio-tracker.md:268 (process.env.HELIUS_API_KEY!).
check required variables at startup and exit with a clear message.
Review: ${process.env.HELIUS_API_KEY} at line 67, and process.env.HELIUS_API_KEY! at portfolio-tracker.md:268.
preprocessed-transactions/guides/trade-on-preprocessed.md:46From the report
Evidence: const seen = new Set(); // rotate or expire entries in production / const queue = []; / VersionedTransaction.deserialize(item.txBytes);
the stream rate is set by outside senders. The queue and the seen-set grow without bound, shift() is O(n), and the loop never yields, so the socket is not read and the server can drop the connection. One malformed frame ends the drain loop.
bound the queue and the seen-set, process in batches that yield (or in a worker), and wrap each decode in try/catch.
Review: Line 46 itself says "rotate or expire entries in production", and line 106 says "If the queue grows without bound, tighten the filters". The unhandled deserialize throw is real but is the same call as finding 94.
_openapi/webhooks.json:2411From the report
Evidence: "TokensMetadataRequest", "ParseTransactionsRequest", "RpcProxyRequest" sit in a spec whose only paths are /v0/webhooks.
keep each spec to its own schemas and share common ones by $ref.
Review: TokensMetadataRequest (2411), ParseTransactionsRequest (2424) and RpcProxyRequest (2470) sit in a spec whose paths are /v0/webhooks and /v0/webhooks/{webhookID}.
_openapi/rpc-http.json:62From the report
Evidence: "ErrorResponse_getBlock": { … } lacks the id field that the shared ErrorResponse has. getTokenTransfers is also defined twice, with different shapes, in laserstream/guides/decoding-transaction-data.md.
reference one shared definition.
Review: 53 "ErrorResponse_*" definitions. ErrorResponse_getBlock (lines 62-83) has no id, and the shared ErrorResponse is at line 32. getTokenTransfers is defined at lines 603 and 718 with different shapes.
_openapi/zk-compression.json:117From the report
Evidence: "additionalProperties": false on 48 objects, including responses.
strict generated clients break whenever a field is added.
keep the restriction on request bodies only, and tell consumers to ignore unknown fields.
Review: "additionalProperties": false at line 117; 48 such lines in the file.
billing/additional-credits.md:71From the report
Evidence: | Professional | Unlimited | Unlimited | and "Autoscaling is enabled by default on Business and Professional plans".
an unbounded default spend means a leaked key or a runaway job turns directly into an uncapped bill.
default to a finite, customer-set cap and require an explicit opt-in for unlimited.
Review: Lines 71 and 25 say so, but line 65 says "You set your own limit up to that maximum". It is a documented plan default.
billing/plans.md:468From the report
Evidence: "1M monthly credits … requires a 1 USDC payment". agents/cli.md:94 says "$1 one-time | 1,000,000", and agents/overview.md:124 says "$1 signup | 1M" under monthly credits.
state whether the credits renew, the term, and what happens when it ends, and make the three pages agree.
Review: plans.md:468 "1M monthly credits", cli.md:94 "$1 one-time
billing/credits.md:304From the report
Evidence: "A covered slot with no matching messages still costs 300 credits."
on a well-covered day one subscription can use the plan's included credits within days, and the overage bills automatically under finding 58.
print the worst-case arithmetic next to the plan row, and add a default spend cap.
Review: Lines 302-304 give the 300-credit slot minimum, and the page gives no worst-case sizing. The arithmetic was not rechecked.
_openapi/index.json:51From the report
Evidence: "docsUrl": "https://www.helius.dev/docs/rpc/overview" (no such page). The catalog also mentions a "Mint" API with no entry, and _openapi/sender-api.json:6 uses the /ping text as its API description.
correct the link and the descriptions.
Review: index.json:51 docsUrl is .../docs/rpc/overview, and src/rpc/ has no overview.md. That page did exist in the 2026-05-28 copy, so the link broke since then. The catalog description mentions "Mint" with no entry, and sender-api.json:6 uses the ping text as its description.
AGENTS.md:11 (submitted as AGENTS.md.nxdata)From the report
Evidence: npx helius-cli signup --json, which omits the email and name flags that every signup requires. The pages also disagree on the tool count ("9 routed tools plus expandResult" versus "10 routed tools").
keep one canonical signup block and tool description, and generate the copies from it.
waas/migrating-from-privy.md:75From the report
Evidence: <Step title="Retire the old integration"> Once users are on their Helius wallets, remove the Privy SDK.
users get new, empty wallets, and their old funds remain behind a provider the app no longer integrates.
gate removal on a per-user check that the old balance is zero or has been exported, and run one migrate-and-withdraw end to end on devnet.
Review: Line 75 exists. Step 2 (71-73) already has users move funds first, and the Warning at 20-24 says balances stay in Privy wallets. Only a per-user gate is missing.
gatekeeper/migration-guide.md:25From the report
Evidence: "That's it! … Gatekeeper returns identical responses."
gRPC and devnet are not served by the new host (gatekeeper/overview.md), and the only check offered is to watch latency.
list the unsupported surfaces up front, compare responses and error rates from both hosts, and set a go/no-go threshold.
Review: "That's it!" is at 25. "Identical responses" is at 169 (troubleshooting). overview.md:47,216 state LaserStream is unsupported, but the guide does not repeat it. The devnet claim has no support: Grep devnet in gatekeeper/ gave 0 hits (control: gRPC hit).
sending-transactions/sender.md:128From the report
Evidence: lamports: 1 * LAMPORTS_PER_SOL, together with skipPreflight: true, maxRetries: 0 and "You've successfully submitted a transaction".
use a tiny amount in the first-run example and add the confirm step.
Review: lamports: 1 * LAMPORTS_PER_SOL (128), skipPreflight: true, maxRetries: 0 (155-156). Line 279 says "successfully submitted", not landed. Only the large amount is a fair nit.
agents/overview.md:9From the report
Evidence: "agents can access the full power of Helius without any manual intervention", versus agents/cli.md:55 ("Default: print a hosted payment link") and :130 ("asks for confirmation").
there is no non-interactive flag, no documented resume timeout, and nothing says where the key lands.
state the manual step before launch, document a non-interactive route, the timeout and the exit codes, and name the file and the command that return the key.
parsed-streams/guides/track-pumpfun-mints.md:9From the report
Evidence: "This guide builds a long-running listener for every new Pump.fun token." Line 96 has setTimeout(connect, 3000), and results are only logged to the console.
deploys during a reconnect are lost, nothing is stored, and the fixed 3-second retry has no backoff.
persist each event and a slot checkpoint, backfill the gaps, use backoff, or state that the listener is lossy.
Review: Lines 9 and 96 ok. The guide is a logger by design ("logs every new token mint"). It has an error handler (89), and the Tip at 104 already says the fixed 3 s delay is for simplicity and links the backoff guide.
api-reference/authentication.md:39From the report
Evidence: "Include your API key as a query parameter in all requests", and AGENTS.md:40 says "every surface requires an api-key query parameter".
keys in URLs leak through logs, proxies, history and referrers. sending-transactions/sender.md:514 shows the key-bearing URL under "Frontend/Browser Applications", and the wallet, enhanced and parsed-events pages do the same.
lead with header authentication (the Admin and Wallet APIs already accept X-Api-Key), and warn against query keys in browsers.
Review: sender.md:514 shows the key under "Frontend/Browser". Header auth exists for some APIs (X-Api-Key in wallet-api.json ×3, admin-api.json ×2). This is vendor design, so the impact is limited.
rpc/guides/gethealth.md:55From the report
Evidence: console.log(getHealth result for ${rpcUrl}:, health);
log only the host or a label.
Review: Line 55 logs rpcUrl, and the call at 64 passes a URL with ?api-key=.
sending-transactions/jupiter-swap-api-via-sender.md:76From the report
Evidence: const PRIV_B58 = 'Your private key in base58';. The same is in sender.md, sender-max.md, sender-swqos-only.md and estimating-fees-using-serialized-transaction.md.
load keys from the environment, a keypair file outside the repository, or a secret manager.
Review: 'Your private key in base58' at jupiter-swap-api-via-sender.md:76. Also sender.md:172, sender-max.md:226, sender-swqos-only.md:192, estimating-fees-using-serialized-transaction.md:221. These are placeholders.
agents/skills/okx.md:55From the report
Evidence: curl -fsSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | bash, plus npx helius-mcp@latest in the plugin and MCP configs.
these processes can read the local keypair and sign transfers.
pin versions or commit hashes, and publish checksums.
agents/mcp/tools.md:162From the report
Evidence: | transferSol | Send SOL to another wallet (supports sendMax to drain full balance) |. mode: "autopay" pays from the local keypair.
agents read untrusted text such as token names and web pages, so injected instructions can move funds.
require human approval or enforced spend limits and destination allow-lists, and default sendMax off.
Review: tools.md:162-163 list sendMax, and :53 has autopay. The pages do not say confirmation or limits are absent, so that part cannot be shown from them.
waas/migrating-from-privy.md:31From the report
Evidence: | PrivyProvider with appId | HeliusWalletProvider with { apiKey } |, while waas/quickstart.md:31 says "Omit the API key" and line 77 uses NEXT_PUBLIC_HELIUS_API_KEY.
make every wallet-kit page follow the server-side route-handler setup.
Review: The disagreement is real: migrating-from-privy.md:31,44 pass { apiKey }, while quickstart.md:31 says omit it. But quickstart.md:77 is labelled "local testing only" (83) and securing-your-key.md:9 says a client-side key is expected.
privacy/integration/wallet.md:523From the report
Evidence: "The Privacy SDK can resolve a private transfer to a private-to-public withdrawal, when the recipient does not have a Private Wallet."
a mis-routed transfer permanently discloses the asset, the amount and the recipient.
fail closed unless the caller opts in explicitly, and require a separate confirmation.
Review: Line 523 is real, but "silently" is wrong: privacy/llms.txt:35 says to label it as a withdrawal in UIs, and wallet.md:118,208 say the API can resolve it that way.
privacy/integration/wallet.md:35From the report
Evidence: allowed-tools: Bash, Read, Write, Edit, Glob, Grep, WebFetch, …
the task edits key-management code while ingesting remote content, so injected text could run shell commands.
restrict the tools, require approval for shell, and treat fetched content as untrusted.
Review: allowed-tools: Bash, … WebFetch … at 35. It is a prompt template.
_openapi/enhanced-api.json:119From the report
Evidence: "x-amazon-apigateway-integration": { … "uri": "http://PLACEHOLDER_VIEW_LAYER_DNS_NAME/…", "connectionType": "VPC_LINK"
the extensions reveal internal topology and break code generators.
strip the deployment-only extensions before publishing.
Review: enhanced-api.json:119 and 11+ more x-amazon-apigateway-integration blocks (72 matching lines). webhooks.json still has 21, the same count as 2026-05-28. Placeholder text only.
rpc/how-to-index-solana-data.md:311From the report
Evidence: "After backfilling historical data, you need a real-time streaming solution…", with no overlap or upsert.
start the stream before the backfill ends, resume from the last stored slot, and upsert on a stable key.
Review: Line 311 is real, but the recommended LaserStream method (313-321) advertises replay "from where you left off". The guide leaves out overlap and upsert advice.
rpc/optimization-techniques.md:169From the report
Evidence: changedSinceSlot: lastProcessedSlot with limit: 1000 and no pagination. agents/typescript-sdk/best-practices.md:162 takes const lastSlot = currentSlot; after the baseline read.
changes made during the read and everything past the first page are missed, and deleted accounts are never reported.
record the slot first, paginate to the end, then advance the watermark, and reconcile periodically.
Review: changedSinceSlot: lastProcessedSlot with limit: 1000 and no pagination (169-188). These are short snippets.
rpc/gettransactionsforaddress.md:672From the report
Evidence: do { const result = await getNextPage(paginationToken); allTransactions.push(...result.data); … } while (paginationToken);
any error throws partway through with no checkpoint. enhanced-transactions/transaction-history.md:464 returns truncated history as complete, and its line 221 ends silently when the retry budget runs out.
check the status, retry with backoff, persist the cursor, and return an "incomplete" flag.
Review: The loop at 672-678 throws on error, which loses the checkpoint. The "ends as complete" case is transaction-history.md:464-466 (non-array breaks and the partial result is returned). 221 ends silently when retries run out.
rpc/gettransactionsforaddress.md:467From the report
Evidence: a monthly report built from one "limit": 1000 call with no continuation. quickstart/portfolio-tracker.md:77 counts only the first 20 assets, and wallet-api/balances.md:300 reports "not found" beyond page 1.
follow the pagination token, or label the figures as partial.
Review: One call with "limit": 1000 and no continuation (467-491). portfolio-tracker.md:55-58 loads page 1, limit 20. balances.md:300 checks only page 1.
rpc/websocket/transaction-subscribe.md:262From the report
Evidence: const metadata = { symbol: tokenInfo.symbol || '?', decimals: tokenInfo.decimals ?? 0 }; TOKEN_META.set(mint, metadata);
decimals of 0 mis-scale every later amount for that mint, and the empty catch {} hides errors.
do not cache fallback values, log errors, and bound the cache.
Review: A response without token_info is cached as '?', decimals 0 (262-264). A thrown lookup is not cached; it is swallowed by catch (e) {} at 341.
rpc/websocket/transaction-subscribe.md:231From the report
Evidence: buf.readBigUInt64LE(32), with } catch (e) {} at line 341.
validate the discriminator and the length first, and log rejected input.
Review: Reads at 234-237. A short buffer throws RangeError, caught at 341, so the instruction is dropped silently, not crashed. The handler pre-filters on the OpenDcaV2 log (316).
wallet-api/balances.md:53From the report
Evidence: const solBalance = data.balances[0]; // SOL is always first when showNative=true, while line 15 says results are sorted by USD value.
find SOL by its mint.
Review: balances[0] // SOL is always first (53) versus "sorted by USD value" (15). The actual ordering is not shown.
wallet-api/history.md:278From the report
Evidence: "token mint address, or "SOL" for native SOL", while the response example at line 254 uses So11111111111111111111111111111111111111111 and the code compares with 'SOL'.
document one identifier and align the samples.
Review: "SOL" (278, 287) versus So111…111 in the response example (254; 43 chars, not the …112 wrapped-SOL mint). "Code compares with 'SOL'" not found (Grep 'SOL' in history.md: 0 hits).
das/pagination.md:216From the report
Evidence: let promise: Promise<number> = new Promise(async (resolve, reject) => {
use plain async functions, check responses, back off, and cap concurrency at the plan's rate.
Review: new Promise(async (resolve, reject) (216) is an anti-pattern, but in current Node the rejection is an unhandled rejection that surfaces, not a silent hang.
billing/pay-with-crypto.md:72From the report
Evidence: "Approve a one-time authorization … This allows the program to transfer USDC for your subscription."
state the allowance ceiling, the period, the expiry and how to revoke it on-chain.
Review: The cap and expiry are indeed not stated, but the FAQ (pay-with-crypto.md:121-122) says removing a wallet revokes the authorization.
billing/rate-limits.md:434From the report
Evidence: const res = await request(); sits outside any try/catch, while the table above says network errors are retryable.
the pages also give three different retry policies, and parseInt(Retry-After) fails on the date form.
wrap the request, handle both Retry-After forms, and define one policy.
Review: await request() (434) has no try/catch, while the table (420) says network errors retry. The Python and shell variants do the same.
sending-transactions/send-manually.md:203From the report
Evidence: const signature = await connection.sendTransaction(finalTransaction, { skipPreflight: true });, sent once, while the page says to rebroadcast.
resend the same bytes every 1–2 seconds until confirmed or expired, and check the simulation error.
Review: It sends once (203), but the page has the step "Send and Re-broadcast" (37), requires own rebroadcast logic (177), and line 230 calls this a basic loop.
sending-transactions/optimizing-transactions.md:339From the report
Evidence: } catch (error) { continue; }, and the function ends without a return or a throw.
back off between attempts, rethrow non-retryable errors, and throw on timeout.
Review: catch (error) { continue; } (339) and no return after the loop are real, but this is an excerpt of SDK internals shown for explanation (316-346), not a recommended sample.
sending-transactions/optimizing-transactions.md:22From the report
Evidence: "Helius' staked connections guarantee 100% transaction delivery", while line 303 says the transaction can still be dropped.
describe forwarding as best-effort and keep the rebroadcast advice next to it.
Review: "guarantee 100% transaction delivery" (22) versus the Warning at 303 that a transaction can still be dropped.
parsed-streams/guides/track-jupiter-swaps.md:43From the report
Evidence: "include": ["So11111111111111111111111111111111111111112"],, combined with AND.
drop the include entry (the role filter already pins the wallet), or state that only SOL swaps are matched.
Review: The wrapped-SOL include (43) combined with AND narrows results, and the page says so ("touch the wallet's SOL account", 36). Narrower than the stated goal (9), but disclosed.
parsed-streams/guides/handling-reconnects.md:76From the report
Evidence: if (lastSlotSeen !== null && slot > lastSlotSeen) { // backfill candidates … } lastSlotSeen = slot;
trigger backfill only after a reconnect, and advance and persist the cursor after processing.
Review: Line 76 is a comment-only stub run on every message. It marks where to backfill and the text above (36-40) describes the reconnect logic.
pre-confirmations/guides/trade-on-preconfirmations.md:102From the report
Evidence: await fetch('http://ewr-sender.helius-rpc.com/fast', { … }), where the response is never read and the call site has no catch.
attach .catch, check json.error, and track the signature.
Review: The fetch response is unread and the call site has no catch (102-111, 80). But the same listener is meant to exit and be restarted (84), and the strategy is a placeholder.
agents/skills/overview.md:167From the report
Evidence: model="claude-sonnet-4-6-20250514",
use a currently documented model id, or read it from configuration.
Review: model="claude-sonnet-4-6-20250514" is present (167) and the date suffix looks inconsistent. Existence needs the model registry, not these pages.
quickstart/portfolio-tracker.md:174From the report
Evidence: <img src={img || ''} alt="" …/>. Line 184 uses files[0].uri with no fallback and can produce an undefined alt.
render a placeholder when there is no URL, handle onError, and prefer links.image.
Review: src={img || ''} (174) is real. Line 184 does have a fallback (: ''), so "no fallback" is wrong. The only gap is the alt fallback.
quickstart/portfolio-tracker.md:437From the report
Evidence: <input className="flex-1 border rounded p-2" value={address} onChange={…} />
add a label or aria-label="Wallet address".
Review: <input … value={address} …/> has no label or aria-label (437-441).
Info after review (10)
api-reference.md:2. The same three lines open nearly every page.From the report
> ## 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.
this is an imperative aimed at automated readers, embedded in the content itself. It points at your own domain and is most likely platform boilerplate. Still, any agent that reads your pages is told to fetch and follow remote content before doing anything else. If that index were ever altered, every agent would follow it. api-reference/authentication.md:83 does the same with "For complete instructions, read: …/agents.md".
remove the block from page bodies. Expose the index through a Link header, the llms.txt convention or page metadata instead of prose addressed to the reader.
Review: It is the standard llms.txt convention, points at the vendor's own domain, and the report itself calls it "most likely platform boilerplate". Nothing exploitable is shown.
privacy/integration/on-off-ramp.md:104From the report
Evidence: "match the transfer by the sender's Solana address".
the guide does not require the decrypted mint and the exact amount to match the order before a fiat payout.
credit only when the decrypted sender, mint and amount all match the order.
Review: Line 104 does say "match the transfer by the sender's Solana address". But line 91 says "You decrypt the transfer and check the amount", and line 93 applies amount thresholds. Only the mint check is missing from the text.
waas/using-the-wallet.md:50From the report
Evidence: const signature = await signMessage("Sign in to Acme");
if this is used for authentication, the signature can be replayed.
sign a server-issued nonce with domain and expiry, and verify and consume it server-side. Otherwise label the sample as a signing demo.
Review: Line 50 is under "### Sign a message", an API demo. The page does not present it as authentication.
gatekeeper/overview.md:232From the report
Evidence: "Coming Months: Gradual migration of all traffic to Gatekeeper as the default". waas/overview.md:11 says breaking changes are communicated "on an as-needed basis".
customers get no notice period.
define notice periods, measure the remaining use of the old default, and switch only once it is near zero.
Review: The wording is in a Beta note on a beta product. The Gatekeeper timeline is an explicit opt-in roadmap.
quickstart/portfolio-tracker.md:96From the report
Evidence: const ws = new WebSocket(…); wsRef.current = ws;
call stopLive() at the start of startLive.
Review: startLive (line 90) does not call stopLive. But the button is replaced by "Stop live feed" while status is live or connecting (line 145), and handleLoad calls stopLive() at line 52.
sending-transactions/send-manually.md:209From the report
Evidence: while (!confirmed) { const statuses = await connection.getSignatureStatuses([signature]); const currentBlockHeight = await connection.getBlockHeight(); Also in rpc/guides/requestairdrop.md:132 and quickstart/deploy-program.md:179.
use signatureSubscribe or confirmTransaction with the block height limit, and poll only as a fallback.
Review: Line 209 is a polling loop with a block-height expiry check (lines 219-223). The page calls it "a basic polling loop" (line 230). Polling is the page's stated approach.
rpc/websocket/transaction-subscribe.md:126From the report
Evidence: "subscription": 4743323479349712,
state an upper bound, or return the id as a string and accept either form on input.
Review: 4743323479349712 at line 126 is about 4.7e15, below 2^53 (9.007e15).
rpc/websocket/transaction-subscribe.md:246From the report
Evidence: if (TOKEN_META.has(mint)) return TOKEN_META.get(mint); … await fetch(…)
cache the promise per mint, remove it on failure, and bound the map.
Review: TOKEN_META.has(mint) at line 247 is as described. It is a nicety, not a defect.
privacy/integration/wallet.md:95From the report
Evidence: ### 6. Verify - Every interface method … implemented - No secrets in logs … - TS: Bash tsc --noEmit + existing tests
add one real derivation, deposit, transfer and withdrawal on localnet or devnet, plus a concrete log scan.
Review: Step 6 (95-99) also requires all interface methods, no secrets in logs, existing tests, and cargo test. Step 3 asks localnet or devnet (79). It is an assistant prompt.
gatekeeper/migration-guide.md:134From the report
Evidence: const useGatekeeper = Math.random() < 0.1;
bucket by a stable client or session id, label each request with its host, and fall back automatically on errors.
Review: Line 135 is real, but the section is labelled optional "Percentage rollout (10% of traffic)". It is stateless RPC, and an env-flag option is shown at 123.
Excluded on review (1)
Findings the review showed to be wrong or a repeat of another finding. They are not counted above.
- 56. Stream consumers assume an exact payload shape (wrong): The guide's subscription sets no
details, and its own comment at lines 157-159 says the default is "full", wherematchedIndexesis present.