Market overview
Pact Market is a hosted gateway at
market.pactnetwork.io that wraps a
curated set of endpoints and routes calls through Pact Network. Calls
are pre-covered — no pools, classifiers, or settle_batch for the agent
to think about.
Market is one curated interface on top of the protocol. Other interfaces (enterprise gateways, direct upstream integrations, white-label wrappers) are possible.
For arbitrary 402-gated endpoints (anything off the curated list), use
pact pay curl <url> —
a drop-in replacement for pay with on-chain refunds.
How a Market call works
Section titled “How a Market call works”- Agent sends an HTTP request to
https://market.pactnetwork.io/<endpoint>/<upstream-path>withAuthorization: Bearer <PACT_MARKET_KEY>. The<endpoint>identifier is provided to allowlisted users at access time. - Market checks the allowlist. Rejected with 401 if your key isn’t valid.
- Market debits the principal from your AgentWallet (or stages it for settlement, depending on the upstream payment rail).
- Market forwards the request to the upstream service.
- Market reads the response, runs the classifier,
tags the call with
success/client_error/server_error. - Market returns the upstream response to the agent.
- The classified call lands in the settler queue. Next batch settles it on-chain.
From the agent’s POV this is one HTTP call. Latency is upstream-latency + Market overhead (target: low single-digit ms).
What Market handles
Section titled “What Market handles”- Upstream auth (Market holds the upstream API key).
- Payment to the upstream over x402 / MPP where supported.
- Response classification.
- Delivery of the call record to the settler.
- Refund pull on
server_error.
You bring: a Pact Market API key, a Solana wallet bound to it, an endpoint identifier (issued at onboarding), an HTTP client.
What Market doesn’t do
Section titled “What Market doesn’t do”- Add features that aren’t in the upstream API. Market is a transparent proxy + settlement plumbing.
- Synthesize responses on failure. A
server_erroris still an error — the refund is the compensation, not a retry. - Pool requests. Each agent call is a separate upstream call.
See also
Section titled “See also”- Wrapping model & access — how endpoints get wrapped, how to request access.
- Calling Market — request/response conventions.
- Quickstart → host swap — fastest path to a working covered call.