Skip to content

API

The Darkfibre API provides REST endpoints for non-custodial Solana DEX trading. You build transactions via the API, sign them locally with your private key and submit them for fast execution.

https://api.darkfibre.dev/v1

All endpoints are versioned under /v1. This ensures backwards compatibility when we introduce new features or breaking changes under future versions.

Every trade follows the same pattern:

  1. Build - Request an unsigned transaction (buy/sell/swap)
  2. Sign - Sign the transaction locally with your private key
  3. Submit - Send the signed transaction for broadcasting

Your private key never leaves your device. We build transactions, you maintain complete custody.

All REST endpoints (except register and ping) require authentication:

Authorization: Bearer api_your_key_here

Get your API key by registering at darkfibre.dev/register or via the POST /v1/auth/register endpoint.

See: Error schema & handling