## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.Get Swap Sources
This API returns all the available swap sources that can be either included or excluded for routing.
OpenAPI
openapi: 3.0.3
info:
title: Cross-chain solver
version: 1.0.0
servers:
- url: https://api.relay.link
description: Mainnet API
- url: https://api.testnets.relay.link
description: Testnet API
security: []
paths:
/swap-sources:
get:
parameters:
- schema:
type: number
in: query
name: chainId
required: false
description: Chain ID to get swap sources for
- schema:
type: string
in: header
name: x-api-key
required: false
description: Optional API key for authentication and higher rate limits.
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
sources:
type: array
description: An array of swap sources
items:
type: string
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: Descriptive error message
This documentation is built and hosted on Mintlify, a developer documentation platform.