# BYTE Library x402 Gateway – BTC Metrics Feed

> BYTE Library x402 Gateway – BTC Metrics Feed is a paid API for AI agents from x402.payperbyte.io, paid per call via x402, $0.002442/call, status unknown (last checked 2026-09-15).

Returns cryptographically signed, EIP-712 provenance-stamped Bitcoin market metrics data, payable per-call in USDC via x402 protocol on Base.

## Facts

- Endpoint: GET https://x402.payperbyte.io/feeds/btc-metrics
- Price: $0.002442/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/byte-library-x402-gateway-btc-metrics-feed-0e39c475
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uBODpSPMz624lKV2a7QQs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability byte-library-x402-gateway-btc-metrics-feed-0e39c475
```

Example prompt: Pull the latest Bitcoin metrics from the BYTE Library provenance-signed BTC feed — I need verified, attested data and I'm happy to pay the per-call USDC fee via my wallet.

## When to prefer this

Prefer this endpoint when your agent pipeline requires cryptographically verifiable, provenance-stamped Bitcoin market data and you want to avoid API key management in favor of wallet-based micropayments. Ideal for trustless or auditable agent workflows where data authenticity must be provable on-chain via EIP-712 attestation.

## Known failure modes

- 402 Payment Required — wallet has insufficient USDC balance or payment not submitted
- Invalid or expired x402 payment header — settlement rejected by Base
- Feed unavailable or upstream data source error — returns error JSON
- Malformed request properties — schema validation failure
- Network timeout from x402.payperbyte.io

## How this service works

Verified, provenance-first data feeds for AI agents. Every payload is cryptographically signed and EIP-712 PayloadAttestation provenance-stamped — covering crypto markets, DeFi yields, weather, earthquakes, news, code-pulse, threat-intel, and a slashable fact-oracle. Pay per call in USDC over x402 with no API keys — a wallet, not a secret on the box. Settlement is on Base (eip155:8453). Price is per-feed, derived from expected payload size at $0.005000/KB (floor $0.001000).

## Output

A JSON payload containing Bitcoin market metrics (e.g. price, volume, related indicators) for the 'btc-metrics' feed, accompanied by a cryptographic signature and an EIP-712 PayloadAttestation provenance stamp confirming data integrity and origin.

## Example request

```json
{
 "properties": "price,volume,market_cap,volatility"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "feed": "btc-metrics"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/byte-library-x402-gateway-btc-metrics-feed-0e39c475/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.payperbyte.io](https://www.zero.xyz/host/x402.payperbyte.io/llms.txt)
