Skip to content
CertadocsGet a sandbox key

Concepts

Lock

A lock fixes the amount your customer receives for one payment due later. You ask for a quote (the rate, the amounts, the fee and the deposit; firm for 30 seconds), then create a lock from it. The lock is on-chain on Arc. At maturity the customer delivers one currency and receives exactly the locked amount of the other.

Quotefirm 30 sLockpending, then activeMaturitydeliver and receiveSettleddeposit back
A lock's life: quote, lock, maturity, settled

Statuses: pending (transactions sent), active, settled, cancelled, defaulted, expired (the lock transactions never landed). Each change is an event and a webhook.

Deposits

Creating a lock takes a deposit of 5% of the USDC amount, plus the fee (0.3% by default) and any partner markup. The deposit sits in escrow on-chain. It comes back at settlement, pays a cancellation, or is kept if the customer defaults. If the market moves far against the lock, you get a deposit.low event.

held in escrow (5%)Lockdeposit takenSettledeposit returnedOr defaultdeposit kept
Where the deposit goes: escrow, then back to the customer, to a cancellation, or to the pool on default

Tenors

The tenor is the time from the quote to maturity: from 1 hour up to 365 days. Send tenorSeconds or an exact maturity, not both. Short tenors cover intraday and weekend payments; long ones cover invoices and payroll months ahead.

allowed maturitiesNow1 hshortest365 dlongest
Tenors run from 1 hour to 365 days

Settlement

From maturity, the lock can settle: the customer's wallet delivers the agreed amount and the receiver gets exactly the locked amount. The payout never depends on the market at settlement. Call POST /v1/locks/{id}/settle, or let the keeper settle it once the customer has approved the delivery. Pausing the system never stops settlement.

settles any time from maturityMaturitySettledelivery in, payout out
Settlement: from maturity, delivery in, locked amount out

Cancellations

Before maturity, the customer can cancel. The price is what it costs to unwind the lock at today's market: it comes out of the deposit first, any rest of the deposit is returned, and a cost above the deposit is charged to the customer. Preview it with previewOnly: true. A lock cannot be cancelled at or after maturity.

can cancelLockMaturityno more cancels
Cancellation is possible from lock until maturity

Defaults

If the customer has not delivered 48 hours after maturity, the lock defaults: the deposit goes to the pool and the lock closes as defaulted. A customer who delivers is never defaulted. You get lock.maturing before maturity so you can remind them.

grace: 48 hMaturityGrace endsDefaulteddeposit kept
Default: no delivery 48 hours after maturity

Limits

Each lock can be up to $100,000, and each customer can hold up to $250,000 of open locks. Your organisation and the pool have limits too. A lock over a limit is refused with LIMIT_EXCEEDED; GET /v1/limits shows the room left. Quoting is limited to 30 quotes a minute per key.

used$0Open locks$250,000per customer
Per-customer room: up to $250,000 of open locks

Sandbox and live

sk_test_ keys use the sandbox: Arc testnet, test tokens, a faucet, instant KYB, managed wallets and the sandbox tools (move time forward, move the market, expire a quote). sk_live_ keys use Arc mainnet with real funds and are not available yet. Test and live objects never mix.

sk_test_Arc testnetsk_live_Arc mainnet (later)
Build in the sandbox, then switch keys to go live

Keys and sign-in

Your servers call the API with an API key: Authorization: Bearer sk_test_…. Get your first one from sandbox sign-up. A key holds scopes (read, quote, lock, admin) and works only in its own mode.

People sign in to Certa's apps (Runway Lock and the partner dashboard) with Google. The app runs Google's sign-in on its server and sends the ID token to POST /v1/auth/google, which checks Google's signature and returns a session cookie. A signed-in owner or admin can create, list and revoke the organisation's keys (/v1/api-keys), choosing the organisation with the Certa-Organisation header. A key can never create or list keys, so a leaked key cannot mint more. Revoke it in the partner dashboard and it stops working at once.