wallet/getmerkletreevoucherinfo; attempting to POST to that route returns HTTP 405. Build voucher data locally from shielded commitments and anchors.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Inputs
output_point— the output commitment/point for which you need a Merkle path.ak— authentication key (64‑hex) used in verification.nk— nullifier key (64‑hex) used in verification.position— leaf index in the commitment tree.
Outputs
voucher_info— voucher data structure used in verification circuits.paths[]— Merkle path elements (sibling hashes) from leaf to root.anchors[]— accepted anchor(s) (tree roots) for the proof context.rt— Merkle root.output_point_info— metadata about the output commitment.
How to build it locally
- Maintain or query a local view of the shielded commitment tree (from blocks and shielded notes).
- Locate the
position(leaf index) foroutput_point. - Ascend the tree computing sibling hashes to assemble
paths[]and the rootrt. - Package
voucher_infowithak,nk,position,paths[], andrtaccording to your proof/verifier requirements.
Pseudocode sketch
Public nodes typically return HTTP 405 for this route. Build voucher data client‑side using a local tree or a dedicated indexer, then submit proofs with your transaction flows.