eip155:84532) and small prices while you are validating behavior.
What to test first
1
Unpaid request
Call the protected route without a payment header. Confirm your API returns HTTP 402 with the expected scheme, price, network, asset, and
payTo.2
Paid retry
Use a 4Mica-capable buyer client to sign a guarantee with a unique request ID, retry the request, and receive the protected response.
3
Invalid payment
Retry with a missing, expired, malformed, or mismatched payment header. Confirm the paid handler does not run.
4
Delivery evidence
Confirm logs connect request ID, guarantee ID, payer, route, price, settlement result, and response hash or delivery marker.
5
Default path
Exercise the default path in a controlled environment so your team understands how an unpaid net position is covered from locked collateral.
Sandbox checklist
Before adding tiers, metering, or complex workflows, prove the smallest paid route end to end.Abuse scenarios to simulate
- A buyer without enough collateral tries to pay.
- A buyer pays for a cheap route and reuses the header on an expensive route.
- A buyer changes request parameters after receiving a quote.
- A buyer sends many unpaid requests to force expensive pre-work.
- A buyer claims the agent failed after receiving a response.
- Another client tries to impersonate a known payer or agent.