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.

Security & Audits

Trust model, security architecture, and audit history

Trust Model

Relay Settlement separates deposits, fill verification, balance accounting, and withdrawal authorization. User deposits remain in Depository contracts until an authorized withdrawal; solvers fill orders using their own capital. Each component has different trust properties:

Depository

The Depository contracts are the most trust-minimized component:

  • Non-upgradable — Contract logic is immutable after deployment
  • Single authorization path — Only the registered Allocator can authorize withdrawals
  • Deposit duration — Funds typically remain in the contracts for seconds to minutes, not hours or days
  • No admin withdrawal — There is no backdoor function for the contract owner to withdraw user funds

The Depository's security relies on the Allocator's signing authority. If the Allocator is compromised, it could authorize unauthorized withdrawals — but it cannot create balances that don't exist on the Hub.

Oracle

The Oracle determines which deposits and fills are considered valid:

  • Can attribute balances — The Oracle controls what gets minted, transferred, or burned on the Hub
  • Cannot steal Depository funds — Even an incorrect attestation only affects Hub balances. The Allocator independently verifies Hub balances before authorizing any withdrawal.
  • Authorized signer model — Attestations must be signed by an authorized oracle signer. If a signer contract such as RelayOracleMultisig is used, any thresholding is enforced there rather than in the RelayOracle contract itself.
[!NOTE] The Oracle is the main trust-bearing component. A compromised unauthorized signer cannot submit false attestations. A compromised authorized oracle signer, or a compromised threshold behind an oracle signer contract, could incorrectly attribute balances, but the damage is bounded by the Allocator's balance checks and the Security Council's ability to halt all withdrawal proof generation.

Hub

The Hub is a deterministic smart contract on the Relay Chain:

  • Rule-based — Balance changes only occur through Oracle-attested actions (MINT, TRANSFER, BURN)
  • Idempotent — The same attestation cannot be processed twice
  • Transparent — All balance changes are visible on the Relay Chain block explorer

Allocator

The Allocator controls withdrawal authorization:

  • [MPC signatures](https://docs.relay.link/references/protocol/components/allocator.md#mpc-signing) — No single entity holds the full signing key
  • Balance-bounded — Can only authorize withdrawals up to a solver's Hub balance
  • [Oracle-gated](https://docs.relay.link/references/protocol/components/allocator.md#oracle-gated-access) — Withdrawal proofs require a valid Oracle signature, verified by the RelayAllocatorSpender before the Allocator processes the request
  • Governed by [Security Council](https://docs.relay.link/references/protocol/components/security-council.md) — A multisig where any single member can suspend an approved withdrawer, and a supermajority can replace the Allocator
  • Replay-protected — Nonces and expirations prevent proof reuse

Security Council

The Security Council is a multisig that governs the Allocator. Any single member can immediately suspend an approved withdrawer such as RelayAllocatorSpender. In the current deployment, that halts new withdrawal proof generation because withdrawals are routed through that contract. Structural changes (replacing the Allocator, changing membership) require a supermajority.

See the full Security Council page for details on tiered thresholds and scope.

Audits

The protocol has been audited by leading security firms:

DateScopeAuditorReport
February 2025Relay Depository (EVM)SpearbitView Report
June 2025Relay Depository (EVM)CertoraView Report
November 2025Settlement ProtocolZellicView Report
April 2026OracleZellicView Report

Bug Bounty

Details of the Relay bug bounty program can be found on the Bug Bounties page.

Source Code

All protocol contracts are open source:

  • `settlement-protocol` — Depository, Deposit Addresses, Hub, Oracle, Allocator contracts
  • `relay-protocol-oracle` — Relay Protocol Oracle application

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

PreviousSecurity CouncilNextFor Apps
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport