Build seller payment requirements
x402.build_sellerBuild seller-side x402 payment requirements for your own HTTP resource. Pass resource_url plus discovery_* fields to catalog the endpoint in Bazaar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | List price string. Default '$0.01'. Example: '$0.05'. | $0.01 |
| pay_to | No | 0x recipient for USDC. Example: '0x67ff…'. Omit to use X402_PAY_TO_ADDRESS. | |
| scheme | No | x402 payment scheme. Default 'exact'. | exact |
| network | No | CAIP-2 settlement network. Default eip155:84532 (Base Sepolia). Mainnet: eip155:8453. | eip155:84532 |
| agent_id | No | Optional agent identity for quota accounting. | |
| mime_type | No | Resource MIME type. Default application/json. | application/json |
| description | No | Human-readable description embedded in PAYMENT-REQUIRED. | Paid MCP-backed API access |
| discoverable | No | If true, embed the Bazaar discovery extension. Omit to use server default. | |
| resource_url | No | Public URL of the paid resource. When set with discovery_* fields, Bazaar catalogs the endpoint after a settled payment. | |
| discovery_method | No | HTTP method advertised to Bazaar. Default GET. | GET |
| discovery_input_example | No | Optional example input object for Bazaar. Omit if none. | |
| discovery_output_example | No | Optional example output object for Bazaar. Omit if none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |