(undefined)
return (
{
console.log('Analytic Event', eventName, data)
}}
/>
)
}
```
# Theming
Source: https://docs.relay.link/references/relay-kit/ui/theming
Customize the ui theme to fit your app
## Creating a Theme
RelayKit UI can be fully themed using an intuitive set of theme tokens. You can choose to override all tokens or just a few to make the components match your application theme. You can view the full list of theme overrides [here](https://github.com/reservoirprotocol/relay-kit/blob/main/packages/ui/src/themes/RelayKitTheme.ts#L10).
```tsx theme={null}
import { RelayKitTheme } from '@relayprotocol/relay-kit-ui'
const theme: RelayKitTheme = {
font: "Inter",
primaryColor: "#09F9E9"
focusColor: "#08DECF"
text: {
default: "#000"
subtle: "#fff"
}
buttons: {
primary: {
color: "#000"
background: "#09F9E9",
hover: {
color: "#000"
background: "#0ad1c4",
}
}
}
}
```
### Fonts
If you are overriding any fonts with custom fonts you need to configure the custom font in your application. For example if you're using nextjs you can refer to this [doc](https://nextjs.org/docs/pages/building-your-application/optimizing/fonts) or if you're pulling the fonts in via css you can refer to this [doc](https://www.w3schools.com/css/css3_fonts.asp).
### Light/Dark Mode
RelayKit UI has built-in support for light and dark mode themes. The components will automatically adapt their appearance based on the theme mode you specify. To control the theme mode, simply add the `light` or `dark` class to your HTML container element:
```html theme={null}
...
...
```
## Usage
Now that your theme is configured you'll just need to pass it into the `RelayKitProvider`.
```tsx theme={null}
import { RelayKitProvider, RelayKitTheme } from '@relayprotocol/relay-kit-ui'
const theme: RelayKitTheme = { ... } //Previously created theme
...
{YOUR_APP}
```
# Troubleshooting
Source: https://docs.relay.link/references/relay-kit/ui/troubleshooting
Having trouble? Start here
### WagmiProviderNotFoundError: `useConfig` must be used within `WagmiProvider`
This issue is usually the result of multiple wagmi versions, make sure you only have 1 version of wagmi installed. You may also want to delete and reinstall your node modules and clear all caches.
### No QueryClient set, use QueryClientProvider to set one
If you've set the QueryClientProvider with a QueryClient it could be that you have multiple versions of tanstack/react-query installed. Make sure to double check and reduce this to just a single version of the package. You may also want to delete and reinstall your node modules and clear all caches.
### The UI looks unstyled
Make sure you've imported the ui package styles:
```typescript theme={null}
import '@relayprotocol/relay-kit-ui/styles.css'
```
If the issue persists make sure there's no reset css or other css file overriding the styles provided by the package.
### Incompatibility
If you see an error message that looks like this:
```
The types of 'utils.adaptViemWallet' are incompatible between these types
```
It could be that multiple versions of peer dependencies are installed. Review your package lock file for duplicate dependencies.
### No wallet found
If you see an error message that looks like this:
```
Missing a valid wallet
```
or
```
Missing a wallet
```
It could be that you're not providing a valid wallet to the SwapWidget or that you're app is not wrapped in a WagmiProvider. Make sure to provide a wallet to the SwapWidget or double check that your SwapWidget is wrapped by a WagmiProvider. It could also mean that you have two versions of wagmi/viem installed. Make sure that you only have 1 version of wagmi/viem installed as multiple versions can cause issues.
# Intent Status
Source: https://docs.relay.link/references/websockets/intent-status
# Brand Assets
Source: https://docs.relay.link/resources/brand-assets
Logos, guidelines, and assets for presenting the Relay brand clearly and consistently
Guidelines and downloadable assets for using the Relay brand across products, marketing, and communications.
[Download All Brand Assets](https://drive.google.com/drive/folders/1cI223F-K1IR6Vumy7xJymLOkEbyyD0r5?dmr=1\&ec=wgc-drive-hero-goto)
[Relay Brand Guidelines](https://www.figma.com/proto/6Qbgd0xJHFayzrQoeN15Mn/Design-System--New-?page-id=870%3A2723\&node-id=870-3013\&viewport=434%2C-70%2C0.18\&t=Vjai7d5ZFxenfwjG-1\&scaling=contain\&content-scaling=fixed)
# Integrating using AI
Source: https://docs.relay.link/resources/developing-with-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.
## LLM-Optimized Documentation
### llms.txt Files
Relay docs support the [llms.txt standard](https://llmstxt.org/), making our documentation easily accessible to AI tools:
| File | URL | Description |
| ----------------- | --------------------------------------- | -------------------------------------------- |
| **llms.txt** | `https://docs.relay.link/llms.txt` | Navigation structure with page summaries |
| **llms-full.txt** | `https://docs.relay.link/llms-full.txt` | Complete 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.
### 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:**
**Manual install via CLI:**
```bash theme={null}
npx @mintlify/mcp add docs.relay.link
```
Start the server after installation:
```bash theme={null}
npm --prefix ~/.mcp/docs.relay.link start
```
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
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:
```text theme={null}
---
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](https://claude.ai)
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 MCP server for context-aware assistance directly in your terminal. Add the following to your `.mcp.json`:
```json theme={null}
{
"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.
# Enterprise Partner Program
Source: https://docs.relay.link/resources/enterprise
Learn how to become an Enterprise Partner
## What is an Enterprise Partner?
As an Enterprise Partner, we will work with your team to craft a custom contract to support your use case and you will be granted access to the following exclusive features:
* [Fee Sponsorship](/features/fee-sponsorship)
* [Fast Fill](/features/fast-fill)
* Custom SLAs
* Priority Support
* Increased Rate Limits
* Revenue Share
## How to Become an Enterprise Partner
To become an Enterprise Partner, your team must meet the following criteria:
* **Volume:** Current or projected daily processing volume of \$500,000 or more.
* **Application:** Submission of the [Enterprise Partnership Program form](https://forms.gle/XNeELYavjwoJwPEf7).
Our team will review your application and reach out with next steps if considered.
# Support
Source: https://docs.relay.link/resources/support
# Supported Chains
Source: https://docs.relay.link/resources/supported-chains
# Bounties
Source: https://docs.relay.link/security/bounties
Learn how Relay rewards developers who find & report vulnerabilities.
We at Relay are committed to maintaining the highest security standards for our protocol and smart contracts.
That's why we are launching a bug bounty program for those who help us identify vulnerabilities in the Relay Protocol.
With our bounty, we hope to incentivize ethical hackers to discover and report vulnerabilities in our contracts and protocol.
Rewards will be dependent on the severity of the bug. We always provide monetary rewards for bugs that fall under these categories:
* Extract value from the solver
* Exploiting our smart contracts in an unintended way that results in a loss of funds
To be eligible for the monetary rewards, this bug must be investigated and confirmed by our team.
Monetary reward amounts are 10% of the value at risk, with a maximum reward capped at \$100,000 USD. "Value at risk" is defined as the total value that could be extracted within a 10 minute period. This is because our product has automatic circuit breakers and alarms that would prevent losses that take longer to extract.
### Reward Process & Requirements
To receive a bounty reward, the following requirements apply:
* **KYC & Background Check**: A KYC (Know Your Customer) verification and background check are required before any reward can be issued.
* **Payment**: Bug bounty rewards are issued in cryptocurrency.
* **Tax Documentation**: Any tax-related documentation requirements (e.g., W-8BEN, W-9, or equivalent forms depending on jurisdiction) will be addressed as part of the KYC process.
If you suspect you've encountered a bug, please reach out directly by email: [support@relay.link](emailto:support@relay.link).
We review all reports closely with the team.
We will get back to you within 1 to 4 days regarding the next steps.
Most responses are provided within 24 hours, barring holidays and weekends.
# Community Support
Source: https://docs.relay.link/security/community-support
# Compliance
Source: https://docs.relay.link/security/compliance
Relay prioritizes the security and integrity of every transaction. To meet international regulatory standards, we enforce strict sanctions screening and blocklists to ensure compliance with OFAC and other global laws.
### How it works
All transactions are screened in real time against:
* **Third-Party Integrations**: Professional-grade sanctions and risk databases, including HackBounty and Chainalysis, used to identify addresses linked to malicious activity and ensure regulatory compliance.
* **Relay’s Internal Blocklist**: Continuously maintained and updated by our compliance team based on emerging threats and intelligence.
### For Users
If a transaction is flagged for involving a sanctioned address, it will be automatically blocked, and you’ll receive a “Detected sanctioned address” notification. This protects you and helps ensure full compliance with international financial regulations.
Through robust third-party integrations and internal safeguards, Relay maintains a secure and compliant environment for all users.
# Contract Audits
Source: https://docs.relay.link/security/contract-audits
# MEV protection
Source: https://docs.relay.link/security/mev-protection
Learn how Relay handles MEV protection.
On Relay, all relayers submit destination chain transactions through MEV protection software, like MEV-blocker and merkle. This is important to protect Relay users from MEV. These protections are provided on all major networks with MEV, including Ethereum, BNB, Polygon, and Solana.
If you are interested in learning more, feel free to [reach out](https://forms.gle/XNeELYavjwoJwPEf7) .
# Chains
Source: https://docs.relay.link/solutions/chains
Get Instant Onboarding & Swaps on your Chain
Relay is designed to make transacting across chains as fast, cheap, and reliable as online payments. Relay is designed for rapid chain expansion. For chains, getting Relay means:
**[Instant Onboarding](/use-cases/bridging)** - Relay support of your chain means users can instantly onboard onto your chain from any supported network and currency. You can leverage the API to build your own onboarding experience or use our \[UI Kit] to quickly build onboarding for your app.
**[Same and Cross-chain Swaps](/use-cases/cross-chain-swaps)** - Relay's [Any-to-Any Swaps](/use-cases/cross-chain-swaps) means that once your chain is supported, users across the Relay ecosystem will be able to do any-to-any swaps on your network.
## Relay Benefits
**Chain Support** - Relay supports [85+ chains](/references/api/api_resources/supported-chains), offering coverage across all major EVM networks, alt L1s, SVMs and many appchains. We are designed to add chains on Day 1, and work closely with leading networks to make sure we are. If there is a network you are hoping we'll support, please reach out!
**Industry Leading Quote & Fill Times** - For bridging, swaps, and cross-chain executions, we are industry leading in quote and fill times. Our product is optimized to reduce latency across the user experience, meaning fast quotes and fast fills. Our p50 fill time across chain is less than 3 seconds across all networks.
**SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more.
**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables.
## Getting Relay on your Chain
If you want Relay on your chain, please [Reach Out](https://forms.gle/XNeELYavjwoJwPEf7)!
# Commerce & Payments
Source: https://docs.relay.link/solutions/commerce-and-payments
Use Relay to facilitate seamless payments between users and merchants across any chain
Relay is crosschain payments infrastructure that enables seamless payments between users and merchants. Users pay in any token on any chain. Merchants configure exactly which token they receive as settlement — any stablecoin, native asset, or token on any supported chain. One integration to facilitate it all — instant, transparent, and low-fee.
Connect users on every major network
P50 fill time across all routes
Volume enabled to date
Processed across the network
## Watch a Live Demo
## Who Builds with Relay
**Payment processors** — Add crosschain acceptance to your payment stack through a single integration. Rather than building 85+ chain connections, use Relay as the crosschain layer to connect your merchants with users on any network.
**Wallets and neobanks** — Let your users pay merchants directly from their existing holdings on any chain. No bridging, no chain-switching. One tap to pay, regardless of what chain the user or merchant is on.
**Commerce platforms** — Give your merchants onchain payment acceptance without requiring buyers to hold specific assets on specific chains. Connect any buyer to any merchant across the entire onchain ecosystem.
## Integration Paths
### Connected Wallet Checkout
For applications where users connect a wallet directly — web apps, mobile apps, or embedded wallets. Use the standard Relay [execute flow](/references/api/api_core_concepts/step-execution) with `tradeType: EXACT_OUTPUT` to guarantee merchants receive the exact amount requested.
Users connect their wallet, review the transaction, and confirm. Relay handles crosschain routing in the background. Compatible with all major wallet providers.
### Deposit Addresses
For flows where no wallet connection is needed. Generate a unique [deposit address](/features/deposit-addresses) per transaction and present it as a QR code, payment link, or in an invoice. Users send funds from any wallet on any chain, and Relay routes settlement to the merchant.
## Commerce Features
**[Exact Output Settlement](/references/api/api_core_concepts/trade-types)** — Use `tradeType: EXACT_OUTPUT` to guarantee merchants receive precisely the configured amount. No slippage, no shortfalls. If the exact amount cannot be filled, the transaction reverts and the user is refunded on the origin chain. This eliminates partial payment edge cases and removes the need for reconciliation logic.
**[Fee Sponsorship](/features/fee-sponsorship)** — Cover destination chain fees for users to create a frictionless checkout experience. Set a `maxSubsidizationAmount` to cap your exposure.
**[Sponsored Execution](/features/sponsored-execution)** — Submit transactions on behalf of users and cover gas costs entirely. Users sign a payload — your platform handles submission. Works with Permit2, ERC-4337 smart accounts, and EIP-7702, making payments completely gasless for end users.
**[App Fees](/features/app-fees)** — Collect a fee on every transaction that flows through your platform. Fees are automatically settled in USDC on Base.
**[Transaction Tracking](/references/api/get-requests)** — Monitor all transactions through the Relay [Request API](/references/api/get-requests). Track status, amounts, routes, and settlement in real time via API or [WebSockets](/references/api/api_guides/websockets).
## What You Build on Top
Relay provides crosschain routing, settlement guarantees, deposit addresses, real-time status tracking, and exact output fills. Relay does not include a merchant management system, order management, or invoicing — it empowers you to build these solutions on top.
* Merchant onboarding and management
* Order IDs and payment lifecycle management
* Checkout UI and product catalog
* Payment confirmation and receipts
* Invoicing and subscription logic
## Trusted by Leading Teams
Relay powers crosschain transactions for MetaMask, OpenSea, Coinbase, and other leading platforms. The protocol operates with 99.9%+ transaction reliability across 85+ networks with sub-3-second settlement on most routes.
## Get Started
Add crosschain payments to your platform through a single integration. Whether you are building a wallet checkout, a scan-to-pay flow, or a full payment processing layer, the [Quote API](/references/api/get-quote-v2) is the primary interface. Check out the [Quickstart Guide](/references/api/quickstart) to get started, or [reach out](https://forms.gle/XNeELYavjwoJwPEf7) to discuss your use case.
# Multichain Apps
Source: https://docs.relay.link/solutions/multichain-apps
Leverage Relay in your App for Onboarding, Best-in-Class Swaps, and Checkout
Relay is designed to make transacting across chains as fast, cheap, and reliable as online payments. If you are a multichain app, there are several key ways to use Relay.
## How to Use Relay
**[Onboarding](/use-cases/bridging)** - If your app uses an embedded wallet, you can use Relay to instantly onboard crypto from any currency on any chain. This means you can source users from all major networks, and get them into your wallet in two seconds.
**[In App Swaps & Bridging](/use-cases/cross-chain-swaps)** - Relay's [Any-to-Any Swaps](/use-cases/cross-chain-swaps) allows apps to embed bridging and swaps. We couple instant cross-chain routing via the Relay Network with meta-aggregation of the best onchain swap providers to give your users great prices, instant exchange across chains, and quick quotes.
**[Cross-chain Checkout](/use-cases/calling)** - Relay is designed to enable multichain transaction execution, which we call *multichain call execution*. That means that your users can pay for any transactions on any chain with currency on any other. This enables a cross-chain checkout experience for your users, giving you broader access to their preferred payment methods and minimizing drop off due to lack of funds.
**[Chain Abstraction](/use-cases/calling)** - Relay is designed to enable full chain abstraction. This allows teams to build full centralized exchange trading experiences with onchain rails.
## Relay Benefits
**Chain Support** - Relay supports [85+ chains](/references/api/api_resources/supported-chains), offering coverage across all major EVM networks, alt L1s, SVMs and many appchains. We are designed to add chains on Day 1, and work closely with leading networks to make sure we are. If there is a network you are hoping we'll support, please reach out!
**Industry Leading Quote & Fill Times** - For bridging, swaps, and cross-chain executions, we are industry leading in quote and fill times. Our product is optimized to reduce latency across the user experience, meaning fast quotes and fast fills. Our p50 fill time across chain is less than 3 seconds across all networks.
**SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more.
**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC).
## Integrating Relay
Integrating Relay is as simple as calling our [Quote API](/references/api/get-quote-v2). Whether you are integrating Relay for Bridging, Swaps, or Call Execution, this unified interface is the primary way to access the service. Please feel free to reach out with any questions, or start with our [Quickstart Guide](/references/api/quickstart).
# Wallets & Wallet Providers
Source: https://docs.relay.link/solutions/wallets-and-wallet-providers
Learn how Wallets and Wallet Providers can best use Relay
Relay is designed to make transacting across chains as fast, cheap, and reliable as online payments. There are several core use cases of Relay that make it a great choice for both self-custodial wallets and wallet/account infrastructure providers.
## How To Use Relay
**[Onboarding](/use-cases/bridging)** - Using Relay, wallets and wallet providers can allow users to instantly onboard crypto from any currency on any chain. This means you can source users from all major networks, and get them into your wallet in two seconds.
**[In Wallet Swaps & Bridging](/use-cases/cross-chain-swaps)** - Relay supports bridging, same-chain swaps, and cross-chain swaps through a unified [Quote API](/references/api/get-quote-v2). This allows wallets to embed bridging and swaps directly into the wallet experience. We couple instant cross-chain routing via the Relay Network with meta-aggregation of the best onchain swap providers to give your users great prices, instant exchange across chains, and quick quotes.
**[Chain Abstraction](/use-cases/calling)** - Relay is designed to enable multichain transaction execution, which we call *multichain call execution*. That means that your users can pay for any transactions on any chain with currency on any other. In the context of wallets this is particularly useful for chain abstraction use cases and products. We have broad support for smart wallet types, including 4337 & 7702. Learn more about [Smart Wallet Support](/references/api/api_guides/smart_accounts/smart-accounts).
## Relay Benefits
**Chain Support** - Relay supports [85+ chains](/references/api/api_resources/supported-chains), offering coverage across all major EVM networks, alt L1s, SVMs and many appchains. We are designed to add chains on Day 1, and work closely with leading networks to make sure we are. If there is a network you are hoping we'll support, please reach out!
**Industry Leading Quote & Fill Times** - For bridging, swaps, and cross-chain executions, we are industry leading in quote and fill times. Our product is optimized to reduce latency across the user experience, meaning fast quotes and fast fills. Our p50 fill time across chain is less than 3 seconds across all networks.
**SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more.
**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC).
## Integrating Relay
Integrating Relay is as simple as calling our [Quote API](/references/api/get-quote-v2). Whether you are integrating Relay for Bridging, Swaps, or Call Execution, this unified interface is the primary way to access the service. Please feel free to reach out with any questions, or start with our [Quickstart Guide](/references/api/quickstart).
# Bridging & Onboarding
Source: https://docs.relay.link/use-cases/bridging
Instant Bridging and Onboarding via Relay
Relay enables instant bridging (deposits & withdrawals) on supported chains. By coupling the instant cross-chain liquidity of the Relay Network with deep same-chain swap meta-aggregation, Relay enables instant onboarding and bridging of any token on any supported chain. There are several important features that make Relay onboarding great:
**Instant Cross-chain Onboarding** - Relay's median bridge time is 2.7 seconds across chains.
**Multi-VM Support** - Relay Supports major EVM chains, as well as Bitcoin, Solana, Sui, Tron, Eclipse, and more.
**Deposit Addresses** - [Deposit Addresses](/features/deposit-addresses) allow users to onboard onto any chain via a transfer on any network. This makes it seamless for users to onboard from centralized exchanges or without connecting a wallet.
**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC).
## How it Works
Relay's instant bridging is powered by cross-chain intents. This model results in low-cost, low-latency (next block) cross-chain transactions. When a user wishes to bridge, they receive a quote from Relay that describes the time and cost of bridging. When they accept the quote, the order is validated and they submit a transfer to the [Relay Depository Contract](/references/protocol/overview). A relayer then instantly fills the transaction on the destination chain before unlocking the funds on the origin.
Both Bridging and Onboarding can be integrated using Relay's Quote API:
**Bridging** - Bridging across all supported networks and tokens can be integrated into wallets, apps, or any place a user may need to get funds onto a new network.
**Onboarding** - Onboarding users into a new wallet (or a new chain) can be done similarly to any bridging action, where the user specifies their destination account.
To learn how to integrate Relay into your application, check out our [Quickstart Guide](/references/api/quickstart).
# Call Execution
Source: https://docs.relay.link/use-cases/calling
Execute transactions across any chain, pay with any token
Relay supports cross-chain transaction execution for arbitrary cross-chain transactions. This means a user can execute any call on any chain and pay with any token on any other chain. This feature is perfect for cross-chain checkout experiences as well as full chain abstraction.
**Gas requirement**: With standard EOA wallets, the user still needs a small amount of native gas token (e.g., ETH) on the **origin chain** to broadcast the initial deposit transaction. Relay handles all destination chain gas and deducts fees from the user's tokens, but the origin chain submission requires native gas. For a fully gasless experience where users hold **zero native tokens**, see [Gasless Swaps](/features/gasless-swaps) to find the right approach for your app, or explore [Smart Accounts](/references/api/api_guides/smart_accounts/smart-accounts) (EIP-7702 or ERC-4337) directly.
## How it Works
Relay's cross-chain execution is powered by cross-chain intents. This model results in low-cost, low-latency (1-10 seconds) cross-chain transactions. When a user wishes to perform a cross-chain action, they submit the call data to get a quote from relayers for execution. When they accept the quote, the order is validated and they submit a transfer to the [Relay Depository Contract](/references/protocol/overview). A relayer then instantly fills the transaction on the destination chain before unlocking the funds on the origin.
Learn how to integrate cross-chain call execution with our [Call Execution Integration Guide](/references/api/api_guides/calling-integration-guide).
# Swaps
Source: https://docs.relay.link/use-cases/cross-chain-swaps
Instant Same-chain and Cross-chain Swaps at the Best Possible Price
Relay enables both same and cross-chain swaps on supported chains. We couple robust meta-aggregation of the best onchain swap providers with the low-cost and instant speed of the Relay Network to deliver best-in-class any-to-any swaps on all our supported networks.
**Swap Meta-Aggregation** - We aggregate the best swap providers across crypto to deliver the best routes for onchain swaps
**Instant Cross-chain Swaps** - Relay's median bridge time is 2.7 seconds across chains.
**Multi-VM Support** - Relay Supports major EVM chains, as well as Bitcoin, Solana, Sui, Tron, Eclipse, and more.
**Gasless Support** - Relay supports gasless swaps via native support of 4337 account abstraction, 7702 support, and gasless permit execution (3009 and 2612)
**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC).
## How it Works
When a user wishes to swap, they receive a quote from Relay that describes the time and cost of swapping. When they accept the quote, the order is validated and they either execute their same-chain swap (same-chain) or submit a deposit to the [Relay Depository Contract](/references/protocol/overview) (cross-chain), where a relayer then instantly fills the transaction on the destination chain before unlocking the funds on the origin.
To learn how to integrate Relay into your application, check out our [Quickstart Guide](/references/api/quickstart).
# What is Relay?
Source: https://docs.relay.link/what-is-relay
The fastest and cheapest way to bridge & transact across chains
Relay is a multichain payments network, designed to make swapping and transacting across 100s of chains delightfully simple. Since launching in 2024, Relay has served **5M users**, processed **50M transactions**, and driven **\$5B+ in volume** across **85+ networks**.
It combines two core components:
* Instant low cost cross-chain intents, powered by the [Relay Protocol](/references/protocol/overview)
* Comprehensive DEX Meta-Aggregation across 85 chains
This makes Relay a powerful solution for a diverse set of use cases:
Instant Bridging between 85+ Chains
Same-chain & Cross-chain Swaps on Every Chain
Pay for Txs with Tokens on any Chain
To see Relay in action, and test supported routes, try the [Relay App](https://relay.link/bridge).
To start building, check out the [Quickstart Guide](/references/api/quickstart).
***
## The Relay Stack
Built as a full-stack solution for every layer of the multichain payments experience:
### Relay App
**For everyone who wants to swap tokens across chains** - The fastest way to go from any token to any token across chains. Swap ETH on Ethereum for SOL on Solana in one transaction — built on the same infrastructure that powers enterprise customers.
[Try the App](https://relay.link/)
### Relay API
**For developers building multichain experiences** - One integration, 75+ chains, zero complexity. Abstract the hardest parts of multichain development:
* **Bridge instantly** between chains with predictable fees
* **Swap seamlessly** using meta-aggregation across all major DEXs
* **Deliver payments-grade UX** with gas sponsorship, guaranteed rates, and SLAs
Whether you're building wallets, marketplaces, or consumer apps, Relay makes crosschain payments fast, reliable, and invisible.
[View Documentation](/references/api/overview)
### Relay Protocol
**The network powering it all** - The open system connecting users to relayers who execute onchain actions with maximum capital efficiency. Designed for low gas costs, rapid chain expansion, and enterprise-grade reliability.
[Learn More](/references/protocol/overview)
***
## Payments-Grade Reliability
Unlike traditional bridges, Relay delivers the reliability users expect from modern payments:
* **99.9% uptime** across 85+ networks
* **Fast execution** instead of multi-minute wait times
* **Automatic redundancy** systems ensuring transactions complete
* **Clear completion signals** for apps and users
***
## Trusted by Leading Teams
**Chain Expansion**: Alchemy, Conduit, and Caldera rely on Relay to provide payment rails to every rollup out of the box.
**Chain Abstraction**: OpenSea powers crosschain mints through Relay so collectors never worry about which chain they're on. Phantom collapses complex swaps into seamless flows.
**Multichain Infrastructure**: Apps like OneBalance route execution through Relay, letting users access opportunities across chains as easily as checking their balance.
***
## Get Started
**For Users**: [Try the Relay App](https://relay.link/) to swap any token across any chain instantly.
**For Teams & Developers**: Check out our [Quickstart Guide](/references/api/quickstart) to add multichain payments to your app.
***
*Contact us about enterprise features including dedicated support, custom SLAs, and priority routing.*