Skip to main contentSkip to FAQSkip to contact
Reference· 2 min

Quick Reference#

One-page lookup for the TetraFi protocol. Every table links to the full reference page.

API Endpoints#

Base URL: https://api.tetrafi.io/api/v1

MethodPathAuthDescription
GET/healthPublicService liveness probe
POST/quotesPublicSubmit RFQ, receive competing quotes
GET/quotes/{quoteId}PublicQuote status and details
POST/ordersOptionalAccept quote, trigger settlement
GET/orders/{orderId}PublicOrder status and tx hashes
GET/corridorsPublicAvailable trading corridors
GET/workspaces/{id}/settlements/{orderId}RequiredSettlement timeline and evidence hash
POST/solvers/registerRequiredRegister solver, get WS credentials
POST/webhooksRequiredRegister webhook endpoint

Full details: REST API Reference

SDK Methods#

Full reference: SDK Client · TypeScript · Python

Settlement State Machine#

On-Chain Escrow States

deposit()finalise()refund()NoneDepositedClaimedRefunded
initial
normal
success
error
Hover a state to explore
StateTransitionTrigger
None → Depositedopen()Taker signs + deposits
Deposited → Claimedfinalise()Oracle attests solver fill
Deposited → Refundedrefund()Fill deadline expires

Full lifecycle: Settlement Flows

Key Constants#

ConstantValueNotes
All-in cost target< 3 bps$1M–$10M stablecoin orders
TetraFi take rate0.15–0.20 bps~15–30% of execution fee
Solver share70–85%Remainder after platform fee
Settlement time< 10 minEnd-to-end including oracle attestation
Quote timeout500msSolver response window
Fill deadline10–60 minConfigurable per corridor
Rate limit (standard)100 req/minPer API key
Rate limit (solver WS)1000 msg/minPer WebSocket connection

WebSocket Events#

text
1wss://api.tetrafi.io/api/v1/ws?token=tfk_live_...
1 linestext
ChannelFires when
rfq.createdRFQ broadcast to solvers
quote.receivedSolver returned a quote
quote.acceptedQuote accepted
settlement.pendingEscrow locking
settlement.completeBoth legs settled
settlement.failedReverted, refund issued
rfq.* / settlement.*Wildcard

Supported Networks#

ChainChain IDOracleStatus
Ethereum1HyperlaneLive
Optimism10HyperlaneLive
Base8453HyperlaneLive
Arbitrum42161HyperlaneLive
Sepolia11155111HyperlaneTestnet

Top 10 Glossary Terms#

TermDefinition
RFQTaker broadcasts request; solvers respond with firm quotes
DvPDelivery vs Payment - both legs settle or neither does
StandardOrderERC-7683 typed struct: inputs, outputs, deadlines, oracle refs
SolverLiquidity provider competing to fill orders
TakerInstitutional client initiating trades
EscrowSmart contract holding funds during settlement window
ResourceLockOutput-first lock via The Compact (0xff)
Permit2EscrowInput-first lock via Permit2 (0x00)
UCCPUniform Corridor Clearing Price - same rate for all batch orders
ComplianceRegistryOn-chain KYC attestation contract

Full glossary: Glossary (50+ terms)

See Also#

Just exploringStep 6 of 6
PersonasPath complete - nice work.