RFQ API & dOTC Integration
Swarmβs decentralized OTC (dOTC) system lets users create and fill peer-to-peer offers on-chain. This section explains how to use the RFQ API to discover offers, then interact with them via smart contracts.
Authentication
To access the RFQ API, you'll need an API key. This key is required to authenticate requests to the `/dotc_offers` endpoint and fetch live offer data. To request your API key, please contact the Swarm team at developers@swarm.com with a brief description of your intended use case or integration.
RFQ API
Use the Swagger UI to explore available RFQ endpoints: π https://rfq.swarm.com/docs
Key endpoints include:
GET /dotc_offersβ fetch active OTC offersGET /dotc_offers/:idβ get details for a specific offer
π Contract Addresses
| Network | dOTC V2 Contract Address |
|---|---|
| Polygon Mainnet | 0x22593b8749A4e4854C449c30054Bb4D896374fa1 |
| Ethereum Mainnet | 0x0a103ee32f4209926d8ba7e528aff8a831ed3dae |
| Base Mainnet | 0xcffd07806f6a8fc623d6d61ddc3532bf1d2eb8b9 |
π Action Guides
To interact with the dOTC contract, follow one of these:
- π Make an Offer
- π Take an Offer
- π Cancel an Offer
Each includes contract method details, expected parameters, errors, and working TypeScript scripts using Ethers.js.
.png)