Relay is an App and API that enable instant, low-cost bridging, swapping, and cross-chain calling. The API allows a user to pay for transactions on any chain with currency from any other chain. Additionally, the API aggregates swap routes across chains, meaning a user can pay for for swaps and cross-chain transactions by leveraging the best available liquidity directly via the API.Relay is designed for both same-chain and cross-chain excecution, and leverages the Relay Protocol to minimize gas costs and execution latency across chains. The speed and low cost makes the API ideal for price & time sensitive applications, such as payments, bridging, nft minting and gas abstraction, and cross-chain swaps.Relay features the following key properties:
Fast: Cross-chain transactions confirm in seconds.
Cheap: Designed to reduce gas and capital costs, meaning the best possible price for users.
Chain-extensible: Easily extensible to any new chain. We currently support Bitcoin, Solana, and 44+ EVM chains, including appchains.
If you want to learn more about how Relay works, you can explore additional
docs here.
You can use the Relay API, SDK, and Hooks to integrate Relay directly into your app or wallet. Explore our API docs here. The following code shows a sample of how to fetch a quote from the Relay SDK:
Copy
Ask AI
import { getClient } from "@reservoir0x/relay-sdk";import { useWalletClient } from "wagmi";const { data: wallet } = useWalletClient();const quote = await getClient()?.actions.getQuote({ wallet, chainId: 1, // The chain id to bridge from toChainId: 7777777, // The chain id to bridge to amount: "100000000000000000", // Amount in wei to bridge currency: "0x0000000000000000000000000000", // ERC20 Address toCurrency: "0x0000000000000000000000000000", // ERC20 Address tradeType: "EXACT_INPUT",});
Deeplinking to the Relay App
You can leverage the Relay App as a developer by using deep links. You can
find our guide for deep linking to chains and tokens in the Relay App
here.
Get Relay on my Chain
You can view our currently supported chains here. If you would like Relay to support your chain, please reach out.