Enable gasless transactions on MultiversX with just one line of code change.
npm install @vleap/relayBefore:
const result = await wallet.sendTransaction(transaction)After:
const relayableTx = await new RelayClient({ project: 'your-project-id' }).relay(transaction)
const result = await wallet.sendTransaction(relayableTx)That's it! Your users now pay zero gas fees when they have a fresh wallet or low balance.
import { RelayClient } from '@vleap/relay'
// Single transaction
const relayedTx = await new RelayClient({ project: 'your-project-id' }).relay(transaction)
// Batch transactions
const relayedTxs = await new RelayClient({ project: 'your-project-id' }).relayBatch(transactions)- GitHub: vLeap Group
- Telegram: https://telegram.vleap.ai