PrivateDAO Private Checkout
privatepay_checkoutCreate a MagicBlock PrivatePAY checkout or request the payment-required challenge for an existing checkout. Use this to begin a private checkout instead of create_paid_job with direct USDC; it returns commercial terms only and never signs, broadcasts, or moves funds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "privatepay_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | No | Solana payer wallet public key; never a private key. | |
| phase | No | Use create for a new checkout or challenge to request the payment-required response for an existing payment_id. | create |
| resource | No | HTTPS resource or service endpoint being purchased. | |
| payment_id | No | Existing 64-character checkout identifier when phase is challenge. | |
| description | No | Human-readable commercial description shown in the checkout response. | |
| amount_base_units | No | Quoted USDC amount in base units. | |
| expires_in_seconds | No | Challenge lifetime in seconds, between one minute and one day. | |
| external_reference | No | Merchant-owned idempotency or order reference. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Checkout state or next action. | |
| payment_id | No | Checkout identifier used to request the challenge or continue the checkout. | |
| payment_required | No | Exact x402 v2 requirements when the challenge phase is requested. | |
| payment_required_header | No | HTTP PAYMENT-REQUIRED value when returned. |