Documentation Index
Fetch the complete documentation index at: https://docs.x402r.org/llms.txt
Use this file to discover all available pages before exploring further.
Marketplace Operator
A marketplace operator deployment includes: EscrowPeriod, Freeze, StaticAddressCondition (arbiter), OrCondition (receiver OR arbiter for refunds), optional StaticFeeCalculator, and the PaymentOperator itself. All deployed via CREATE3 factories.Configuration Options
| Option | Type | Description |
|---|---|---|
feeRecipient | Address | Address that receives operator fees |
arbiter | Address | Arbiter address for dispute resolution |
escrowPeriodSeconds | bigint | Escrow waiting period (e.g., 604800n for 7 days) |
freezeDurationSeconds | bigint | How long freezes last. Default: 0n (permanent until unfrozen) |
operatorFeeBps | bigint | Fee in basis points. Default: 0n (no fee). 100n = 1% |
Deployment Result Type
Deployment Result Type
summary for what was new vs reused.Preview Addresses (No Deploy)
Preview Addresses (No Deploy)
Compute addresses without deploying:
Marketplace Slot Configuration
Marketplace Slot Configuration
| Slot | Contract | Purpose |
|---|---|---|
AUTHORIZE_CONDITION | UsdcTvlLimit | Safety limit on authorization |
AUTHORIZE_RECORDER | EscrowPeriod | Records authorization timestamp |
CHARGE_CONDITION | (none) | No restrictions on charge |
RELEASE_CONDITION | EscrowPeriod | Blocks release during escrow period |
REFUND_IN_ESCROW_CONDITION | OR(Receiver, Arbiter) | Receiver or arbiter can approve |
REFUND_POST_ESCROW_CONDITION | Receiver | Only receiver after escrow |
FEE_CALCULATOR | StaticFeeCalculator | Fixed percentage fee |
FEE_RECIPIENT | Your address | Receives fees |
chainId in the options.
Delivery Protection Operator
For automated quality verification (AI garbage detection, schema validation), use the simpler delivery protection preset. No RefundRequest, Evidence, or Freeze contracts. The arbiter is the only address that can release funds.| Option | Type | Description |
|---|---|---|
chainId | number | Target chain |
arbiter | Address | Only address that can call release() |
feeRecipient | Address | Receives protocol fees |
escrowPeriodSeconds | bigint | Verification window before auto-refund |
Delivery Protection Slot Configuration
Delivery Protection Slot Configuration
| Slot | Contract | Purpose |
|---|---|---|
RELEASE_CONDITION | StaticAddressCondition(arbiter) | Only arbiter can release |
AUTHORIZE_RECORDER | EscrowPeriod | Records authorization time |
REFUND_IN_ESCROW_CONDITION | EscrowPeriod | Anyone can refund after escrow expires |
REFUND_POST_ESCROW_CONDITION | Receiver | Receiver can refund post-escrow |
Next Steps
Merchant Guide
Accept payments, release funds from escrow.
Payer Guide
Request refunds, freeze payments, submit evidence.
Examples
Runnable examples for every SDK operation.
Smart Contracts
On-chain architecture, conditions, and recorders.
