verify_root_inputs
Independent root verification (see tools/root_verifier.py for the recompute logic).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_seq | No | Specific root sequence to verify. If omitted, best-effort resolution via resource metadata or latest. | |
| resource_name | No | WZRD protocol resource (deposit/claim/settle etc.) for auto-detection and seq hints. | |
| seller_wallet | No | Seller wallet for WZRD protocol resource detection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message on the ERROR path; null on PASS/FAIL. | |
| status | No | "PASS" = recomputed GLOBAL_V5 leaves + dataset_hash + sorted-pair root match the published values. "FAIL" = mismatch (do not trust the root). "ERROR" = could not run (fetch failure / missing data). | |
| root_seq | No | Root sequence number that was verified. | |
| leaf_count | No | Number of leaves (users) in the verified root. | |
| onchain_match | No | Always null: this tool does NOT read Solana/the AO program. Use server_consistent for the recompute result; do not gate on-chain actions on this field expecting a chain anchor. | |
| leaf_hash_match | No | True iff every server-provided leaf_hash matches the locally recomputed value. | |
| recomputed_root | No | Independently recomputed sorted-pair keccak256 merkle root (hex). | |
| server_consistent | No | True iff the recomputed root/dataset_hash matches the value the SERVER published alongside its own leaves (self-consistency). NOT an on-chain check. Null when not comparable. | |
| recomputed_dataset_hash | No | Independently recomputed keccak-concat dataset_hash (hex). |