GraphQL API Marketplace

Expose your GraphQL API to paying consumers. Opsalis handles authentication, billing, and settlement — you focus on your schema.

How It Works

Your Browser GraphQL Query HTTPS London Node Consumer Wrapper P2P Encrypted NYC Owner New York localhost GraphQL API bb-graphql Structured JSON Response + Latency Base L2 USDC Settlement

Data flow: GraphQL query from your browser → London consumer node → encrypted P2P → NYC owner (New York) → GraphQL API resolves query → structured response returned. Settlement on Base L2.

Why GraphQL on Opsalis?

Expose your GraphQL API to paying consumers. Opsalis handles authentication, billing, and settlement — you focus on your schema. Consumers get the flexibility of GraphQL queries while you earn revenue per call.

GraphQL APIs are ideal for the marketplace model because consumers request exactly the data they need. Opsalis preserves the full GraphQL experience: consumers write queries, send variables, and receive structured responses — all through the P2P network.

Real-world example: A SaaS company exposes their user directory as a GraphQL API. Enterprise clients query exactly the fields they need — no over-fetching, no under-fetching. Each query is billed at $0.002 and settled instantly in USDC.

Try It Live

GraphQL Query Editor

Write a GraphQL query and click "Run Query" to send it through the Opsalis P2P network.

Code Samples

# Send a GraphQL query through the Opsalis marketplace
$ curl -X POST https://opsalis.com/api/demo/api/bb-graphql \
  -H "Content-Type: application/json" \
  -H "X-Consumer-Key: demo-public-key-2026" \
  -d '{
    "query": "{ users { id name email } }",
    "variables": {}
  }'
// Send a GraphQL query through the Opsalis marketplace
const response = await fetch('https://opsalis.com/api/demo/api/bb-graphql', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-Consumer-Key': 'demo-public-key-2026'
  },
  body: JSON.stringify({
    query: '{ users { id name email } }',
    variables: {}
  })
});

const data = await response.json();
console.log(data);
# Send a GraphQL query through the Opsalis marketplace
import requests

response = requests.post(
    'https://opsalis.com/api/demo/api/bb-graphql',
    headers={
        'Content-Type': 'application/json',
        'X-Consumer-Key': 'demo-public-key-2026'
    },
    json={
        'query': '{ users { id name email } }',
        'variables': {}
    }
)

data = response.json()
print(data)

Self-Host in Minutes

1

Install the Control Center

Pull and run the free Opsalis Docker container on your own hardware. No cloud account required.

$ docker pull opsalis/control-center:latest
$ docker run -d --name opsalis -p 3000:3000 opsalis/control-center:latest
2

Register Your GraphQL API

Open the web console at localhost:3000 and register your GraphQL endpoint. Set the protocol to GraphQL, define per-query pricing, and point to your schema endpoint.

# Example: Register a GraphQL API via the CLI
$ opsalis api register \
  --name "my-graphql-api" \
  --protocol GraphQL \
  --endpoint http://localhost:4000/graphql \
  --price 0.002 \
  --currency USDC
3

Configure Pricing

Set per-query pricing in USDC or offer subscription plans for high-volume consumers. The marketplace handles billing, metering, and revenue distribution.

4

Start Earning

Your GraphQL API is live on the marketplace. Consumers send queries and pay per call. You earn 95% of every payment, settled in USDC on Base L2.