Gelato Network
Search…
⌃K
💸

Payment

How can you pay for your relayed transactions?

Please note that Gelato 1Balance is currently in private beta, undergoing extensive testing before being released publicly. In the meantime, please feel free to ask on our Discord for an API key to try out 1Balance functionality on supported testnets: Goerli and Mumbai.

Networks & Tokens supported

Gelato 1Balance (coming soon) supports Ethereum Mainnet, Polygon, Fantom, Avalanche, BNB, Optimism, Arbitrum, Gnosis, Moonbeam, Moonriver, Cronos, Evmos and all associated testnets.
Gelato 1Balance supports all native tokens and USDC, DAI, USDT, and BUSD.

1Balance

Supported SDK methods: see relayWithSponsoredUserAuthCall, relayWithSponsoredCall​
Gelato 1Balance is a new flexible and bespoke payment system built from the ground up exclusively for Gelato customers. Gelato 1Balance allows for customers to deposit on any chain they prefer, whilst using that balance to cover their relay costs regardless of target chain.

How does this work in practice?

  • For example, a user can top up their Gelato 1Balance using USDC on Polygon. This USDC balance will now be used to cover all gas costs and fees for any relay call, regardless of the underlying chain.
  • Therefore, a user could request relay calls on Ethereum mainnet, and Gelato will query their 1Balance to see if they possess enough equivalent USDC to cover the costs for this call. If the balance is sufficient, Gelato will go ahead and relay the message on-chain.
  • After the transaction is successful, Gelato can use the transaction receipts to charge you exactly the amount that the transaction costs plus a nominal fee. This makes Gelato 1Balance much more friendly on your wallet than payment based on a priori gas simulation which can be uncertain at best, and lead to consistent overcharging in the worst case.

SyncFee

SyncFee is the simplest way to pay, but it delegates all security (reentrancy/replay protection etc.) and payment logic to the target smart contract using ERC-2771 authentication. Relay costs are covered in either native or ERC-20 tokens and they are paid synchronously during the relay call.
Last modified 1mo ago