Skip to content
Fourohtwo

api.h081.xyz/v1/x402/prove/disclose

Proves a statement about a stipend_pool allowance (Groth16 disclose circuit): remaining at least, lifetime spend at most or window spend at most a bound, for an audience, as of a root the pool knows. Input: the allowance figures and policy (the prover sees them), its Merkle path, the bound and the audience; no spending key. Output: the proof, its public signals and the payload for verify_disclosur

SolanaAnswering
POSThttps://api.h081.xyz/v1/x402/prove/disclose

Uptime100% of 4 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://api.h081.xyz/v1/x402/prove/disclose" \
  -d '{"allowance":{"agentPk":"0x2c3d4e5f","asset":"0x1111111111111111111111111111111111111111","pledgePaid":"0","policy":{"expiry":"0","lender":"0","lifetimeCap":"1000","maxPerTx":"0","ownerPk":"0x6a7b8c9d","pledgeBps":"0","recipientRoot":"0","streamRate":"0","streamStart":"0","windowCap":"0","windowLen":"86400"},"remaining":"640","rho":"0x4e5f6a7b","windowId":"0","windowSpent":"0"},"audience":"77","bo'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{"allowance":{"agentPk":"0x2c3d4e5f","asset":"0x1111111111111111111111111111111111111111","pledgePaid":"0","policy":{"expiry":"0","lender":"0","lifetimeCap":"1000","maxPerTx":"0","ownerPk":"0x6a7b8c9d","pledgeBps":"0","recipientRoot":"0","streamRate":"0","streamStart":"0","windowCap":"0","windowLen":"86400"},"remaining":"640","rho":"0x4e5f6a7b","windowId":"0","windowSpent":"0"},"audience":"77","bo

More from H081 CapitalProvider status