Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix: json-rpc relay operator docs (public key as operator key, unlimited hbar spend, websocket)

Aperta Adatta ai principianti
#797 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, markdown

Direzione di ricerca

Inizia con i tre file indicati nell'issue: operators/json-rpc/setup.mdx, operators/json-rpc/configuration.mdx e operators/json-rpc/index.mdx. Percorsi la tabella dei problemi di sei righe riga per riga — ogni riga fornisce già la file:line, il testo errato e la fonte per confermare il valore corretto (ad es. sostituire il placeholder della chiave pubblica 302d…, aggiungere RPC_WS_ENABLED=true e la Warning che limita HBAR, fissare ghcr.io/hiero-ledger/hiero-json-rpc-relay:0.79.0). Finito significa che ogni casella nell'elenco delle correzioni è stata applicata e che un revisore può eseguire docker compose up con il .env documentato e ottenere eth_chainId → 0x128, oppure l'affermazione è etichettata come non testata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Audit Bug P0 tab/operators

parent: #785

sources: verified 2026-10-06 against docs f0c4c87d, hiero-sdk-js 165df3acad (2.89.1), hiero-sdk-java 4d3646376e (2.78.0), hiero-sdk-go 2c21d88e12 (v2.85.1), hiero-mirror-node 4a946f1d9b (release v0.164.0), hiero-json-rpc-relay d430b651c7 (release v0.79.0), hiero-consensus-node 3589298689 (release v0.77.2), hiero-contracts 5ade6c8c0c, hedera-smart-contracts 43854b5c92.

what's wrong

checked against hiero-json-rpc-relay d430b651c7.

file:line problem source
operators/json-rpc/setup.mdx:41 OPERATOR_KEY_MAIN=302d300706052b8104000a0322000334…. 302d… is an ECDSA public key DER. the relay parses this field as a private key, so startup fails. relay src/relay/utils.ts (PrivateKey.fromStringDer); SDK EcdsaPublicKey.js:9
operators/json-rpc/configuration.mdx:34-47 only IP tiers, then "tune these based on … how much operator HBAR you're willing to spend". IP tiers don't cap HBAR. the HBAR limiter defaults to off. globalConfig.ts:368-371 HBAR_RATE_LIMIT_TINYBAR default 0 // limits turned off
operators/json-rpc/index.mdx:18 self-hosted cost "Infra cost only" configuration.mdx:24 (operator pays); relay.ts:505-545 (zero balance aborts startup)
configuration.mdx:32 "use the .env.ws.example template; it ships with its own port and host settings". WS starts only with RPC_WS_ENABLED=true (default false), which the template doesn't set. globalConfig.ts:1005-1008; src/index.ts:35,66
setup.mdx:32,45-49 compose always starts relay + relay-ws + redis and pulls unreleased :main (pull_policy: always). latest tag doesn't exist; release tag is 0.79.0 (no v). docker-compose.yml; GHCR tag list
configuration.mdx:18-22 operator vars marked required; READ_ONLY mode not mentioned; zero operator balance aborts startup globalConfig.ts:610-622,660; relay.ts:284,505-545

fix

  • placeholder OPERATOR_KEY_MAIN=3030020100300706052b8104000a04220420…, plus a note that 302d…/302a… are public keys. show the HEX_ECDSA + 0x… alternative.
  • "HBAR spending limits" section: total budget, duration, tiers, spending plans file (spendingPlansConfig.example.json), and a <Warning> that the default is unlimited. use source defaults; upstream docs/configuration.md and hbar-limiting.md are stale.
  • index.mdx cost row: "infra + operator HBAR for relayed transactions + a production mirror node".
  • WebSocket: RPC_HTTP_ENABLED / RPC_WS_ENABLED, WEB_SOCKET_PORT 8546, WEB_SOCKET_HTTP_PORT 8547.
  • say what compose starts. pin ghcr.io/hiero-ledger/hiero-json-rpc-relay:0.79.0 for anything beyond a local trial.
  • "required unless READ_ONLY=true". prereq: operator needs a nonzero balance.

acceptance

  • a reviewer runs docker compose up with the documented .env against testnet and gets eth_chainId → 0x128 (or labels it untested).

files: operators/json-rpc/{index,setup,configuration}.mdx

related: #340 (paymaster on your own relay, separate scope). upstream relay docs drift to report.

Lingua principale
MDX
Stelle
11
Fork
51
Merge medio
23h 44m
PR unite (30g)
28

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hashgraph/hedera-docs

Tutte le issue di hashgraph/hedera-docs

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.