![Relay gasless transactions](/_vercel/image?url=%2Fimages%2Frelay%2Frelay.png&w=1536&q=75)
Relay
gasless
transactions
Available on all major EVM compatible networks to supercharge your Web3 UX
Introduction
How it works
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Fmessage.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Fgasless.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Frelay.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Fapp.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Ftx.png&w=1536&q=100)
- Off chain
- On chain
- Users sign a message off-chain to interact with your Web3 app. This message gets forwarded to Gelato Relayer via a simple API call
- Gelato submits the corresponding transaction to the respective blockchain and pays for the gas
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Fmessage.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Frelay.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Fgasless.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Fapp.png&w=1536&q=100)
![](/_vercel/image?url=%2Fimages%2Frelay%2Fhow-relay-works%2Ftx.png&w=1536&q=100)
- Off chain
- On chain
- 0
- 1
- 2
- Users sign a message off-chain to interact with your Web3 app.
- This message gets forwarded to Gelato Relayer via a simple API call
- Gelato submits the corresponding transaction to the respective blockchain and pays for the gas
Easy to integrate
Import the Gelato Relay SDK
into your application
1
SolidityMake your target contract compatible with ERC2771
import {
ERC2771Context
} from "@gelatonetwork/relay-context/contracts/vendor/ERC2771Context.sol";
contract GaslessCounter is ERC2771Context {
mapping(address => uint256) public counter;
constructor(address trustedForwarder) ERC2771Context(trustedForwarder) {}
// Target function 🎯
function increment() external {
counter[_msgSender()]++;
}
}
2
JavascriptUsing Gelato Relay SDK, call your target function gaslessly with user signature authentication
import { GelatoRelaySDK } from "@gelatonetwork/relay-sdk";
const counter = "0x...";
const abi = ["function increment()"];
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
const user = signer.getAddress();
const contract = new ethers.Contract(counter, abi, signer);
const { payload } = await contract.populateTransaction.increment();
const relayRequest = {
chainId: provider.network.chainId;
target: counter;
data: payload;
user: user;
};
const apiKey = "stracciatella";
// Get user signature and send relay request to Gelato Relay
const relayResponse =
await GelatoRelaySDK.relayWithSponsoredCallERC2771(relayRequest, provider, apiKey);
console.log(relayResponse);
1Balance System
Pay for all of your gasless transactions on all EVM chains with a single balance
Scalable
Gelato adapts to your needs, whether you have 10 or 1,000,000 users
Reliable
Transactions are mined within a couple of blocks, eliminating network reliability issues without sacrificing decentralization
Flexible payments
A variety of whitelisted ERC-20 tokens are accepted as either prepayments or in-execution payments
Multichain
Gelato supports all major networks for gasless transactions, including cross-chain bridging
Explore
Use Cases
Bridge
Gasless Cross-Chain Asset Bridging
![Connext](https://media.cms.gelato.network/connext_Logo_2c809d7090/connext_Logo_2c809d7090.png)
![Hyperlane](https://media.cms.gelato.network/10h_Iwf_WM_400x400_5aff086e10/10h_Iwf_WM_400x400_5aff086e10.jpg)
![Kinetex](https://media.cms.gelato.network/Kinetex_128x128_be325ab7ce/Kinetex_128x128_be325ab7ce.webp)
NFT
NFT Limit Orders
![NFTrade](https://media.cms.gelato.network/NF_Trade_949c999c37/NF_Trade_949c999c37.png)
![nftperp](https://media.cms.gelato.network/Nftperp_Logo_1_5a12910445/Nftperp_Logo_1_5a12910445.png)
Social Media
Gasless Social Media Experience
![Koru DAO](https://media.cms.gelato.network/Koru_ad0ef06420/Koru_ad0ef06420.png)
Gaming
Gasless Minting of NFTs
![Zora](https://media.cms.gelato.network/Zora_Logo_fa2ae00bb0/Zora_Logo_fa2ae00bb0.png)
![Flair](https://media.cms.gelato.network/Flair_b0e014793c/Flair_b0e014793c.jpeg)
![R3NLT](https://media.cms.gelato.network/R3_NLT_5fde438112/R3_NLT_5fde438112.jpg)
![Fantium](https://media.cms.gelato.network/Fantium_5873a48655/Fantium_5873a48655.png)
Used by
![Safe](https://media.cms.gelato.network/Safe_Logos_Symbol_Green_91b0dc3d4b/Safe_Logos_Symbol_Green_91b0dc3d4b.png)
Safe
![Connext](https://media.cms.gelato.network/connext_Logo_2c809d7090/connext_Logo_2c809d7090.png)
Connext
![NFTrade](https://media.cms.gelato.network/NF_Trade_949c999c37/NF_Trade_949c999c37.png)
NFTrade
![Pudgy Penguins](https://media.cms.gelato.network/logo_pudgy_penguins_white_727a0d5f39/logo_pudgy_penguins_white_727a0d5f39.png)
Pudgy Penguins
Supported Networks
Gelato Web3 Functions are available on more than 30 networks, with new networks added every week