Cerulea

Cerulea API Gateway

Web2 ergonomics.
Web3 architecture.

Connect your legacy applications to the blockchain instantly. The Cerulea API Gateway completely abstracts away JSON-RPC complexities, cryptographic signing, and node management into clean, highly scalable REST endpoints and event webhooks.

Auto-generated REST endpoints.

Mutate blockchain state using standard HTTP protocols.

Your backend developers do not need to learn specialized Web3 libraries like ethers.js or handle raw RPC calls. When you finalize a schema in Cerulea Studio, the API Gateway immediately generates standard POST, GET, PUT, and DELETE routes. You can interact with complex smart contracts exactly like you would a traditional database.

cURL

Node.js

Python

curl -X POST \
https://api.cerulea.net/v1/projects/asset/transfer \
-H 'Authorization: Bearer CER_LIVE_99a8b...' \
-H 'Content-Type: application/json' \
-d '{
"asset_id": "TOKEN_4491",
"recipient": "0x892A...1B99",
"amount": 500
}'

Idempotency Guard Logic

// Client Request 1 (Timeout Occurs)
POST /v1/treasury/disburse
Header: Idempotency-Key: "req_99b2x"
[SYS] Execution successful. Transaction confirmed.
[ERR] Client disconnected before receiving 200 OK.
// Client Request 2 (Automated Retry)
POST /v1/treasury/disburse
Header: Idempotency-Key: "req_99b2x"
[GUARD] Duplicate key detected. Bypassing execution.
[SYS] Returning cached success response.

Idempotent request safety.

Never worry about accidental double-spending during network timeouts.

In enterprise financial systems, network blips happen. If your server sends a transfer request but loses connection before receiving a response, retrying the request blindly could result in duplicate transfers. The Cerulea API enforces strict Idempotency Keys in your request headers. You can safely retry timed-out requests knowing the API will return the cached response rather than duplicating the transaction.


Transaction dry runs.

Preview exactly what a transaction will do before committing it.

Blindly broadcasting complex transactions to a ledger is dangerous. The Cerulea API provides a dedicated Simulation Endpoint. By sending your payload with the `?simulate=true` parameter, the API runs the execution logic against the live network state without committing the data. You receive an exact report of gas estimates, expected state changes, and any potential revert errors before spending a dime.

API Route: /v1/action?simulate=true

READ ONLY

{
"simulation_status": "SUCCESS_EXPECTED",
"estimated_gas_cost": "0.0042 USD",
"state_mutations": [
{
"entity": "Treasury_Vault",
"previous_value": 10000,
"new_value": 9500
}
]
}

BULK EXECUTION PAYLOAD

ARRAY (Length: 5,000)

[

{ user: "0x1A", amt: 50 },

{ user: "0x2B", amt: 50 },

... 4,998 more records

]

NETWORK RESULT

1 Single Transaction

Gas fees optimized by 94% via atomic batching.

High-throughput batching.

Execute thousands of operations in a single atomic API call.

Processing enterprise payroll or minting digital items for a massive user base requires efficiency. Sending thousands of individual API calls risks rate limits and massive network fee bloat. The Cerulea Bulk Endpoint allows you to submit JSON arrays of operations. The API compiles them into a single, highly compressed atomic transaction, executing the entire batch simultaneously.


Event-driven webhooks.

Stop polling the blockchain. The network pushes data to you instantly.

Running a cron job every five seconds to check if a block contains your transaction is severely outdated. The Cerulea API Gateway allows you to register secure webhooks via the Dashboard. When a specific smart contract event fires on the ledger, the Gateway immediately dispatches a JSON payload to your designated Web2 server, keeping your legacy ERP or CRM perfectly synchronized in real time.

EVENT ROUTING PROTOCOL

CERULEA L1 EVENT EMITTED

Invoice_Settled (ID: 9942)

HTTPS POST DELIVERED

TARGET: ENTERPRISE SAP SYSTEM

https://internal.corp.net/webhooks/cerulea

Response: 200 OK (Invoice marked paid in ERP)


API Route: /v1/auth/provision-wallet

WEB2 IDENTITY

user@corporate.com

SECURE ENCLAVE

Keypair Generated

API RESPONSE DATA

"address": "0x4F9...A1B2"

User experience is identical to a standard login.

Invisible wallet provisioning.

Onboard users with just an email address. No browser extensions required.

Enterprise adoption fails when users are forced to manage cryptographic seed phrases. The Cerulea API provides Wallet-as-a-Service (WaaS) endpoints. When a user creates an account on your traditional web app using OAuth or email, the API securely provisions a non-custodial blockchain wallet in the background, fully bridging Web2 authentication with Web3 security.


Gasless transaction relayer.

Provide frictionless user experiences by sponsoring execution fees automatically.

Forcing your customers to buy cryptocurrency just to interact with your decentralized application creates massive friction. The Cerulea API features a native Meta-Transaction Relayer. Your application passes a user's signed intent to our API. Cerulea wraps it, pays the underlying network execution fee from your corporate fiat account, and executes the transaction on the user's behalf.

API Route: /v1/relay/execute

USER INTENT

Function: mint_certificate()

Client Signature: 0x7c9b...valid

WRAPPED BY RELAYER

ON-CHAIN EXECUTION

Gas Paid By: Cerulea_Treasury

SUCCESS

User experience: 0 friction. 0 network tokens required.


API Route: /v1/oracle/submit-feed

SECURE INGESTION

// Incoming payload from authorized financial API
{
"feed_id": "USD_EUR_RATE",
"value": "0.9142",
"timestamp": 1718223491,
"oracle_signature": "0x44A...F219"
}

[AUTH] Oracle Signature Verified.
[SYS] State Updated. Dependent contracts triggered.

Oracle data ingestion.

Bridge real-world APIs securely into your isolated blockchain state.

Smart contracts are blind to the outside world. If your logic requires real-time stock prices, weather data, or IoT sensor readings, you need an Oracle. The Cerulea API Gateway provides highly restricted ingestion endpoints, allowing your authorized external systems to push cryptographic, tamper-evident data feeds directly into the network state.


Time-travel queries.

Fetch the exact state of your network at any point in history.

Standard databases overwrite previous records. Blockchains append them. The Cerulea API Gateway exposes a powerful block height parameter in every REST query. You can instantly fetch an entity's exact configuration, balance, or ownership status exactly as it existed six months ago, making financial audits and data provenance checks completely trivial.

HISTORICAL STATE QUERY

GET /api/v1/wallet/0x3A9/balance?block=LATEST
"timestamp": "2026-02-25T14:02:11Z"
"balance": "4,500.00 USDC"
"status": "Active"

Active Socket: wss://stream.cerulea.net

CONNECTED

> Subscribing to topic: "contract_events"
< [STREAM] {"event": "Trade_Executed", "price": 420.50, "ms": 12}
< [STREAM] {"event": "Trade_Executed", "price": 420.55, "ms": 14}
< [STREAM] {"event": "Order_Cancelled", "price": 421.00, "ms": 19}
< [STREAM] {"event": "Trade_Executed", "price": 420.45, "ms": 22}

High-frequency WebSockets.

Sub-millisecond data streaming for high-performance applications.

While REST API endpoints are perfect for standard enterprise integrations, decentralized finance (DeFi) trading interfaces and multiplayer gaming environments require raw, uninterrupted data streams. Cerulea provides dedicated WSS (WebSocket) endpoints capable of pushing tens of thousands of state updates per second directly to your client applications.


© 2026 Caerulean Bytechains Private Limited. All rights reserved.