submit_vault_call
Build, prove, sign, and submit any AttestationVault call in one sponsored transaction, then wait for on-chain confirmation; retries are deduplicated.
Instructions
Run any AttestationVault call in one go: build, prove and sign it here with the caller seed, a sponsor pays, and the tool waits until it landed. Same calls and params as build_sponsorable_transaction: the ZK claims over a hidden field (proveFieldPredicate, proveFieldEquality, proveFieldMembership), the claims across two documents (proveFieldsUnchangedExcept, proveFieldsDiffer), disclosure (grantDisclosure, revokeDisclosure), passports and anchoring. The witness from prepare_document_proof is used here and never sent. Returns { status, attesterId, contractAddress, txHash, transactionHash, timings, check }; check is the free verify call that shows the effect on-chain. A failed job says in next what to do. If the call was cut off or came back pending, run it again with the same arguments: it picks up the job it started and submits nothing new (the answer says deduplicated). With an idempotencyKey that also holds after a restart of this server. A second, separate call with the same arguments needs a new idempotencyKey.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"call": "<call>",
"params": "<params>"
},
"name": "submit_vault_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call | Yes | Which circuit to call | |
| params | Yes | The call parameters, listed per call in build_sponsorable_transaction | |
| docPair | No | WITNESS { schema, openingA, openingB } for proveFieldsUnchangedExcept and proveFieldsDiffer | |
| merkleProof | No | WITNESS for the proveField* calls, as prepare_document_proof returns it for that field | |
| idempotencyKey | No | Dedupes retries of the same call | |
| contractAddress | No | AttestationVault address (64 hex); default NIGHTGATE_SANDBOX_VAULT, else the shared sandbox vault of the network (preprod, preview) | |
| compiledArtifactRef | No | Vault lineage, default 'attestation-vault-32' (the sandbox vaults); 'attestation-vault' for a 16-slot vault |