# GenTech Labs — operating instructions for an agent

You are reading a machine-readable guide to a pay-per-call HTTP API settled in USDC over x402.
No account. No API key. No signup. The 402 IS the quote.

## 1 · Discover (free)

    GET https://api.gentechlabs.net/.well-known/x402          -> every service, price, params, example
    GET https://api.gentechlabs.net/llms.txt                  -> the compact reference
    GET https://api.gentechlabs.net/openapi.json              -> the machine contract

## 2 · Get the quote (free)

    GET https://api.gentechlabs.net/v1/flow/etf/BTC
    -> 402  payment-required: <base64 JSON: network, asset, amount, payTo>

An unpaid 402 is the price, not an error. Do not treat it as a failure and do not retry blindly.

## 3 · Pay and retry

    network : eip155:8453 (Base)   asset: USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
    amount  : as quoted, 6 decimals
    header  : PAYMENT-SIGNATURE: <signed transfer authorisation>
    then    : repeat the identical request -> 200 + data

## 4 · Refusal rules (you will not be charged)

    503 before the challenge  the route cannot be served right now, reason given
    402 parameter_required    a template path was used; retry_with names the real path
    200 + asOf               upstream value is dated; it is old, not wrong

## 5 · Services

- Token Risk Score — $0 — GET /v1/defender/classify/43114/0x8e53ad52980478794bb5b459b7cbdd836975e4cb
  Score any token before you swap
- LP Position Analytics — $0 — GET /v1/defi/lp/0x7ebff188f2Eba16518C02864589b1403a5d1296a
  Where a liquidity position sits, its active bin range, fees earned, and whether it is in range right now
- Wallet Portfolio — $0 — GET /v1/wallet/portfolio/0x7ebff188f2Eba16518C02864589b1403a5d1296a
  Balances and positions for any address across chains, valued in USD
- Agent Registry Search — $0 — GET /v1/agents/search?q=agent
  Find registered AI agents by capability, chain, or x402 support
- Price and Market Data — $0 — GET /v1/market/price/ETH
  Live price and market state for a symbol, sourced from live exchange data
- Contract Safety Check — $0 — GET /v1/security/score/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
  Rug-check a token contract: mint authority, proxy and upgrade rights, owner privileges, LP lock state, and tradeability
- Asset Provenance — $0 — GET /v1/lineage/guard?urn=urn:li:dataset:(urn:li:dataPlatform:powerbi,b2fd91.datahub_order_entries.Customer_Analytics_Measures,PROD)
  Trace where a token or dataset came from and what depends on it
- NFT Collection Search — $0 — GET /v1/nft/search?q=ape
  Search NFT collections and assets by name, contract, or chain
- Gas Price — $0 — GET /v1/gas/gas
  Current gas price in gwei for Ethereum, Base and Polygon, sourced from live RPC
- ETF Flow Regime — $0 — GET /v1/flow/etf/BTC
  Bitcoin, Ethereum and Solana ETF net flows from settled SoSoValue data, with a falsifiable regime label (ACCUMULATING / DISTRIBUTING / FLAT)

## 6 · MCP

    POST https://api.gentechlabs.net/mcp  (JSON-RPC)
    initialize -> tools/list -> tools/call gentech_list_services (free)

## 7 · Honest limitations

    The catalogue is small and the prices are low. Verify any route with one unpaid call;
    we publish the manifest rather than a customer story.
