Edit this page on GitHub (opens in a new tab)
Ukurasa huu ni mwongozo wa kuwasiliana na full node inayofanya kazi ya Zcash kupitia JSON-RPC na kuunganisha kiorodheshi ambacho pochi nyepesi na vichunguzi vinaweza kuuliza. Huu si mwongozo wa pili wa usakinishaji.
Kwa maelezo ya jinsi ya kuanzisha mfumo baada ya zcashd (Zebra + Zallet, Zaino ya hiari, bandari, kiasi cha hifadhi, uanzishaji wa awamu mbili), tumia ukurasa wa Mfumo wa Z3 na hazina ya Z3. Kwa maelezo ya msingi kuhusu node ya makubaliano [consensus node], angalia Full Nodes na Zebra Full Node.
zcashd ilifikia mwisho wa matumizi tarehe 18 Julai 2026. Kazi mpya za waendeshaji zinapaswa kulenga Zebra (au Zakura) pamoja na pochi/kiorodheshi, si zcashd.
http://127.0.0.1:8181 hukubali zebra / zebra na kuelekeza mbinu za node kwa Zebra na mbinu za pochi kwa Zallet.--profile indexer) hutoa gRPC inayooana na lightwalletd. Ztreamer ni kiorodheshi kinachotegemea Zakura; si kile ambacho Z3 husambaza.| Unataka | Wasiliana na | Bandari ya seva pangishi ya Z3 mainnet | Maelezo |
|---|---|---|---|
Kilele cha mnyororo, wenzake, getblockchaininfo | JSON-RPC ya Zebra | 8232 | Uthibitishaji wa cookie |
| Salio la pochi, anwani, kutuma | RPC ya Zallet | 28232 | Mchakato tofauti; programu ya beta |
| Block fupi za pochi nyepesi | gRPC ya Zaino | 8137 | Kwa --profile indexer pekee; h2c ya maandishi wazi |
| Proksi ya JSON-RPC ya kichunguzi / chanzo cha sarafu za bure | JSON-RPC ya Zaino | 8237 | Mtandao unaoaminika pekee |
| Kufanyia mazoezi yote yaliyo hapo juu bila kusawazisha | Kipanga njia cha RPC cha Z3 regtest | 8181 | Jina la mtumiaji zebra / nenosiri |
Jedwali la bandari na majina ya miradi ya Compose: na z3-contract.yaml.
Kutoka kwenye checkout ya Z3, baada ya ./scripts/regtest-init.sh na docker compose --env-file .env.regtest up -d:
# Node method (Zebra)
curl -s -X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"getblockchaininfo","params":[],"id":1}' \
http://127.0.0.1:8181
# Wallet method (Zallet)
curl -s -X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"getwalletinfo","params":[],"id":2}' \
http://127.0.0.1:8181
Matokeo salama ya getblockchaininfo yanajumuisha "blocks" na ramani ya "upgrades". Ikiwa curl inanasa, kipanga njia hakijaanza; ukipata 401, unawasiliana na Zebra moja kwa moja badala ya kipanga njia (Zebra ya moja kwa moja kwenye regtest ni 29232 na bado inatarajia vitambulisho vya kipanga njia isipokuwa umevibadilisha).
Mtiririko kamili wa kazi wa regtest, ikijumuisha uchimbaji wa block za uanzishaji: Z3 docs/regtest.md.
Kwenye mainnet na testnet, Zallet na huduma ya hiari ya Zaino husoma kiasi cha hifadhi cha cookie kinachoshirikiwa. Cookie hiyo huzalishwa upya wakati wa uanzishaji; si lengo la kuhifadhi nakala.
Usichapishe JSON-RPC ya Zebra kwenye intaneti ya umma. Iite kutoka kwenye mtandao wa Compose (zebra:8232) au kutoka kwa seva pangishi tu ikiwa umeifunga kwenye loopback.
Ukaguzi wa kawaida wa mwendeshaji baada ya Zebra kuwa /ready:
# Wait until Zebra is synced (Z3 helper)
./scripts/check-zebra-readiness.sh
# Then start Zallet
docker compose --env-file .env.mainnet up -d
getblocktemplate / getmininginfo ni RPC za uchimbaji. Mabwawa ambayo bado yalitarajia mchakato mmoja wa zcashd yanahitaji Zebra (au Zakura) kwa violezo pamoja na pochi yoyote wanayotumia kwa coinbase. Angalia na .
Uthibitishaji na uorodheshaji ni kazi tofauti.
Zaino husoma Zebra na kutoa API ya gRPC inayooana na lightwalletd pamoja na proksi ya JSON-RPC. Zallet haihitaji kontena huru la Zaino; inajumuisha maktaba za Zaino na kuwasiliana na Zebra kupitia JSON-RPC. Anzisha Zaino huru unapohitaji pochi nyepesi za nje, vichunguzi, au vyanzo vya sarafu za bure:
docker compose --env-file .env.mainnet --profile indexer up -d
Subiri hadi Zebra isawazishwe kabla ya kuelekeza wateja kwa Zaino. Kiorodheshi cha wingi katika hali ya kufikia usawazishaji chenye ushindani mkubwa wa uchukuaji kinaweza kupunguza kasi ya kithibitishaji cha Zebra; weka fetch_concurrency katika tarakimu ndogo za tarakimu moja hadi kiorodheshi kifikie usawazishaji.
gRPC ya Regtest (maandishi wazi; bandari 28137):
# From the Z3 repo, after: scripts/vendor.sh zaino
# and: docker compose --env-file .env.regtest --profile indexer up -d zaino
grpcurl -plaintext \
-import-path vendor/zaino/zaino-proto/proto \
-proto service.proto \
127.0.0.1:28137 \
cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLightdInfo
grpcurl -plaintext \
-import-path vendor/zaino/zaino-proto/proto \
-proto service.proto \
-d '{}' \
127.0.0.1:28137 \
cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestBlock
gRPC ya Zaino ni h2c ya maandishi wazi kwenye mitandao yote. Sitisha TLS kwenye proksi geuzi ikiwa kitu chochote nje ya seva pangishi kitaunganisha. Maelezo: na Z3 docs/regtest.md.
CompactTxStreamer. Si huduma ya Z3. Angalia Ztreamer hazina.rpc.indexer_listen_addr — kisikilizaji cha gRPC cha hiari ndani ya Zebra. Z3 haikihitaji na haikichapishi kwa seva pangishi.Kuita mbinu za pochi kwenye Zebra. getwalletinfo na RPC za kutuma ni za Zallet (au pochi nyingine), si za node ya makubaliano.
Kuanzisha Zallet kabla ya Zebra kuwa /ready. Zallet itaingia kwenye mzunguko wa kuanzisha upya. Tumia scripts/check-zebra-readiness.sh kwenye mainnet/testnet.
Kunakili zebra/zebra za regtest kwenye mainnet. Uthibitishaji wa cookie ndio chaguo-msingi la mainnet/testnet kwa sababu.
Kuchukulia Zaino kama full node. Zebra (au Zakura) huthibitisha. Zaino huorodhesha.
Kuweka JSON-RPC ya Zaino au gRPC ya kiorodheshi cha Zebra hadharani. Vituo hivyo ni vya loopback au mtandao binafsi unaoaminika.
Kudhani kuwa kila pochi nyepesi tayari inazungumza Zaino. Angalia toleo la sasa la pochi dhidi ya itifaki inayotekeleza kwa kweli.
Ilisasishwa mwisho: Septemba 2026
Network Upgrade 6.3 (NU6.3) activated on mainnet at block 3,428,143 (about 28 July 2026) and introduced the Ironwood shielded pool; ZIP 258 specifies the height. Ironwood uses the Orchard shielded protocol but keeps a separate value pool, with its own note commitment tree, anchor and chain value pool balance. NU6.3 is a consensus upgrade, so a node that does not implement it stops following the chain.
zcashd does not implement NU6.3. Zebra is expected to be the only full validator that follows the chain after activation.getdeprecationinfo, added in Zebra 6.3.0, reports the height and estimated time at which a release halts for end of support, in the zcashd end_of_service format. The end_of_service object is present on mainnet only, where end of support is enforced.Pair every component with a release that supports NU6.3 and read each project’s release notes before upgrading. Avoid pinning guidance to a specific historical version, because releases move quickly. Two documented examples:
getblockchaininfo, and its chainSupply is the total across all pools. See the Zaino 0.10.1 release notes.MAX_MONEY. See the Zebra 6.3.0 release notes.Do not rely on the exact field layout of RPC responses for pool balances across versions; check the response of the version you run.
z3-contract.yaml for your network.zcashd wallet RPC methods may be missing. Check the Zallet documentation for the methods you need.zebra