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 offers
  • GET /dotc_offers/:id β€” get details for a specific offer

πŸ“„ Contract Addresses

NetworkdOTC V2 Contract Address
Polygon Mainnet0x22593b8749A4e4854C449c30054Bb4D896374fa1
Ethereum Mainnet0x0a103ee32f4209926d8ba7e528aff8a831ed3dae
Base Mainnet0xcffd07806f6a8fc623d6d61ddc3532bf1d2eb8b9

πŸ“˜ Action Guides

To interact with the dOTC contract, follow one of these:

Each includes contract method details, expected parameters, errors, and working TypeScript scripts using Ethers.js.