Architecture
Your Musubi integration sits alongside your existing systems: What you deploy: A Musubi backend instance (provided as a Docker container) + a PostgreSQL database. This runs in your infrastructure and connects to the settlement network. What you integrate: Your existing systems call the backend’s REST API to initiate orders and consume settlement events.Onboarding Checklist
Receive Credentials
Musubi provisions your:
- Canton Party ID — your identity on the settlement network
- JWT signing credentials — for API authentication
- Network connectivity details — settlement network endpoint and TLS certificates
Custodian Onboarding
Confirm with your custodian that they have:
- Connected their node to the settlement network
- Set up your institutional custody account
- Whitelisted the Musubi settlement address
- Sufficient stablecoin balance for your expected volumes
KYC/AML Clearance
Obtain a KYC/AML clearance reference (UUID) from your compliance team. This references your existing KYC verification and is required on every order.
Deploy Your Backend
Deploy the Musubi backend container in your infrastructure:
- Configure with your Party ID and JWT credentials
- Connect to your PostgreSQL instance
- Establish TLS connectivity to the settlement network
Connectivity Test
Verify your setup:
GET /health— confirms backend is running and connected to the networkGET /whoami— confirms your Party ID and role- Create a test order on testnet and verify it reaches SETTLED status
What to Connect
Order Initiation
Your treasury or payments system submits orders viaPOST /api/v1/orders. The key inputs:
| Input | Source |
|---|---|
| Receiver Party ID | From your counterparty directory |
| Receiver Custodian Party ID | From your counterparty directory |
| Source amount | From your payment instruction |
| Target amount minimum | From your FX risk parameters (optional cost guard) |
| KYC/AML reference | From your compliance system |
| Intent signature | From your signing infrastructure |
Settlement Monitoring
Subscribe to real-time events via SSE (GET /api/v1/orders/events) or poll order status. Feed settlement confirmations to your reconciliation system.
Reconciliation
Match settled orders against your internal records using:| Field | Use |
|---|---|
intent_id | Your order reference — correlate with your internal payment ID |
transaction_hash | Settlement proof — store for audit and regulatory reporting |
settled_at | Settlement timestamp — for your accounting records |
target_amount / source_amount_actual | Amounts — verify against your expected values |
fx_rate | Executed rate — for P&L and best execution reporting |
Compliance Reporting
Feed the full settled order record to your compliance system. Key fields for regulatory reporting are detailed in Compliance & Audit.Testing on Testnet
The testnet environment mirrors production:- Real network topology (each participant runs their own node)
- Real settlement flow (atomic DvP with all four parties)
- Mock market maker responds automatically with deterministic quotes
- Happy path: Create order -> receive quote -> accept -> verify SETTLED
- Slippage guard: Set
source_amount_maxabove the quoted amount -> verify rejection - Expiry: Create order with short expiry -> verify EXPIRED status
- Cancellation: Create order -> cancel before quote acceptance -> verify cancellation
- Reconciliation: Verify
transaction_hashand amounts match across your systems