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.

Integrating using AI

Use AI coding assistants to build with Relay faster

Relay documentation is optimized for AI coding assistants. Whether you're using Claude, ChatGPT, Cursor, GitHub Copilot, or other AI tools, you can reference our docs directly to get accurate, up-to-date information about the Relay API and SDK.

Relay MCP Server

The Relay MCP server (`@relayprotocol/relay-mcp`) gives AI agents tools to quote bridges and swaps, estimate fees, look up chains and tokens, check chain health, and track transactions through the Relay API. It is read-only: it returns quotes and status, and does not sign or broadcast transactions.

Add it to any MCP client that runs local servers, such as Claude Desktop, Claude Code, or Cursor:

{
  "mcpServers": {
    "relay": {
      "command": "npx",
      "args": ["-y", "@relayprotocol/relay-mcp"]
    }
  }
}

Set RELAY_API_KEY in the server's environment for higher rate limits. get_transaction_history requires it. See Apps, API keys, and Rate Limits.

LLM-Optimized Documentation

llms.txt Files

Relay docs support the llms.txt standard, making our documentation easily accessible to AI tools:

FileURLDescription
llms.txthttps://docs.relay.link/llms.txtNavigation structure with page summaries
llms-full.txthttps://docs.relay.link/llms-full.txtComplete documentation content in plain text

These files are automatically kept in sync with our documentation and provide a clean, token-efficient format for LLMs.

Copy a Single Page

Copy the content of any documentation page in a clean, AI-friendly format. Click the Copy page button at the top of any docs page to copy its contents, then paste it directly into your AI assistant's context window.

This is useful when you need focused context about a specific API endpoint or feature without providing the entire documentation.

Using Cursor

Provide Relay documentation directly to your AI coding assistant for more accurate, context-aware code generation.

Docs MCP Server

Install the Relay docs MCP server for rich, queryable access to our documentation directly from Cursor, Claude Desktop, Windsurf, or any MCP-compatible client.

One-click install for Cursor:

![Install MCP Server in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=relay-docs\&config=eyJ1cmwiOiJodHRwczovL2RvY3MucmVsYXkubGluay9tY3AifQ==)

Manual install via CLI:

npx @mintlify/mcp add docs.relay.link

Start the server after installation:

npm --prefix ~/.mcp/docs.relay.link start
[!TIP] The MCP server gives your AI assistant queryable access to the full Relay documentation, including API references and SDK guides.

Cursor @Docs

Add Relay's documentation as a context source in Cursor:

  1. Open Cursor Settings → Features → Docs
  2. Add a new documentation source with the URL https://docs.relay.link
  3. Reference Relay docs in any Cursor chat by typing @Docs and selecting Relay
[!TIP] This keeps your AI assistant up to date with the latest Relay APIs without manually copying documentation.

Cursor Rules

Set up Relay-specific rules in your project to ensure consistent AI-generated code. Create a .cursor/rules/relay.mdc file in your project root:

---
description: Rules for building with Relay Protocol
globs:
---

- Use `@relayprotocol/relay-sdk` for server-side integrations
- Use `@relayprotocol/relay-kit-ui` for React UI components
- Always wrap components in `RelayKitProvider`, `WagmiProvider`, and `QueryClientProvider`
- Use `MAINNET_RELAY_API` or `TESTNET_RELAY_API` for the base API URL
- Only use API keys (`x-api-key` header) in server-side code, never expose them client-side
- Use TypeScript for all Relay integrations
- Refer to the Relay docs at https://docs.relay.link for the latest API reference

Using Claude

Claude works well with Relay documentation out of the box. Here are a few ways to get the most out of it.

Claude Projects

Create a dedicated Claude Project for Relay development. Add https://docs.relay.link/llms-full.txt as project knowledge so Claude has the full documentation available in every conversation.

  1. Create a new project in Claude
  2. Add the llms-full.txt URL as a knowledge source
  3. Set custom instructions like "Use the Relay documentation to answer questions about the Relay SDK and API"

Claude Code

Use Claude Code with the Relay docs MCP server for context-aware assistance directly in your terminal. Add the following to your .mcp.json:

{
  "mcpServers": {
    "relay-docs": {
      "url": "https://docs.relay.link/mcp"
    }
  }
}

Prompting Tips

When prompting Claude (or any LLM) about Relay, keep these tips in mind:

  • Specify the package — Tell the model whether you're using the SDK (@relayprotocol/relay-sdk), UI Kit (@relayprotocol/relay-kit-ui), or Hooks (@relayprotocol/relay-kit-hooks) so it generates the right imports and patterns.
  • Include chain context — Mention the origin and destination chains (e.g. "bridge from Ethereum to Base") to get accurate chainId values and currency addresses.
  • Reference the action — Be explicit about whether you're getting a quote, executing a bridge, or checking status. Each uses a different SDK method and endpoint.
  • Paste the relevant doc page — Use the Copy page button on the specific docs page you're working with and paste it into the conversation for the most accurate results.

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

PreviousSupported ChainsNextSupport
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport