Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relay SDK

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

composer require vleap/relay

Before:

$result = $wallet->sendTransaction($transaction);

After:

$relayableTx = (new RelayClient(['project' => 'your-project-id']))->relay($transaction);
$result = $wallet->sendTransaction($relayableTx);

That's it! Your users now pay zero gas fees when they have a fresh wallet or low balance.

Examples

use VLeap\RelaySdk\RelayClient;

// Single transaction
$relayedTx = (new RelayClient(['project' => 'your-project-id']))->relay($transaction);

// Batch transactions
$relayedTxs = (new RelayClient(['project' => 'your-project-id']))->relayBatch($transactions);

Support

About

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

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages