---
name: pipe-market
description: >-
  Find and call Pipe Network services on Solana: JSON-RPC, prices and swap
  quotes, token and wallet data, transaction sending, validator data and
  object storage. Use when the user asks for Solana RPC or data, mentions
  Pipe or x402, or wants to pay per request in USDC on Solana.
---

# Pipe Market

Pipe Market lists 77 services from Pipe Network. Everything settles on Solana mainnet in USDC. Every service is paid for: 12 services per request with x402, with no account, and the rest with a key from a plan or with prepaid credit.

## Find a service

- `GET https://pipe.network/api/market/v1/services/search?q=<query>` searches names, capabilities, paths and methods.
- `GET https://pipe.network/api/market/v1/services` lists everything; `category` and `access` filter it.
- `GET https://pipe.network/api/market/v1/services/<id>` gives one service's endpoints, methods, plans and a first request.
- `GET https://pipe.network/api/market/v1/endpoints?q=<query>` searches every endpoint and method.
- `GET https://pipe.network/api/market/v1/kits` lists sets of services put together for one kind of agent.

Each list answers `{ services, total, limit, offset }`. A service names how it is paid for in `access`:

- `x402`: per request in USDC on Solana, with no account.
- `plan`: a prepaid 30-day plan; its key starts with `psol_`.
- `usage`: metered against prepaid Pipe credit, with S3 credentials.
- `request`: run by Pipe for a customer who asks: write to hello@pipe.network.

## Pay per request with x402

Paid requests go to Pipe Market's gateway, `https://pipe.network/api/market/v1/call`. Each endpoint's address there is its `payUrl` in the catalogue. The gateway speaks x402 version 2 with the `exact` scheme on Solana, so a standard x402 client pays it with no special code. Prices run from $0.001505 to $0.00175 a request; each includes $0.0015 for settling the payment on chain.

1. Send the request to its `payUrl` with no payment. The answer is `402 Payment Required`. Its `PAYMENT-REQUIRED` header holds the terms as base64 JSON, and the body repeats them: `accepts[0]` names the `scheme` (`exact`), `network`, `asset`, `payTo`, `amount` in USDC atoms (1 USDC is 1,000,000 atoms) and `extra.feePayer`.
2. Check the terms before signing. Pay only on `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`, only in the USDC mint `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`, and only to `5YzJQX2fAFjPPERodrCADhaD2yjYnERw2Jzn1T6CTCLD`. `GET https://pipe.network/api/market/v1/x402` states the same terms.
3. Get the user’s approval for the maximum total spend. A quote is not an approval.
4. Have the x402 client sign the payment and send the same request again with it in the `PAYMENT-SIGNATURE` header. The payment is a USDC transfer the wallet signs. The gateway pays the Solana network fee, so the wallet needs USDC and no SOL.
5. The answer comes back with `PAYMENT-RESPONSE`: base64 JSON naming the transaction that settled.

To check a wallet before spending, `GET https://pipe.network/api/market/v1/x402/check`. It asks for a payment like any paid route, verifies the one you sign and never sends it: `{ "valid": true }` means the wallet can pay. A script that does all of this is at https://pipe.network/market/pay.mjs, and https://pipe.network/market/agents walks through the setup.

Pay only what a `402` answer asks for, once for each request, and never send a payment nobody quoted. A payment is good for one request and is refused if sent again. Send one JSON-RPC call in each request: batches need a key from a plan.

A request that reads is charged only when the service answers it. A transaction send is charged before it is sent, since it cannot be taken back. Report success only once the service has answered. If a retry answers 402 again, read its `error` and stop; do not pay twice for one request without asking.

Right now paying by the request is switched off on the gateway; use a key from a plan.

## Keys and plans

Services without `x402` need a key from https://pipe.network/dashboard. With a key, call the service at its `url`, not its `payUrl`. Never print a key or put one in a URL you show the user. Solana keys travel as `Authorization: Bearer psol_…`; storage uses S3 SigV4 credentials at `https://pipe.network/s3` with path-style addressing.

Solana data services answer over HTTPS at `https://pipe.network/api/market/v1/data` and the service’s path, with the key. Snapshot archives, other bulk files, streams and gRPC come from the data node’s own address, over plain HTTP: each endpoint’s `url` says which. Send a key over plain HTTP only if the user accepts that.

## When something fails

- `401 key_required`: the service needs a key from a plan that includes it.
- `402`: payment is needed, or the payment was not accepted. Read `error` in the body.
- `403 key_required` from the gateway: the method keeps state for its caller, so it needs a key of your own.
- `404 route_not_sold`: the gateway does not sell that route. Look the endpoint up in the catalogue.
- `429`: a rate limit. Wait for `Retry-After`.
- `502` from the gateway: the service did not answer. The body says whether anything was charged.
- `503 pay_per_request_off`: the gateway is not taking payments. Use a key from a plan.

## References

- Catalogue for people: https://pipe.network/market
- This catalogue for models: https://pipe.network/market/llms.txt
- Agent setup: https://pipe.network/market/agents
- Solana guide: https://pipe.network/dashboard/docs/solana
- Storage guide: https://pipe.network/dashboard/docs/storage
