Relay
SupportGet in TouchTry Relay
Relay PlatformAPI ReferenceRelayKitRelay ProtocolChangelog

Getting Started

What is Relay?How Relay Works

Solutions

Payment Service ProvidersWallets & Wallet ProvidersMultichain AppsChainsCommerce & Payments

Use Cases

Bridging & OnboardingSwapsCall Execution

Features

App FeesFee SponsorshipDeposit AddressesGas Top-UpGasless ExecutionFast FillGasless SwapsPrice StabilizationRouting Integration Models

Security

Transaction ScreeningUnsupported ExchangesBug Bounty ProgramMEV protectionCommunity SupportContract Audits

Resources

Supported ChainsIntegrating using AISupportBrand Assets

API Reference

API OverviewQuickstartApps, API keys, and Rate LimitsAccess TokensUnderstanding Step ExecutionWallet DetectionCost & Fee StructureRefundsInput ValidationTrade TypesSurplus & ShortageHandling Quote ErrorsHandling Rate LimitsHandling Execution ErrorsContract CompatibilityBridging Integration GuideCall Execution Integration GuideTransaction IndexingBase Builder CodesSmart Accounts in RelayTestnet SupportSolana SupportBitcoin SupportHyperliquid SupportLighter SupportDeep LinkingWebsocketsWebhooksMigrating to Requests v3Migrating to Currencies v2Migrating to Token Price v2Supported ChainsContract AddressesSupported Tokens & RoutesTroubleshootingGet QuoteSubmit PermitGet StatusGet RequestsGet Published RequestsGet ChainsGet Chains LiquidityGet CurrenciesGet Currency ClassificationsGet Token PriceTransactions IndexTransactions SingleDeposit Address ReindexGet App Fee BalancesGet Balance EventsClaim App FeesGet UsageFast FillGet Swap SourcesCreate Access TokenExecute Gasless TxsAttest DepositGet Recovery BalancesRequest WithdrawalGet Withdrawal StatusGet Requests (v2)Get PriceGet ConfigGet Execution StatusGet Currencies (v1)Get Token Price (v1)Get Quote

RelayKit

OverviewInstallationcreateClientgetQuoteexecutegetAppFeesclaimAppFeesfastFillexecuteGaslessBatchAdaptersTypescript API TypingsChain UtilsInstallationuseQuoteuseRelayChainsuseRequestsuseTokenListuseTokenPriceuseExecutionStatusInstallationRelayKitProviderSwapWidgetThemingTroubleshooting

Protocol

Relay ProtocolHow It WorksThe Relay ChainDepositoryDeposit AddressesOracleHubAllocatorSecurity CouncilSecurity & AuditsFor AppsProgrammatic WithdrawalsWithdrawing with a SafeOperate a Third-Party Relay OracleAddressesEVM Depository ReferenceSVM Depository ReferenceOverviewArchitectureSecurityRelay Vaults BackendBridgingInteracting with Relay VaultsWithdrawing from Relay VaultsRelayPoolFactoryRelayPoolRelayPoolNativeGatewayRelayBridgeFactoryRelayBridge

Changelog

Changelog
## 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.

Routing Integration Models

Choose between Relay routing, adding your router as a quote source, and supplying your own calldata

Every Relay integration gets the same cross-chain execution layer: deposits, solver-funded fills, tracking, and refunds for unfilled deposits. The choice you make is who routes the swap legs. There are three models, and they are not mutually exclusive — you can start with Relay routing and layer in the others later.

  • Relay routing: Relay quotes multiple swap providers and selects the best route. The default, and zero routing work for you.
  • Your router as a Relay quote source: your router competes as a candidate inside Relay's routing. A bespoke integration.
  • Your own calldata: you route, Relay executes. Full control, full ownership.

The three models at a glance

Relay routingYour router as a quote sourceYour own calldata
Who constructs routesRelay's swap providersYour router, alongside Relay's providersYou
Who selects the winning routeRelayRelayYou
AvailabilityDefault, self-serveBespoke — contact usSelf-serve
Integration effortLowest: quote and executeYour router API plus onboarding with RelayHighest: routing, encoding, and testing per chain
Chain coverageEvery supported chainChains your router is onboarded on; Relay routes the restOnly chains you build and maintain
Execution protectionsPrice impact protection, slippage limits, automatic refundsThe sameCross-chain execution protections apply; route quality is yours
Operational ownershipRelaySharedYou

Relay routing

For each swap leg, Relay runs a meta-aggregation: it quotes multiple swap providers on that chain and selects the best executable route for the trade. You request a quote and execute the returned steps; routing, provider selection, and provider maintenance are Relay's job.

This is where routing improvements accrue to you automatically — new providers, better route selection, and chain expansions apply to your integration without any work on your side. You can see the providers available per chain with the swap sources endpoint, and control provider selection per request with the parameters below.

Configuring swap sources

Relay routing stays configurable without leaving the model. These optional `/quote/v2` parameters control which swap sources participate in a request:

PropertyDescription
includedSwapSourcesOnly route through these swap sources.
excludedSwapSourcesNever route through these swap sources.
includedOriginSwapSourcesRestrict the origin-chain swap leg to these sources.
includedDestinationSwapSourcesRestrict the destination-chain swap leg to these sources.
disableSwapProviderPreferenceDisable preferred swap provider selection.

Source names come from the swap sources endpoint. Restricting sources narrows the routes Relay can compare, so reach for these when you have a concrete requirement rather than as a default.

Your router as a Relay quote source

If you run your own router or have preferred liquidity, Relay can onboard it as a quote source: your router constructs its candidate route, and Relay compares it against the other providers and selects the winner for each trade. Your routing participates without replacing Relay's — when your router has the best route it wins, and when it doesn't, your users still get the best available one.

You keep the execution protections and chain coverage of Relay routing, and your router only needs to cover the chains you care about. Partners run this in production today: their router participates as a restricted quote source in their own trades while Relay retains route selection.

[!NOTE] This is a bespoke integration, not a self-serve option: onboarding, scope, and requirements are agreed per partner. Contact us if you want to explore it.

Your own calldata

If you want full route-selection control, construct the swap yourself and pass the encoded transactions in the quote's `txs` array. Relay provides the cross-chain execution layer — deposit handling, the solver-funded fill, tracking, and refunds for unfilled deposits — and your calldata defines what executes. See the call execution guide for the mechanics, including approval ordering and EXACT_INPUT considerations.

The tradeoff is ownership: route quality, failed routes, provider relationships, and per-chain maintenance are yours, and routing improvements on Relay's side don't reach your users.

Choosing a model

Start with Relay routing — it is the default for a reason, and the other two models layer on top rather than replace it. Move to a quote-source integration when you have routing or liquidity you want represented without giving up aggregation. Reserve full calldata control for cases where route selection itself is your product.

This documentation is built and hosted on Mintlify, a developer documentation platform.

PreviousPrice StabilizationNextTransaction Screening
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport