PrivateDAO Payment Challenge
privatepay_challengeCreate a fresh PrivatePAY x402 v2 challenge for a resource and quoted USDC amount. Call this before privatepay_verify; it returns exact payment requirements and the PDAO private-settlement rule, but never signs, broadcasts, or charges a wallet.
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": {
"resource": "<resource>",
"provider_id": "<provider_id>",
"amount_base_units": "<amount_base_units>"
},
"name": "privatepay_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | Optional caller nonce used to bind a fresh challenge. | |
| resource | Yes | Stable HTTPS resource or service identifier being purchased. | |
| mime_type | No | Optional response media type for the purchased resource. | |
| provider_id | Yes | PrivatePAY provider or merchant identifier. | |
| amount_base_units | Yes | Quoted USDC amount in token base units, not a decimal display amount. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| privacy | No | Redacted privacy boundary for the challenge. | |
| request_id | No | Fresh challenge or payment request identifier. | |
| payment_required | No | Exact x402 v2 requirements to present to the payer. | |
| payment_required_header | No | HTTP PAYMENT-REQUIRED value when returned by the checkout flow. |