Skip to content

vLeapGroup/relay-sdk-js

Repository files navigation

Relay SDK

Enable gasless transactions on MultiversX with just one line of code change.

npm install @vleap/relay

Before:

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.

Examples

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)

Support

About

SDK for vLeap Relay – Sponsor transactions for users by adding a single line of code.

Topics

Resources

Stars

Watchers

Forks