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.

Relay Protocol

A crosschain settlement protocol optimized for speed, cost, and reliability

Relay Protocol coordinates settlement for cross-chain transactions. Its settlement system, Relay Settlement, connects user deposits, fill verification, balance accounting, and withdrawals. A solver fills an order using its own capital; the protocol verifies the fill and accounts for settlement.

The Relay platform provides quotes, routing, and application tooling. This section explains the protocol's settlement mechanics and security model.

Design Goals

Relay Settlement is optimized on five dimensions:

  • Speed — Sub-second fills with optimistic execution
  • Cost — Minimal overhead on top of raw transfers
  • Capital Efficiency — Flexible batching for maximum inventory re-use
  • Coverage — Works on any chain, with minimal effort to deploy to new chains and VMs
  • UX — Simple transfer flows + fast refunds

Relay Settlement handles settlement, not quoting or order distribution. It does not run an orderflow auction.

Verification and Security

A solver fills an order, the Oracle attests the deposit and fill, and the Allocator authorizes withdrawals.

The protocol's security model describes its deployed signers, withdrawal permissions, and Security Council. Review these verification and recovery mechanisms before integrating.

How It Works

Relay Settlement works similarly to other crosschain intent protocols:

  1. User locks funds on the origin chain
  2. Solver fills the intent on the destination chain
  3. Solver proves fulfillment, to unlock payment

The main difference is that instead of settlement happening point-to-point between the origin and destination, it all happens on the Relay Chain. Solvers cheaply settle thousands of orders in real-time, accrue a balance, and then claim in a batch with one efficient proof when they need access to funds.

!Settlement Flow

Speed

Relay is designed for sub-second fill times in production. Several design choices enable this:

  • Optimistic execution — Solvers fill orders before origin chain finality, taking on minimal confirmation risk for recent blocks
  • No auction delay — There is no orderflow auction or solver competition window. Solvers receive orders and fill immediately.
  • Instant settlement — The solver's Hub balance updates as soon as the Oracle attests the fill, giving solvers confidence to fill aggressively without waiting for batch cycles

The result is a user experience where crosschain transfers feel as fast as same-chain transfers.

Cost

Crosschain intent systems can consume significant gas: passing order objects in calldata, verifying correct fulfillment, tracking intent status, emitting events. These might seem insignificant in an age of abundant blockspace, but add up in aggregate. Any gas paid is a wholesale cost that comes out before the solver's margin.

Relay keeps gas consumption to an absolute minimum, as close to raw transfers as possible:

  • Low-overhead deposits — Native-token deposits can be close to a raw transfer cost (\~21,000 gas), while ERC20 deposits still avoid the heavier escrow patterns common in other protocols
  • Zero-overhead fills — Solvers can fill with a simple transfer, no contract interaction needed on destination
  • \~\$0.005 settlement — Orders settle on a dedicated low-cost chain, not the origin

This enables lower costs for users, and higher margins for solvers.

Capital Efficiency

A core concern for solvers is getting paid as quickly as possible, in order to re-use capital for future orderflow.

Claiming payment for every intent on the origin can be expensive, so most high-volume solvers want some form of batching. But not all batching is the same — some protocols globally batch all intents on an hourly interval, resulting in significant capital lockup.

Relay Settlement records fills in real time on the Hub. A solver can batch authorized withdrawals to balance transaction costs against capital needs.

Coverage

Relay can work on any chain, and deployment to new chains and VMs is designed to be as simple as possible — so it can be ready day 1.

  • Heavy logic is shifted to the Relay Chain, so each new VM is a small module
  • Pull-based verification allows oracles to watch more chains with fewer resources
  • No dependencies on specific EIPs, precompiles, or advanced RPC methods

This has allowed Relay to expand to 80+ chains. More often than not, it's available weeks before a chain publicly launches.

UX

Too many protocols prioritize protocol simplicity over end-user simplicity. Relay's philosophy is different — if there's any opportunity to reduce user friction, it takes it, even at the expense of protocol complexity.

Deposit UX

Users don't want to make two transactions to approve and deposit. Gasless flows can be great, but shouldn't be forced on users with gas. Relay allows depositing via a simple transfer, for both native and ERC20 tokens — a UX that can compete with centralized exchanges.

Failure UX

For most intent protocols, failures are an afterthought. If something goes wrong, the user is forced to manually collect their funds out of escrow, often after a delay. Relay allows solvers to instantly refund once they determine an order can't be filled, abstracting complexity and giving users a UX that feels similar to using a single chain.

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

PreviousTroubleshootingNextHow It Works
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport