# Pipe Network — Complete Technical & API Documentation

> Single-file Markdown bundle of every Pipe Network developer guide (10 guides). Generated directly from the Pipe Network documentation catalog.

- Documentation Hub: https://pipe.network/dashboard/docs
- Docs llms.txt: https://pipe.network/dashboard/docs/llms.txt
- Root llms.txt: https://pipe.network/llms.txt
- Docs JSON API: https://pipe.network/api/docs
- Pipe Market Skill: https://pipe.network/market/SKILL.md

---
# Solana RPC & data endpoints and keys

> Connect to Pipe Solana mainnet JSON-RPC, WebSockets, Yellowstone gRPC, DAS/DeFi APIs, x402 pay-per-request, MCP tools, and validator data.

- Canonical HTML: https://pipe.network/dashboard/docs/solana
- Markdown URL: https://pipe.network/dashboard/docs/solana.md
- Dashboard Console: https://pipe.network/dashboard/solana
- Category: Solana Infrastructure
- Authentication: Paid API key (`Authorization: Bearer psol_...`, `X-Pipe-Key`, or `?api-key=`) or HTTP x402 per-request USDC payment with `PAYMENT-SIGNATURE` via Pipe Market.
- Key Endpoints: `https://solana-rpc.pipedev.network/rpc`, `wss://solana-rpc.pipedev.network/ws`, `https://solana-rpc.pipedev.network`, `https://solana-rpc.pipedev.network/openapi.json`, `https://solana-rpc.pipedev.network/mcp`, `https://solana-rpc.pipedev.network/mcp/tools`, `https://pipe.network/api/market/v1/call`, `https://pipe.network/api/market/v1/x402`, `http://186.233.184.235:8080`

## Endpoints & Transport
- HTTPS JSON-RPC & REST: `https://solana-rpc.pipedev.network` (JSON-RPC at `POST /rpc`)
- WebSockets: `wss://solana-rpc.pipedev.network/ws`
- Yellowstone gRPC / Shreds / FastTx (HTTP/2 TLS): `https://solana-rpc.pipedev.network`
- Validator & Data Producer Origin: `http://186.233.184.235:8080` (key verification directory at `/attest/keys.json`)

## Machine-Readable Specs & Agent Discovery
- OpenAPI 3.1 Spec: `https://solana-rpc.pipedev.network/openapi.json`
- Interactive Swagger / API Docs: `https://solana-rpc.pipedev.network/docs`
- MCP JSON-RPC Server: `https://solana-rpc.pipedev.network/mcp`
- MCP Tool Catalog (20 Solana tools): `https://solana-rpc.pipedev.network/mcp/tools`
- MCP Server-Sent Events Stream: `https://solana-rpc.pipedev.network/mcp/sse`
- x402 Facilitated Payment Terms: `https://pipe.network/api/market/v1/x402`
- Pipe Market Agent Skill: `https://pipe.network/market/SKILL.md`

## Authentication & Paid Plans
Every mainnet request requires payment in one of two ways:
1. **Plan API Key (`psol_...`)**: Pass via `Authorization: Bearer psol_...`, `X-Pipe-Key: psol_...`, or `?api-key=psol_...`. Plans: Pay-As-You-Go ($20 / 30 days), Builder ($39 / 30 days), Growth ($119 / 30 days), Scale ($279 / 30 days).
2. **HTTP x402 per-request in USDC**: Call `https://pipe.network/api/market/v1/call/<path>` (for JSON-RPC: `POST https://pipe.network/api/market/v1/call/rpc`), receive `402 Payment Required` with USDC pricing, and retry with a signed `PAYMENT-SIGNATURE` header.

## Quickstart Example
```bash
curl -fsS -H "Authorization: Bearer $PIPE_API_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}' "https://solana-rpc.pipedev.network/rpc"
```

---

# Solana Proof-of-History API Reference

> Query finalized Solana block headers, epoch summaries, Merkle slot and signature inclusion proofs, and signed archive shards via Pipe PoH API.

- Canonical HTML: https://pipe.network/products/solana-poh
- Markdown URL: https://pipe.network/dashboard/docs/solana-poh.md
- Dashboard Console: https://pipe.network/dashboard/solana?tab=poh
- Category: Solana Verifiable History
- Authentication: `/capabilities` is public; archive reads accept `Authorization: Bearer $PIPE_API_KEY` or `X-API-Key` using a personal Pipe key with PoH access enabled.
- Key Endpoints: `https://api.pipedev.network/v1/solana/poh/capabilities`, `https://api.pipedev.network/v1/solana/poh/tip`, `https://api.pipedev.network/v1/solana/poh/slot/{slot}`, `https://api.pipedev.network/v1/solana/poh/epoch/{epoch}`, `https://api.pipedev.network/v1/solana/poh/proof/slot/{slot}`, `https://api.pipedev.network/v1/solana/poh/verify/{slot}`, `https://api.pipedev.network/v1/solana/poh/tx/{signature}/proof`, `https://api.pipedev.network/v1/solana/poh/archive/{partition}/manifest.json`, `https://api.pipedev.network/v1/solana/poh/archive/shards/{filename}`

## Base URL
- `https://api.pipedev.network/v1/solana/poh`

## Public & Authenticated GET Endpoints
- `GET /capabilities` — Public coverage and archive readiness state
- `GET /tip` — Latest finalized indexed slot header
- `GET /slot/{slot}` — Header and commitment metadata for a single slot
- `GET /epoch/{epoch}` — Epoch summary and Merkle root
- `GET /proof/slot/{slot}` — Merkle inclusion proof binding slot to epoch and global chain root
- `GET /verify/{slot}` — Replay and verify slot PoH entry hashes
- `GET /tx/{signature}/proof?slot={slot}` — Transaction signature inclusion proof
- `GET /archive/{partition}/manifest.json` — Signed archive manifest (authenticated)
- `GET /archive/shards/{filename}` — Immutable NDJSON archive shard (authenticated)

## Quickstart
```bash
curl --fail-with-body https://api.pipedev.network/v1/solana/poh/capabilities
export POH_API_BASE='https://api.pipedev.network/v1/solana/poh'
export PIPE_API_KEY='YOUR_PERSONAL_PIPE_API_KEY'
curl --fail-with-body -H "Authorization: Bearer $PIPE_API_KEY" "$POH_API_BASE/tip"
```

---

# Firestarter Object Storage & PipeBox docs

> Configure AWS CLI, SDKs, or PipeBox for S3-compatible Firestarter Object Storage with path-style SigV4, monthly storage, and 3x free egress.

- Canonical HTML: https://pipe.network/dashboard/docs/storage
- Markdown URL: https://pipe.network/dashboard/docs/storage.md
- Dashboard Console: https://pipe.network/dashboard/storage
- Category: Object Storage
- Authentication: Wallet login + prepaid USDC credit in Billing, then scoped S3 API keys (`Access Key ID` + `Secret`) created in Dashboard -> S3 API keys.
- Key Endpoints: `https://pipe.network/s3`

## S3 Endpoint & Configuration
- Endpoint: `https://pipe.network/s3`
- Addressing style: **Path-style required** (`addressing_style = path`)
- Region: `us-east-1` (or explicit client region)
- Authentication: AWS SigV4 headers or presigned URLs from scoped S3 API keys

## Billing
- Prepaid USDC credit from your shared Pipe account balance.
- Monthly storage pricing includes 3x stored data of free monthly egress.
- Multipart uploads bill only the completed object (temporary parts are not billed separately).

## Quickstart (AWS CLI)
```bash
export PIPE_STORAGE_ENDPOINT='https://pipe.network/s3'
export AWS_ACCESS_KEY_ID='<access key>'
export AWS_SECRET_ACCESS_KEY='<secret shown once>'
export AWS_DEFAULT_REGION=us-east-1
export AWS_REQUEST_CHECKSUM_CALCULATION=when_required
export AWS_RESPONSE_CHECKSUM_VALIDATION=when_required
aws configure set default.s3.addressing_style path

aws --endpoint-url "$PIPE_STORAGE_ENDPOINT" s3api create-bucket --bucket example
aws --endpoint-url "$PIPE_STORAGE_ENDPOINT" s3 cp ./photo.jpg s3://example/photo.jpg
aws --endpoint-url "$PIPE_STORAGE_ENDPOINT" s3 cp s3://example/photo.jpg ./download.jpg
```

## Compatibility Notes
- Supports bucket `HEAD`, `PUT`, `DELETE`, `ListObjectsV2` and object `PUT`, `GET`, `HEAD`, `DELETE`, byte ranges, and multipart uploads.
- Global `ListBuckets` and checksum trailers are unsupported; target buckets explicitly.

---

# IBRL Overlay Networking docs

> Deploy Pipe IBRL policy-routed UDP delivery, S3 public exit discovery, USD payer grants, routing policies, REST APIs, and Firestarter relays.

- Canonical HTML: https://pipe.network/dashboard/docs/ibrl
- Markdown URL: https://pipe.network/dashboard/docs/ibrl.md
- Dashboard Console: https://pipe.network/dashboard/ibrl
- Category: Decentralized Networking
- Authentication: Signed Ed25519 PayerGrant authorized against your prepaid USD Pipe account; customer REST APIs authenticate via dashboard session or Bearer token.
- Key Endpoints: `152.236.4.73:7400 (UDP seed)`, `https://api.pipenet.ai/control-api/v1/ibrl/pricing`, `https://api.pipenet.ai/control-api/v1/customer/ibrl/overview`, `https://api.pipenet.ai/control-api/v1/customer/ibrl/relays`, `https://api.pipenet.ai/control-api/v1/customer/ibrl/flows`, `https://api.pipenet.ai/control-api/v1/customer/ibrl/earnings`

## Architecture & Modes
1. **S3 & PipeBox users**: Automatic — storage routers use internal `/v1/cache` transfers over IBRL with router credit.
2. **Gateways & streams**: Opt-in using `ibrl-node` funded by a signed `PayerGrant` from your prepaid USD Pipe account.
3. **Firestarter relays**: Earn USD per verified relayed byte by binding `FIRESTARTER_IBRL_BIND` on an eligible enrolled Firestarter host (suggested `$0.75/TB`, capped at `4x` = `$3.00/TB` per hop).

## CLI Quickstart
```bash
cargo build --release -p lattice-ibrl --bin ibrl-node
ibrl-node keygen client.key
ibrl-node gateway \
  --key client.key \
  --bind 0.0.0.0:0 \
  --seed 152.236.4.73:7400 \
  --exit <64-hex-node-id> \
  --listen 127.0.0.1:8080 \
  --origin https://<replica-origin> \
  --ledger https://api.pipenet.ai/control-api \
  --trust-from https://api.pipenet.ai/control-api
```

---

# KV Cache connection guide

> Connect Redis-compatible RESP2 clients over verified TLS to Pipe KV Cache with atomic counters, TTL management, and prepaid USDC billing.

- Canonical HTML: https://pipe.network/dashboard/docs/kv
- Markdown URL: https://pipe.network/dashboard/docs/kv.md
- Dashboard Console: https://pipe.network/dashboard/kv
- Category: Key-Value Cache (Preview)
- Authentication: Scoped credential ID + secret (`AUTH <credential-id> <secret>`) issued in the KV console against your linked identity.
- Key Endpoints: `rediss://91.99.35.23:6380`

## Endpoint & Connection
- Endpoint: `rediss://91.99.35.23:6380` (Database `0`, RESP2 over verified TLS)
- Auth: `AUTH <credential-id> <secret>`

## Supported Commands
- Strings: `GET`, `SET` (`NX`, `XX`, `EX`, `PX`), `SETEX`, `PSETEX`
- Multi-key: `MGET`, `DEL`, `EXISTS`
- Expiration: `TTL`, `PTTL`, `EXPIRE`, `PEXPIRE`, `PERSIST`
- Counters: `INCR`, `INCRBY`, `DECR`, `DECRBY` (signed 64-bit atomic)
- Discovery & Connections: `SCAN` (`MATCH`, `COUNT`), `AUTH`, `PING`, `ECHO`, `QUIT`, `SELECT 0`, `COMMAND`, `HELLO 2`, `CLIENT`

Note: Preview contract — check the KV console for customer availability.

---

# Durable Objects API guide

> Build persistent application state on Pipe Durable Objects using JSON key-value state, transactional SQLite, small blobs, and idempotent polling.

- Canonical HTML: https://pipe.network/dashboard/docs/durable
- Markdown URL: https://pipe.network/dashboard/docs/durable.md
- Dashboard Console: https://pipe.network/dashboard/durable
- Category: Stateful Compute
- Authentication: Namespace API key (`Authorization: Bearer $PIPE_DURABLE_KEY`, 90-day expiry) with mandatory UUID `Idempotency-Key` header.
- Key Endpoints: `https://api.pipenet.ai/control-api/v1/durable/namespaces/{namespace}/execute`, `https://api.pipenet.ai/control-api/v1/durable/requests/{operation_id}`

## Endpoints
- Execute command: `POST https://api.pipenet.ai/control-api/v1/durable/namespaces/$PIPE_NAMESPACE/execute`
- Poll operation: `GET https://api.pipenet.ai/control-api/v1/durable/requests/$OPERATION_UUID`

## Actions
`put_state`, `get_state`, `delete_state`, `list_state`, `list_blobs`, `sql`, `migrate`, `put_blob`, `get_blob`, `delete_blob`, `delete_object`.

## Billing
1 USDC per million accepted requests plus 5 USDC per TB of replicated checkpoint writes, bounded by a cumulative namespace spending cap.

---

# Hosting deployment guide

> Build and deploy static assets and Spin WebAssembly HTTP apps with persistent SQLite databases, CI keys, and custom domains on Pipe Hosting.

- Canonical HTML: https://pipe.network/dashboard/docs/hosting
- Markdown URL: https://pipe.network/dashboard/docs/hosting.md
- Dashboard Console: https://pipe.network/dashboard/hosting
- Category: WebAssembly & Static Hosting
- Authentication: Scoped deployment key (`Authorization: Bearer $PIPE_HOST_TOKEN`, 90-day expiry) generated in Hosting settings.
- Key Endpoints: `https://api.pipenet.ai/control-api/v1/hosting/sites`, `https://api.pipenet.ai/control-api/v1/hosting/sites/{site_id}/releases`, `https://api.pipenet.ai/control-api/v1/hosting/sites/{site_id}/migrations`, `https://api.pipenet.ai/control-api/v1/hosting/sites/{site_id}/activate`

## Runtime & Deployment Flow
- Serves static assets alongside Spin `wasm32-wasip1` `/api/` handlers and persistent SQLite databases (default hostnames at `<your-site>.apps.pipedev.network`).
- CI Flow: Upload release ZIP (up to 32 MiB compressed) -> apply numbered SQLite migrations -> activate with optimistic concurrency (`expected_active`).
- Plans: Free (2 sites, 100k dynamic reqs, 5 GB transfer, 100 MB SQLite), Starter (5 USDC / 30 days), Pro (19 USDC / 30 days).

---

# Pipe Live setup & ingest guide

> Configure OBS, FFmpeg, RTMPS, encrypted SRT, or WHIP browser broadcasts to publish HLS, LL-HLS, and DASH streams on Pipe Live.

- Canonical HTML: https://pipe.network/dashboard/docs/live
- Markdown URL: https://pipe.network/dashboard/docs/live.md
- Dashboard Console: https://pipe.network/dashboard/live
- Category: Live Streaming
- Authentication: CLI credentials with `live.read`/`live.write` (+ `billing.write` for stream creation), or browser dashboard wallet/payer authorization.
- Key Endpoints: `/v1/live/streams`, `/v1/live/capabilities`

## Ingest & Playback
- Protocols: **RTMPS**, encrypted **SRT**, and **WHIP** browser broadcast (under H.264 ABR).
- Packaging: **HLS / LL-HLS**, **DASH**, fMP4 with bounded 30-300s DVR retention.
- API: `POST /v1/live/streams` and `GET /v1/live/capabilities` with UUID `request_id` idempotency.
- Billing uses 30-second prepaid credit windows reconciled on final measured usage.

---

# Stored video processing & recording guide

> Upload videos to Pipe Storage, run bounded ABR transcoding jobs to HLS, DASH, and MP4, and enable opt-in live stream recording.

- Canonical HTML: https://pipe.network/dashboard/docs/video
- Markdown URL: https://pipe.network/dashboard/docs/video.md
- Dashboard Console: https://pipe.network/dashboard/video
- Category: Video Processing
- Authentication: Authenticated Pipe dashboard session with a linked infrastructure payer and explicit job cap approval.
- Key Endpoints: `/dashboard/video`, `/dashboard/files`

## VOD Transcoding & Opt-In Recording
- **Input limits**: Up to 2 GiB / 60 min progressive 8-bit SDR H.264 (360p-1080p, up to 60 fps).
- **Outputs**: Non-upscaled 1080p/720p/480p/360p HLS & DASH, fast-start MP4, and thumbnail, integrity-verified with SHA-256 and BLAKE3.
- **Retention**: 1-365 days; private session-authenticated playback (no anonymous VOD playback in this release).

---

# Uptime monitoring & signed webhooks guide

> Monitor HTTP, TCP, and ICMP endpoints across regions with Ed25519 signed webhooks, public status pages, and monthly plans on Pipe Uptime.

- Canonical HTML: https://pipe.network/dashboard/docs/uptime
- Markdown URL: https://pipe.network/dashboard/docs/uptime.md
- Dashboard Console: https://pipe.network/dashboard/uptime
- Category: Endpoint Monitoring
- Authentication: Dashboard session or CLI keys scoped with `uptime.read` / `uptime.write`; webhook payloads are Ed25519 signed (`x-pipe-signature`).
- Key Endpoints: `/control-api/v1/uptime`, `/v1/uptime/capabilities`, `/v1/uptime/monitors/{id}/mutations/{request_id}`, `/v1/uptime/subscriptions`

## Monitors, Plans, & Signed Webhooks
- **Checks**: HTTP/HTTPS GET (up to 64 KiB body keyword checks), TCP port connect, ICMP ping.
- **Plans**: Free (10 monitors, 5-min checks, 1 region, 7d history), Starter (9 USDC/mo, 25 monitors, 1-min checks), Team (29 USDC/mo, 100 monitors, 1-min checks).
- **Webhooks**: `x-pipe-event-id`, `x-pipe-signing-key`, `x-pipe-signature` over `UTF8("pipe-uptime/webhook/v1\n") + exact raw HTTP body` verified against `GET /v1/uptime/capabilities`.
