How It Works
Data flow: Your browser → London consumer node → encrypted P2P → NYC owner node (New York) → mock REST API → JSON response returned via same path. Settlement on Base L2.
Why REST APIs on Opsalis?
Any REST API can be monetized through Opsalis without code changes. Set your price, register your endpoint, and start earning per call. The marketplace handles authentication, billing, and on-chain settlement so you can focus on building great APIs.
Whether you run a weather service, financial data feed, or machine learning inference endpoint, Opsalis turns your REST API into a revenue stream. Consumers pay per call in USDC on Base L2 — no invoicing, no payment disputes, no 30-day net terms.
Real-world example: A stock market data provider registers their ticker API. A fintech startup in another country subscribes and starts making calls. Each call costs $0.001, settled instantly on-chain. The provider earns 95% of every call, with the 5% platform fee covering infrastructure and settlement.
Try It Live
Request Configuration
Code Samples
# Call a REST API through the Opsalis marketplace
$ curl -X POST https://opsalis.com/api/demo/api/bb-sse-ticker \
-H "Content-Type: application/json" \
-H "X-Consumer-Key: demo-public-key-2026" \
-d '{"symbol": "AAPL", "interval": "1m"}'
// Call a REST API through the Opsalis marketplace
const response = await fetch('https://opsalis.com/api/demo/api/bb-sse-ticker', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Consumer-Key': 'demo-public-key-2026'
},
body: JSON.stringify({
symbol: 'AAPL',
interval: '1m'
})
});
const data = await response.json();
console.log(data);
# Call a REST API through the Opsalis marketplace
import requests
response = requests.post(
'https://opsalis.com/api/demo/api/bb-sse-ticker',
headers={
'Content-Type': 'application/json',
'X-Consumer-Key': 'demo-public-key-2026'
},
json={
'symbol': 'AAPL',
'interval': '1m'
}
)
data = response.json()
print(data)
Self-Host in Minutes
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
Register Your REST API
Open the web console at localhost:3000 and register your API endpoint. Set the protocol to REST, define your pricing per call, and configure authentication.
# Example: Register a REST API via the CLI
$ opsalis api register \
--name "my-rest-api" \
--protocol REST \
--endpoint http://localhost:8080/api/v1 \
--price 0.001 \
--currency USDC
Configure Pricing
Set pay-per-use pricing in USDC, or offer subscription plans. The marketplace handles billing, settlement, and revenue distribution automatically.
Start Earning
Your REST API is now live on the Opsalis marketplace. Consumers discover it, subscribe, and start making calls. You earn 95% of every payment, settled in USDC on Base L2.