API Specification

The SDK is built on top of HTTP/JSON APIs. You can also call these directly from backends, bots, or services.

4.1 Authentication

Most project-level endpoints require a Project API Key or a signed message using the project admin key.

Headers example:

X-Project-Id: my-project-001
X-Api-Key: <redacted>
Content-Type: application/json

4.2 Key Endpoints

4.2.1 Create Private Deposit

POST /api/v1/pools/:poolId/deposit

Request:

{
  "asset": "USDC",
  "amount": "1000",
  "originChainId": 8453,
  "userPublicAddress": "0xUser",
  "txHash": "0xBridgeTxHash"
}

Response:


4.2.2 Execute Private Action

POST /api/v1/pools/:poolId/actions

Request:

Response:


4.2.3 Withdraw from Pool

POST /api/v1/pools/:poolId/withdraw

Request:

Response:


4.2.4 Get Pool State Snapshot (Public Metadata)

GET /api/v1/pools/:poolId/state

Response:

Note: No per-user balances are ever exposed. This is aggregated metadata.

Last updated